Skip to content

Instantly share code, notes, and snippets.

@kelchm
Created February 18, 2014 13:44
Show Gist options
  • Save kelchm/9071244 to your computer and use it in GitHub Desktop.
Save kelchm/9071244 to your computer and use it in GitHub Desktop.
/mnt/backup:
mount.mounted:
- device: 10.1.52.20:/mnt/ZFS-P1/VZ-Backups/
- fstype: nfs
- mkmnt: True
- persist: True
- opts:
- rw
- auto
- noatime
- sync
- rsize=32768
- wsize=32768
- intr
- require:
- pkg: nfs-utils
{% if salt['grains.get']('productname', 'None') == 'None' %}
sh /bhtools/vz_backup.sh:
cron.absent:
- user: root
- minute: random
- hour: random
- daymonth: '*'
{% else %}
cron.absent:
- user: root
- minute: random
- hour: random
- daymonth: '*'
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment