This script will currently only work with Windows8, Windows 2012R2, Amazon Linux, RHEL6 and RHEL7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set couchbaselist = salt['mine.get']('G@roles:couchbase and G@deployment:production', 'network.interfaces', 'compound').items() %} | |
cb: | |
pkg.installed: | |
- sources: | |
- couchbase-server: http://packages.couchbase.com/releases/3.0.0/couchbase-server-community-3.0.0-centos6.x86_64.rpm | |
{% for server in couchbaselist %} | |
{% if server[0] != grains['id'] %} | |
{% if salt['publish.publish'](server[0], 'test.ping')[server[0]] %} |