justicel / puppet-couchbase

Puppet couchbase module for auto-scaling of couchbase with puppet
9 stars 30 forks source link

bug fix : when node-init fails at the first run, then the cluster is stuck : no more cluster-init and cluster-setup #37

Closed chengchengmu closed 8 years ago

chengchengmu commented 8 years ago

Hello,

Originally couchbase-init and couchbase-cluster-setup are executed only when their scripts are created at the first and have dependency on couchbase-node-init. If couchbase-node-init fails at the first run (it can happen for any reason, for instance couchbase-server takes time to be up), couchbase-init and couchbase-cluster-setup are never executed again because theirs scripts are generated only at the first run.

The fix consist in adding notifications : couchbase-node-init ~> couchbase-init ~> couchbase-cluster-setup