fix templates
authorPeter Palfrader <peter@palfrader.org>
Fri, 18 Aug 2017 13:46:09 +0000 (15:46 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 18 Aug 2017 13:46:09 +0000 (15:46 +0200)
modules/grub/templates/puppet-kernel-extra.cfg.erb
modules/grub/templates/puppet-kernel-serial.cfg.erb

index 58f3ab0..140bb95 100644 (file)
@@ -1,3 +1,3 @@
-<%- if %w{fasolo}.include?(hostname) then -%>
+<%- if %w{fasolo}.include?(@hostname) then -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX elevator=deadline"
 <%- end -%>
index f35ad04..55ff4a0 100644 (file)
@@ -1,8 +1,8 @@
-<%- if %w{arm-conova-01 arm-arm-01}.include?(hostname) then -%>
+<%- if %w{arm-conova-01 arm-arm-01}.include?(@hostname) then -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyAMA0,115200n8"
-<%- elsif %w{arm-arm-03}.include?(hostname) then -%>
+<%- elsif %w{arm-arm-03}.include?(@hostname) then -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyS0,115200"
-<%- elsif %w{aagaard acker}.include?(hostname) then -%>
+<%- elsif %w{aagaard acker}.include?(@hostname) then -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyS0,115200 earlycon"
 <% else -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=tty0 console=ttyS0,115200n8"