summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2017-08-24 13:46:04 -0700
committerClark Boylan <clark.boylan@gmail.com>2017-08-24 13:46:04 -0700
commit31e44bbcb053b3d057c0ca72669b6f0e860f2039 (patch)
tree0487ec230b9bff6d2837fef6944f4f2f9539585f
parent4b1adec999ada414a1b9df00686914fc6ea7745e (diff)
Allow multiple places to install curl
Curl is an important package that we end up needing in a few places. To avoid puppet unique name conflicts with the package "curl" only define the curl package resource if it isn't already defined. This allows us to define it in multiple places that may or may not overlap depending on how hosts are constructed. Change-Id: Icd0c652ff2f522ce2ea9086965f53e1a03f0d4fd
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 24 Aug 2017 21:17:12 +0000 Reviewed-on: https://review.openstack.org/497611 Project: openstack-infra/puppet-ethercalc Branch: refs/heads/master
-rw-r--r--manifests/init.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b72fb72..815a16d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -40,8 +40,10 @@ class ethercalc (
40 mode => '0664', 40 mode => '0664',
41 } 41 }
42 42
43 package { 'curl': 43 if !defined(Package['curl']) {
44 ensure => present, 44 package { 'curl':
45 ensure => present,
46 }
45 } 47 }
46 48
47 anchor { 'nodejs-package-install': } 49 anchor { 'nodejs-package-install': }