Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- consider the following pillar
- user:
- nicolas:
- lemail:
- - nicolas@gmail.com
- - nicolas@yahoo.com
- lipv4:
- - 10.10.10.11
- lssh_key:
- - nicolas_2015.pub
- - nicolas_2010.pub
- carl:
- lemail:
- - carl.yok@hisemployer.com
- - carl@gmail.com
- lipv4:
- - 10.10.10.12
- - 10.10.10.11
- lssh_key:
- - carl_2010.pub
- cedric:
- lemail:
- - cedric@gmail.com
- lipv4:
- - 10.10.10.10
- lssh_key:
- - cedric_2009.pub
- chantal:
- lemail:
- - chantal@msn.com
- lipv4:
- - 10.10.10.14
- lssh_key:
- - chantal_2015.pub
- groupuser:
- webadmin:
- luser
- - nicolas
- - carl
- lemail:
- - webadmin@corporate.ch
- sysadmin:
- luser:
- - cedric
- - chantal
- hosttype:
- webserver:
- lgroup:
- - webadmin
- luser:
- - chantal
- emailserver:
- luser:
- - cedric
- - chantal
- host:
- www.example.com:
- hosttype: webserver
- mail.example.com
- hosttype: emailserver
- then on some states, I'd like to have a list of all the users,
- to add their ip in the firewall or to add their ssh keys on authorized_keys
- and so on. The *smart* pillar will provide me for the minion:
- www.example.com
- luser:
- nicolas:
- ...
- carl:
- ..
- chantal:
- ..
- and for mail.example.com
- luser:
- cedric:
- ..
- chantal:
- ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement