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: For comment 4 Created March 16, 2018, 6:22 p.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,41 @@
+# == Class: adblockplus::mercurial::extension::hggit
+#
+# See http://hub.eyeo.com/issues/9024
+# This class should be obsolete when puppet is => 4.1.0 due `install_options`
+# being included for pip provider.
+#
+# [*ensure*]
+# General resource policy, i.e. "present" or "absent".
+#
+class adblockplus::mercurial::extension::hggit (
+ $ensure = '0.8.9',
+) {
+
+ $dependencies = [
+ 'python-pip',
+ 'libffi-dev',
+ 'libssl-dev',
+ ]
+
+ ensure_packages($dependencies)
+
+ exec {'upgrade setuptools':
+ command => '/usr/bin/pip install --upgrade setuptools',
+ require => Package[$dependencies],
+ }
+
+ exec {'upgrade urllib3':
+ command => '/usr/bin/pip install --upgrade urllib3',
+ require => Package[$dependencies],
+ }
+
+ adblockplus::mercurial::extension {'hggit':
+ package => {
+ ensure => $ensure,
+ 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