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