Changes

Jump to: navigation, search

ReleaseEngineering/PuppetAgain/Secrets

202 bytes added, 19:34, 25 August 2015
tips for 1st time user
--output examples --password -l 'foo'
where 'foo' is the name of the variable to set. Then copyThe output will go to stdout, in 2 formats (all one line, multiline). Copy/paste whichever result format you prefer into `/etc/hiera/secrets.eyaml` or into your own `/etc/hiera/environments/<username>_secrets.eyaml`. Double-check your work before saving -- if this file can't be parsed as valid yaml, all puppet runs will fail.A python one line syntax checker is:  python -c "import yaml; f=open('secrets.eyaml','r'); yaml.load(f)" && echo "pass" || echo "FAIL"
To encrypt a new *file* (e.g. a private key) rather than a password, pipe the contents of the file to the above command, and replace --password with --stdin, e.g.
Confirm
1,364
edits

Navigation menu