Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # == Class: adblockplus::mercurial::extension::hggit | 1 # == Class: adblockplus::mercurial::extension::hggit |
2 # | 2 # |
3 # See http://hub.eyeo.com/issues/9024 | 3 # See http://hub.eyeo.com/issues/9024 |
4 # This class should be obsolete when puppet is => 4.1.0 due `install_options` | 4 # This class should be obsolete when puppet is => 4.1.0 due `install_options` |
5 # being included for pip provider. | 5 # being included for pip provider. |
6 # | 6 # |
7 # [*ensure*] | |
8 # General resource policy, i.e. "present" or "absent". | |
9 # | |
7 class adblockplus::mercurial::extension::hggit ( | 10 class adblockplus::mercurial::extension::hggit ( |
8 $ensure = '0.8.9', | 11 $ensure = '0.8.9', |
9 ) { | 12 ) { |
10 | 13 |
11 ensure_packages([ | 14 $dependencies = [ |
12 'python-pip', | 15 'python-pip', |
13 'libffi-dev', | 16 'libffi-dev', |
14 'libssl-dev', | 17 'libssl-dev', |
mathias
2018/03/16 09:03:33
Couldn't you use a $dependencies list with these i
f.lopez
2018/03/16 18:11:46
Acknowledged.
| |
15 ]) | 18 ] |
19 | |
20 ensure_packages($dependencies) | |
16 | 21 |
17 exec {'upgrade setuptools': | 22 exec {'upgrade setuptools': |
18 command => '/usr/bin/pip install --upgrade setuptools', | 23 command => '/usr/bin/pip install --upgrade setuptools', |
19 require => Package['python-pip', 'libffi-dev', 'libssl-dev'], | 24 require => Package[$dependencies], |
20 } | 25 } |
21 | 26 |
22 exec {'upgrade urllib3': | 27 exec {'upgrade urllib3': |
23 command => '/usr/bin/pip install --upgrade urllib3', | 28 command => '/usr/bin/pip install --upgrade urllib3', |
24 require => Package['python-pip', 'libffi-dev', 'libssl-dev'], | 29 require => Package[$dependencies], |
25 } | 30 } |
26 | 31 |
27 adblockplus::mercurial::extension {'hggit': | 32 adblockplus::mercurial::extension {'hggit': |
28 package => { | 33 package => { |
29 ensure => $ensure, | 34 ensure => $ensure, |
30 name => 'hg-git', | 35 name => 'hg-git', |
31 provider => 'pip', | 36 provider => 'pip', |
32 }, | 37 }, |
33 require => Exec['upgrade urllib3'], | 38 require => Exec['upgrade urllib3'], |
34 } | 39 } |
35 } | 40 } |
41 | |
LEFT | RIGHT |