Skip to content

Instantly share code, notes, and snippets.

@prometheanfire
Created June 12, 2019 17:07
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 prometheanfire/6baf04134f77fe90e2ef721d65490a8e to your computer and use it in GitHub Desktop.
Save prometheanfire/6baf04134f77fe90e2ef721d65490a8e to your computer and use it in GitHub Desktop.
# in top.sls (only 1 ext pillar defined, no other)
base:
'hostname':
- status.production
# in status/production.sls
users:
root:
password: foo
ssh_auth_sources:
- salt://foo/bar/baz
include:
- sys/users/everyone
# in sys/users/everyone.sls
users:
foobar:
fullname: John Johnson
uid: 12345
ssh_auth_sources:
- salt://sys/users/keys/johnjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment