Skip to content
Permalink
Browse files

added GPG example

  • Loading branch information...
BadgerOps committed May 31, 2017
1 parent 9c752d3 commit 4e03669ca1f4039b41131ac4f010ece6bcd98fe0
Showing with 23 additions and 0 deletions.
  1. +18 −0 pillar/base/init.sls
  2. +5 −0 salt/roles/base/init.sls
@@ -1,3 +1,5 @@
#!yaml|gpg

motd:
content: |
@@ -6,3 +8,19 @@ motd:
# This host is managed by Salt. Configuration changes made directly will be lost. #
# #
#########################################################################################################

encrypted:
- file: |
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.22 (GNU/Linux)
hQEMA8G6mPLFWtFSAQf/RQK9wCNIEU+rIvtniwaBx5FdrywOVN986w7V3VixdU+T
nHOj3hNWyZDqjRQHxki2x4clLtYSTs5OEP0JRKtcBa0G7m7mz1K8Daz1v5qqLpPo
2EdMIMdcOiw4cAef0n3jAn5CuinoreM/XESB5EM4QqqTZnQD4SMaQmTdJZVz0HS1
1xIgF6VDh9LeXNz0r5H3QJ8exGKtJIxDHpL537PMYC4wp9iSvFjRYW04S9cGYsEi
8hcQMNiaqJJS6Tw7oeUaBJflQI+HdssxOnRsKw3pSjGPPlH9dju4oi17crm5GYBK
8cZIDEQm3UIAMKbtCTN2UNv+3sPeGQqwPsecToiM59JLAU39LctFtPetiEkDAwxE
qIahkjlcjv0y/mSJvBd5jEjAVoKv3lp5Q8qNX7u0JKF9Bnz2A+Jvbf9jGqMzHaym
kcGLn53H0g4Rd0oC
=lhj7
-----END PGP MESSAGE-----
@@ -1,2 +1,7 @@
include:
- motd


/tmp/encrypted_file.txt:
file.managed:
- contents: {{ salt['pillar.get']('encrypted:file') }}

0 comments on commit 4e03669

Please sign in to comment.
You can’t perform that action at this time.