Skip to content

Instantly share code, notes, and snippets.

View cmclaughlin's full-sized avatar

Charles McLaughlin cmclaughlin

View GitHub Profile
#!py
# Pin the minion to a specific saltenv/pillarenv
def run():
config = {}
env_map = {}
for env_key in ('saltenv', 'pillarenv'):
# Write policies from Pillar data
/etc/vault.d/policies.d:
file.directory:
- mode: 0700
{% for name, policy in salt['pillar.get']('vault:policies').iteritems() %}
/etc/vault.d/policies.d/{{ name }}.json:
file.managed:
- source: salt://shopstyle-vault/files/policy.json
- mode: 0600
@cmclaughlin
cmclaughlin / build.log
Created January 25, 2017 18:01
elasticsearch-formula-tests
[cmclaughlin@dev-charlestest-1b001 elasticsearch-formula]$ bundle exec kitchen test
-----> Starting Kitchen (v1.13.2)
-----> Cleaning up any prior instances of <default-ubuntu-1404>
-----> Destroying <default-ubuntu-1404>...
Finished destroying <default-ubuntu-1404> (0m0.00s).
-----> Testing <default-ubuntu-1404>
-----> Creating <default-ubuntu-1404>...
Sending build context to Docker daemon 314.4 kB
Step 1 : FROM ubuntu:14.04
14.04: Pulling from library/ubuntu