Advertisement
hatifnatt

Untitled

Dec 20th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. pillar/shells/init.sls
  2. shells:
  3. {% if grains['os_family'] == 'FreeBSD' -%}
  4. shell_bash: '/usr/local/bin/bash'
  5. {% else -%}
  6. shell_bash: '/bin/bash'
  7. {% endif -%}
  8.  
  9. pillar/backuppc.sls
  10. users:
  11. backuppc:
  12. fullname: BackupPC Service
  13. password: '*'
  14. enforce_password: True
  15. empty_password: False
  16. hash_password: False
  17. sudouser: True
  18. sudo_rules:
  19. - ALL = NOPASSWD:/usr/bin/rsync, /bin/tar
  20. shell: {{ pillar['shells']['shell_bash'] }}
  21. prime_group:
  22. name: nogroup
  23. ssh_auth_sources:
  24. - salt://users/files/backuppc/backuppc.pub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement