SaltStack Bootstrap Script for AWS EC2 |
This script will currently only work with Windows8, Windows 2012R2, Amazon Linux, RHEL6 and RHEL7.
{% 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]] %} |
SaltStack Bootstrap Script for AWS EC2 |
This script will currently only work with Windows8, Windows 2012R2, Amazon Linux, RHEL6 and RHEL7.