diff options
author | Micah Anderson <micah@leap.se> | 2014-04-16 16:58:32 -0400 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2014-04-17 16:09:41 -0400 |
commit | 42d93c7a939902ace20ed5602317530473ece364 (patch) | |
tree | 32b8af69589a698443387806bd0affcfdd9f24be /puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp | |
parent | 2d64dafaf6238852d80b326ca22359da4371e912 (diff) |
add exec resources to run the couchdb tests to wait for nodes and
cluster membership to settle, before attempting any operations
(#5269, #4590, #3712)
Change-Id: Ic9826dda1c242e705ce85ae218766496bdd8ecbd
Diffstat (limited to 'puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp b/puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp new file mode 100644 index 00000000..aa843e2e --- /dev/null +++ b/puppet/modules/site_couchdb/manifests/bigcouch/settle_cluster.pp @@ -0,0 +1,11 @@ +class site_couchdb::bigcouch::settle_cluster { + + exec { 'wait_for_couch_nodes': + command => '/srv/leap/bin/run_tests --test CouchDB/Are_configured_nodes_online? --retry 6 --wait 10' + } + + exec { 'settle_cluster_membership': + command => '/srv/leap/bin/run_tests --test CouchDB/Is_cluster_membership_ok? --retry 6 --wait 10', + require => Exec['wait_for_couch_nodes'] + } +} |