diff --git a/manifests/allow.pp b/manifests/allow.pp index 2276ccc..555e707 100644 --- a/manifests/allow.pp +++ b/manifests/allow.pp @@ -1,6 +1,6 @@ define interfaces::allow ( $subsystem ) { concat::fragment{"interfaces::allow-${subsystem}_${name}": - target => '/etc/network/interfaces', + target => '/etc/network/interfaces', content => "allow-${subsystem} ${name}\n\n", } } diff --git a/manifests/auto.pp b/manifests/auto.pp index 1a74266..5ed7eda 100644 --- a/manifests/auto.pp +++ b/manifests/auto.pp @@ -1,6 +1,6 @@ define interfaces::auto ( ) { concat::fragment{"interfaces::auto_${name}": - target => '/etc/network/interfaces', + target => '/etc/network/interfaces', content => "auto ${name}\n\n", } } diff --git a/manifests/iface.pp b/manifests/iface.pp index 92d43a0..54285c4 100644 --- a/manifests/iface.pp +++ b/manifests/iface.pp @@ -5,7 +5,7 @@ $str = "iface ${ifname} ${family} ${method}\n <%= options.join('\n ') %>\n\n" concat::fragment{"interfaces::iface_${name}": - target => '/etc/network/interfaces', + target => '/etc/network/interfaces', content => inline_template($str), } } diff --git a/manifests/init.pp b/manifests/init.pp index d8204c0..19dc370 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,12 +4,12 @@ concat{'/etc/network/interfaces': owner => root, group => root, - mode => 644, + mode => 644, } concat::fragment{'interfaces_header': - target => '/etc/network/interfaces', + target => '/etc/network/interfaces', content => "# This file describes the network interfaces available on your system\n# and how to activate them. For more information, see interfaces(5).\n\n# Generated by puppet for ${fqdn}, DO NOT MODIFY!\n\n", - order => 01, + order => 01, } } diff --git a/manifests/mapping.pp b/manifests/mapping.pp index 178686d..a74abf6 100644 --- a/manifests/mapping.pp +++ b/manifests/mapping.pp @@ -1,7 +1,7 @@ define interfaces::mapping ( $script, $maps ) { $str = "mapping ${name}\n script ${script}\n <%= maps.join('\n ') %>\n\n" concat::fragment{"interfaces::mapping_${name}": - target => '/etc/network/interfaces', + target => '/etc/network/interfaces', content => inline_template($str), } }