Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/adblockplus/manifests/legacy.pp

Issue 29784619: #11294 - Apply workaround for broken pip package in Debian "jessie" (Closed)
Patch Set: #11294 - Address feedback from codereview Created May 18, 2018, 1:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « manifests/site.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # == Class: adblockplus::legacy 1 # == Class: adblockplus::legacy
2 # 2 #
3 # A container for migrating obsolete global resources, included with the 3 # A container for migrating obsolete global resources, included with the
4 # adblockplus class. See http://hub.eyeo.com/issues/1541 for more information. 4 # adblockplus class. See http://hub.eyeo.com/issues/1541 for more information.
5 # 5 #
6 class adblockplus::legacy { 6 class adblockplus::legacy {
7 7
8 # Formerly included with class statsclient 8 # Formerly included with class statsclient
9 user {'stats': 9 user {'stats':
10 ensure => 'absent', 10 ensure => 'absent',
11 } 11 }
12 12
13 # User resources cannot remove the associated $HOME directory 13 # User resources cannot remove the associated $HOME directory
14 file {'/home/stats': 14 file {'/home/stats':
15 ensure => 'absent', 15 ensure => 'absent',
16 force => true, 16 force => true,
17 recurse => true, 17 recurse => true,
18 } 18 }
19
20 # http://hub.eyeo.com/issues/11294#note-3
21 if $::lsbdistcodename == 'jessie' {
22
23 # https://stackoverflow.com/questions/27341064/
24 package {'python-pip':
25 ensure => 'absent',
26 name => 'python-pip',
27 }
28
29 # http://setuptools.readthedocs.io/en/latest/easy_install.html
30 package {'python-setuptools':
31 before => Package['python-pip'],
32 ensure => 'present',
33 }
34
35 # https://github.com/pypa/pip/issues/5247
36 exec {'/usr/bin/easy_install pip==9.0.3':
37 before => Package['python-pip'],
38 creates => '/usr/local/bin/pip',
39 require => Package['python-setuptools'],
40 }
41 }
19 } 42 }
OLDNEW
« no previous file with comments | « manifests/site.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld