aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rsnapshot
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
committerDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
commit2c7da66570999dcd21f11f976dc6ec27d820f45c (patch)
treeb97dd9f25df691c66b2be31b658cc6fec638d47e /modules/rsnapshot
parenta69863ece1973cf3eae488f30c657b57dfb89779 (diff)
downloadpuppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.gz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.bz2
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.xz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.zip
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
Diffstat (limited to 'modules/rsnapshot')
-rw-r--r--modules/rsnapshot/templates/cron_file2
-rw-r--r--modules/rsnapshot/templates/rsnapshot.conf6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/rsnapshot/templates/cron_file b/modules/rsnapshot/templates/cron_file
index 43ca9e1b..e484a88e 100644
--- a/modules/rsnapshot/templates/cron_file
+++ b/modules/rsnapshot/templates/cron_file
@@ -1,5 +1,5 @@
#!/bin/sh
<%- for conf in @rsnapshot_conf -%>
-/usr/bin/rsnapshot -c <%= conf %> <%= rsnapshot_arg %>
+/usr/bin/rsnapshot -c <%= @conf %> <%= @rsnapshot_arg %>
<%- end -%>
diff --git a/modules/rsnapshot/templates/rsnapshot.conf b/modules/rsnapshot/templates/rsnapshot.conf
index 2ec5edcf..f8d97018 100644
--- a/modules/rsnapshot/templates/rsnapshot.conf
+++ b/modules/rsnapshot/templates/rsnapshot.conf
@@ -24,7 +24,7 @@ config_version 1.2
# All snapshots will be stored under this root directory.
#
-snapshot_root <%= snapshot_root %>
+snapshot_root <%= @snapshot_root %>
# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
@@ -201,9 +201,9 @@ link_dest 1
###############################
<%- for b in @backup -%>
-<%= b.split().unshift("backup").join("\t") %>
+<%= @b.split().unshift("backup").join("\t") %>
<%- end -%>
<%- for bs in @backup_script -%>
-<%= bs.split().unshift("backup_script").join("\t") %>
+<%= @bs.split().unshift("backup_script").join("\t") %>
<%- end -%>