summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-01-19 11:09:56 -0500
committerMicah <micah@leap.se>2016-01-19 11:09:56 -0500
commited2f050ca4474089bef9ba57d5d91d49ff37add0 (patch)
tree803c36b3c86c362d296824da5f09a600d78682bf
parent4b49d0757df4cb1d52e35ee4b84d51906f716344 (diff)
Ensure curl is installed before it is called (#7803)
Change-Id: Iedd464a397e9944159991241cd84caad6a2a40d6
-rw-r--r--puppet/modules/site_config/manifests/remove/tapicero.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/puppet/modules/site_config/manifests/remove/tapicero.pp b/puppet/modules/site_config/manifests/remove/tapicero.pp
index 4ce972d0..07c3c6c6 100644
--- a/puppet/modules/site_config/manifests/remove/tapicero.pp
+++ b/puppet/modules/site_config/manifests/remove/tapicero.pp
@@ -1,6 +1,8 @@
# remove tapicero leftovers from previous deploys on couchdb nodes
class site_config::remove::tapicero {
+ ensure_packages('curl')
+
# remove tapicero couchdb user
$couchdb_config = hiera('couch')
$couchdb_mode = $couchdb_config['mode']
@@ -14,7 +16,8 @@ class site_config::remove::tapicero {
exec { 'remove_couchdb_user':
onlyif => "/usr/bin/curl -s 127.0.0.1:${port}/_users/org.couchdb.user:tapicero | grep -qv 'not_found'",
- command => "/usr/local/bin/couch-doc-update --host 127.0.0.1:${port} --db _users --id org.couchdb.user:tapicero --delete"
+ command => "/usr/local/bin/couch-doc-update --host 127.0.0.1:${port} --db _users --id org.couchdb.user:tapicero --delete",
+ require => Package['curl']
}