Skip to content

Instantly share code, notes, and snippets.

@lietu
Last active April 19, 2017 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lietu/c26f3d8410b1a5f9ec50e416c4e638e1 to your computer and use it in GitHub Desktop.
Save lietu/c26f3d8410b1a5f9ec50e416c4e638e1 to your computer and use it in GitHub Desktop.
secrets.sls contains the GPG encrypted value for `%{$secret`:
----- BEGIN secrets.sls -----
#!yaml|gpg
# Example only, not really used for anything
mysql-password: |
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.22 (GNU/Linux)
hQEMA29Acv9q22PUAQf/dDoQejobvSOoLtkeOS7fxGkK+EHmP/d3B2YEhctvcRR/
yx34b9vfdrzgMiCUCpb1qqw9Wr+0zZ25/xDHs9FvOkiNSLw9TxjZV0FDh6t8ykTq
2Jh6t/islVFDSgA0MgZ04gmQs44kpYx2G/2fvCbcpdf6c8+Cz9fIJTiqQp4aGs0e
Ss9IrjXRucyvlPtLtd3CcMic+anj/eM3TWV6PUX9kNvwsdK+2d1Nk+7BVRXyuhXs
ngovz7xGHNdQAOsdKHo2QdPk8ERoG1fDj/NzhIlp6uzAqgye7XBHDY8On+9Em2hy
/IlO5y6hsdJ4clc78cmIXT3EPX/AiKwhOhU4zYuWptI9AUJzEpMxLEr28RDJ+F1+
Msg/keXVXe/Mm6okuLG2akbXjvkTNgF30hCU/do3uRx/EYM6BuT4jYr3FWESuw==
=Hnvr
-----END PGP MESSAGE-----
----- END secrets.sls -----
# salt-call pillar.get mysql-password
local:
%{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment