diff --git a/manifests/iface.pp b/manifests/iface.pp index 6dbff70..8790aa5 100644 --- a/manifests/iface.pp +++ b/manifests/iface.pp @@ -29,9 +29,8 @@ interfaces::auto { $ifname_real: } } - $str = "iface ${ifname_real} ${family} ${method}\n\t<%= options.join('\n\t') %>\n\n" concat::fragment{"interfaces::iface_${name}": target => '/etc/network/interfaces', - content => inline_template($str), + content => inline_template("iface <%= ifname_real -%> <%= family -%> <%= method -%>\n\t<%= options.join('\n\t') -%>\n\n"), } } diff --git a/manifests/mapping.pp b/manifests/mapping.pp index 8fe109e..12247d0 100644 --- a/manifests/mapping.pp +++ b/manifests/mapping.pp @@ -1,7 +1,6 @@ define interfaces::mapping ( $script, $maps ) { - $str = "mapping ${name}\n\tscript ${script}\n\t<%= maps.join('\n\t') %>\n\n" concat::fragment{"interfaces::mapping_${name}": target => '/etc/network/interfaces', - content => inline_template($str), + content => inline_template("mapping <%= name -%>\n\tscript <%= script -%>\n\t<%= maps.join('\n\t') -%>\n\n"), } }