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
#!py | |
# Pin the minion to a specific saltenv/pillarenv | |
def run(): | |
config = {} | |
env_map = {} | |
for env_key in ('saltenv', 'pillarenv'): |
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
# 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 |
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
[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 |