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

Unified Diff: modules/adblockplus/manifests/mercurial/extension/hggit.pp

Issue 29722943: #9024 - Introduce class abp::mercurial::extension::hggit (Closed)
Patch Set: Forgot to upload new file Created March 15, 2018, 1:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/mercurial/extension/hggit.pp
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/adblockplus/manifests/mercurial/extension/hggit.pp
@@ -0,0 +1,31 @@
+# == Class: adblockplus::mercurial::extension::hggit
+#
+# See http://hub.eyeo.com/issues/9024
+# This class should be obsolete when puppet is => 4.1.0
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
+#
+class adblockplus::mercurial::extension::hggit {
+
+ ensure_packages([
+ 'libffi-dev',
+ 'libssl-dev',
+ ])
+
+ exec { "upgrade setuptools":
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.
+ command => '/usr/bin/pip install --upgrade setuptools',
+ require => Package['python-pip', 'libffi-dev', 'libssl-dev'],
mathias 2018/03/15 17:57:05 This requires Package['python-pip'] being defined
f.lopez 2018/03/16 00:23:59 Acknowledged.
+ }
+
+ exec { "upgrade urllib3":
mathias 2018/03/15 17:57:04 Same as above.
f.lopez 2018/03/16 00:23:59 Acknowledged.
+ command => '/usr/bin/pip install --upgrade urllib3',
+ require => Package['python-pip', 'libffi-dev', 'libssl-dev'],
+ }
+
+ adblockplus::mercurial::extension {'hggit':
+ package => {
+ ensure => '0.8.9',
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.
+ name => 'hg-git',
+ provider => 'pip',
+ },
+ require => Exec['upgrade urllib3'],
+ }
+}
« no previous file with comments | « no previous file | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld