Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- couchbase_hosts = Array.new
- # Populate couchbase_hosts Array via RightLink tag.
- results = rightscale_server_collection "couchbase_hosts" do
- tags ["couchbase:rs_main_cb=*"]
- secondary_tags ["server:public_ip_0=*"]
- action :nothing
- end
- if node["server_collection"]["couchbase_hosts"]
- node["server_collection"]["couchbase_hosts"].to_hash.values.each do |tags|
- couchbase_hosts.push(RightScale::Utils::Helper.get_tag_value("server:public_ip_0", tags))
- end
- else
- log " ERROR: Install couchbase first before running this recipe."
- end
Add Comment
Please, Sign In to add comment