From d5f3dbe0a5ff87a619bec9a99c0618f90f781659 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 20 Oct 2015 14:14:08 -0200 Subject: Fix variable deprecations on templates --- templates/sys.conf.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/sys.conf.erb') diff --git a/templates/sys.conf.erb b/templates/sys.conf.erb index a684e8b..84297d3 100644 --- a/templates/sys.conf.erb +++ b/templates/sys.conf.erb @@ -3,16 +3,16 @@ # the next time Puppet runs. Please make configuration changes to this # service in Puppet. -<% %w{parentdir packagesfile partitionsfile hardwarefile}.each do |v| +<% %w{@parentdir @packagesfile @partitionsfile @hardwarefile}.each do |v| if send(v) -%><%= v + ' = ' + send(v) + "\n" %><% end end -%> -packages = <%= packages ? 'yes' : 'no' %> -partitions = <%= partitions ? 'yes' : 'no' %> -dosfdisk = <%= dosfdisk ? 'yes' : 'no' %> -hardware = <%= hardware ? 'yes' : 'no' %> -dohwinfo = <%= dohwinfo ? 'yes' : 'no' %> -luksheaders = <%= doluks ? 'yes' : 'no' %> -lvm = <%= dolvm ? 'yes' : 'no' %> +packages = <%= @packages ? 'yes' : 'no' %> +partitions = <%= @partitions ? 'yes' : 'no' %> +dosfdisk = <%= @dosfdisk ? 'yes' : 'no' %> +hardware = <%= @hardware ? 'yes' : 'no' %> +dohwinfo = <%= @dohwinfo ? 'yes' : 'no' %> +luksheaders = <%= @doluks ? 'yes' : 'no' %> +lvm = <%= @dolvm ? 'yes' : 'no' %> -- cgit v1.2.3