diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-20 14:14:08 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-20 14:14:08 -0200 |
commit | d5f3dbe0a5ff87a619bec9a99c0618f90f781659 (patch) | |
tree | dd26fb7bda6655859cb176eb23f3695ba3e54d66 /templates/mysql.conf.erb | |
parent | fc98b0dbd9d9b0982338a4f4d017594ec48511a1 (diff) | |
download | puppet-backupninja-d5f3dbe0a5ff87a619bec9a99c0618f90f781659.tar.gz puppet-backupninja-d5f3dbe0a5ff87a619bec9a99c0618f90f781659.tar.bz2 |
Fix variable deprecations on templates
Diffstat (limited to 'templates/mysql.conf.erb')
-rw-r--r-- | templates/mysql.conf.erb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/mysql.conf.erb b/templates/mysql.conf.erb index b7ac5e8..cb4617d 100644 --- a/templates/mysql.conf.erb +++ b/templates/mysql.conf.erb @@ -3,23 +3,23 @@ # the next time Puppet runs. Please make configuration changes to this # service in Puppet. -<% %w{user dbusername dbpassword dbhost databases backupdir vsname sqldumpoptions}.each do |v| +<% %w{@user @dbusername @dbpassword @dbhost @databases @backupdir @vsname @sqldumpoptions}.each do |v| if send(v) -%><%= v + ' = ' + send(v) + "\n" %><% end end -%> -hotcopy = <%= hotcopy ? 'yes' : 'no' %> -sqldump = <%= sqldump ? 'yes' : 'no' %> -compress = <%= compress ? 'yes' : 'no' %> +hotcopy = <%= @hotcopy ? 'yes' : 'no' %> +sqldump = <%= @sqldump ? 'yes' : 'no' %> +compress = <%= @compress ? 'yes' : 'no' %> -<% if real_configfile %> -configfile = <%= real_configfile %> +<% if @real_configfile %> +configfile = <%= @real_configfile %> <% end %> -<% if nodata.is_a? String -%> -<%= 'nodata = ' + nodata %> -<% elsif nodata.is_a? Array -%> -<%= "nodata = " + nodata.map { |i| "#{i}" }.join(" ") %> +<% if @nodata.is_a? String -%> +<%= 'nodata = ' + @nodata %> +<% elsif @nodata.is_a? Array -%> +<%= "nodata = " + @nodata.map { |i| "#{i}" }.join(" ") %> <% end -%> |