Skip to content

Instantly share code, notes, and snippets.

@deuscapturus
deuscapturus / gist:eb643003d85c7be97ef6
Last active August 29, 2015 14:08
SaltStack Example - Couchbase - Join cluster from mine list and validate
{% 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]] %}
@deuscapturus
deuscapturus / README.rst
Last active March 9, 2016 13:39
SaltStack Bootstrap for AWS EC2
SaltStack Bootstrap Script for AWS EC2

This script will currently only work with Windows8, Windows 2012R2, Amazon Linux, RHEL6 and RHEL7.