Created
December 20, 2016 19:40
-
-
Save whytewolf/56ad1b409b05690a02f0b7978bcd8b64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if grains['os_family'] == 'FreeBSD' -%} | |
{% set shell = '/usr/local/bin/bash' %} | |
{% else %} | |
{% set shell = '/bin/bash' %} | |
{%endif%} | |
users: | |
backuppc: | |
fullname: BackupPC Service | |
password: '*' | |
enforce_password: True | |
empty_password: False | |
hash_password: False | |
sudouser: True | |
sudo_rules: | |
- ALL = NOPASSWD:/usr/bin/rsync, /bin/tar | |
shell: {{shell}} | |
prime_group: | |
name: nogroup | |
ssh_auth_sources: | |
- salt://users/files/backuppc/backuppc.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment