1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-13 01:00:34 +00:00
puppet-rsnapshot/templates/cron.erb
olevole 100eafe356 add FreeBSD support
changes for FreeBSD are trivial and mainly relate to
an alternative path to configuration and executable files.
So, the standard way for 3rd-party config files in FreeBSD:
  /usr/local/etc{/rsnapshot}
and for binaries:
  /usr/local
Also, define @cmd_rsnapshot in cron.erb via config_cmd_rsnapshot
2018-10-14 06:36:46 +03:00

2 lines
245 B
Plaintext

<%= @minute %> <%= @hour %> <%= @monthday %> <%= @month %> <%= @weekday %> root<% if scope['rsnapshot::check_mk_job'] == true -%> mk-job rsnapshot_<%= @host %>_<%= @level %><% end -%> <%= @cmd_rsnapshot %> -c <%= @config %> <%= @level %>