Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created December 20, 2016 19:40
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 whytewolf/56ad1b409b05690a02f0b7978bcd8b64 to your computer and use it in GitHub Desktop.
Save whytewolf/56ad1b409b05690a02f0b7978bcd8b64 to your computer and use it in GitHub Desktop.
{% 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