diff --git a/manifests/allow.pp b/manifests/allow.pp index 267f859..2276ccc 100644 --- a/manifests/allow.pp +++ b/manifests/allow.pp @@ -1,7 +1,7 @@ define interfaces::allow ( $subsystem ) { - concat::fragment{"interfaces::allow-${subsystem}_${name}": - target => '/etc/network/interfaces', - content => "allow-${subsystem} ${name}\n\n", - } + concat::fragment{"interfaces::allow-${subsystem}_${name}": + target => '/etc/network/interfaces', + content => "allow-${subsystem} ${name}\n\n", + } } diff --git a/manifests/auto.pp b/manifests/auto.pp index aa09603..1a74266 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', - content => "auto ${name}\n\n", - } + concat::fragment{"interfaces::auto_${name}": + target => '/etc/network/interfaces', + content => "auto ${name}\n\n", + } } diff --git a/manifests/iface.pp b/manifests/iface.pp index ec8a7ab..92d43a0 100644 --- a/manifests/iface.pp +++ b/manifests/iface.pp @@ -1,11 +1,11 @@ define interfaces::iface ( $family, $method, $options=[], $auto=0, $ifname=$name ) { - if $auto == 1 { - interfaces::auto { "${ifname}": } - } + if $auto == 1 { + interfaces::auto { "${ifname}": } + } - $str = "iface ${ifname} ${family} ${method}\n <%= options.join('\n ') %>\n\n" - concat::fragment{"interfaces::iface_${name}": - target => '/etc/network/interfaces', - content => inline_template($str), - } + $str = "iface ${ifname} ${family} ${method}\n <%= options.join('\n ') %>\n\n" + concat::fragment{"interfaces::iface_${name}": + target => '/etc/network/interfaces', + content => inline_template($str), + } } diff --git a/manifests/init.pp b/manifests/init.pp index d07bd67..d8204c0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,15 +1,15 @@ class interfaces { - include concat::setup + include concat::setup - concat{'/etc/network/interfaces': - owner => root, - group => root, - mode => 644, - } + concat{'/etc/network/interfaces': + owner => root, + group => root, + mode => 644, + } - concat::fragment{'interfaces_header': - 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, - } + concat::fragment{'interfaces_header': + 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, + } } diff --git a/manifests/mapping.pp b/manifests/mapping.pp index 195624e..178686d 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', - content => inline_template($str), - } + $str = "mapping ${name}\n script ${script}\n <%= maps.join('\n ') %>\n\n" + concat::fragment{"interfaces::mapping_${name}": + target => '/etc/network/interfaces', + content => inline_template($str), + } }