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: I17c119e81a035916550de44356b9f4badd505c81
This commit is contained in:
Clark Boylan 2017-08-24 13:48:49 -07:00
parent d24b14fb0e
commit 4c99e995a8
1 changed files with 4 additions and 2 deletions

View File

@ -157,8 +157,10 @@ class openstackid (
}
# the deploy scripts use the curl CLI
package { 'curl':
ensure => present,
if !defined(Package['curl']) {
package { 'curl':
ensure => present,
}
}
# install nodejs default version