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: Forgot to upload new file Created March 15, 2018, 1:20 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 4 # This class should be obsolete when puppet is => 4.1.0 due `install_options`
mathias 2018/03/15 17:57:04 ... and why is it required now? Without documentin
f.lopez 2018/03/16 00:23:59 Should I include the description here? That's why
5 # being included for pip provider.
5 # 6 #
6 class adblockplus::mercurial::extension::hggit { 7 # [*ensure*]
8 # General resource policy, i.e. "present" or "absent".
9 #
10 class adblockplus::mercurial::extension::hggit (
11 $ensure = '0.8.9',
12 ) {
7 13
8 ensure_packages([ 14 $dependencies = [
15 'python-pip',
9 'libffi-dev', 16 'libffi-dev',
10 'libssl-dev', 17 'libssl-dev',
11 ]) 18 ]
12 19
13 exec { "upgrade setuptools": 20 ensure_packages($dependencies)
mathias 2018/03/15 17:57:05 Please use single quotes and no space after the br
f.lopez 2018/03/16 00:23:59 Acknowledged.
21
22 exec {'upgrade setuptools':
14 command => '/usr/bin/pip install --upgrade setuptools', 23 command => '/usr/bin/pip install --upgrade setuptools',
15 require => Package['python-pip', 'libffi-dev', 'libssl-dev'], 24 require => Package[$dependencies],
mathias 2018/03/15 17:57:05 This requires Package['python-pip'] being defined
f.lopez 2018/03/16 00:23:59 Acknowledged.
16 } 25 }
17 26
18 exec { "upgrade urllib3": 27 exec {'upgrade urllib3':
mathias 2018/03/15 17:57:04 Same as above.
f.lopez 2018/03/16 00:23:59 Acknowledged.
19 command => '/usr/bin/pip install --upgrade urllib3', 28 command => '/usr/bin/pip install --upgrade urllib3',
20 require => Package['python-pip', 'libffi-dev', 'libssl-dev'], 29 require => Package[$dependencies],
21 } 30 }
22 31
23 adblockplus::mercurial::extension {'hggit': 32 adblockplus::mercurial::extension {'hggit':
24 package => { 33 package => {
25 ensure => '0.8.9', 34 ensure => $ensure,
mathias 2018/03/15 17:57:05 This value should be implemented as the default fo
f.lopez 2018/03/16 00:23:59 Acknowledged.
26 name => 'hg-git', 35 name => 'hg-git',
27 provider => 'pip', 36 provider => 'pip',
28 }, 37 },
29 require => Exec['upgrade urllib3'], 38 require => Exec['upgrade urllib3'],
30 } 39 }
31 } 40 }
41
LEFTRIGHT

Powered by Google App Engine
This is Rietveld