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

Delta Between Two Patch Sets: modules/adblockplus/manifests/mercurial/extension/hggit.pp

Issue 29722943: #9024 - Introduce class abp::mercurial::extension::hggit (Closed)
Left Patch Set: For comment 2 Created March 16, 2018, 1:29 a.m.
Right Patch Set: For comment 4 Created March 16, 2018, 6:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | modules/private-stub/hiera/base.yaml » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
LEFTRIGHT

Powered by Google App Engine
This is Rietveld