Advertisement
Guest User

Untitled

a guest
Mar 7th, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. {% for name, pass in pillar.get('sys-users', {}).items() %}
  2. {{name}}:
  3. user.present:
  4. - shell: /bin/bash
  5. - home: /home/{{name}}
  6. - password: {{pass}}
  7. {% endfor %}
  8.  
  9. {% for users in pillar['sys-users'] %}
  10. chage -d 0 {{users}}:
  11. cmd:
  12. - run
  13. {% endfor %}
  14.  
  15. # Pillar:
  16. sys-users:
  17. jsmith: "$1$blahblahblah."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement