GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
x-way
/
puppet-interfaces
Browse code
Style cleanup: replace tab characters with \t
master
1 parent
17f8363
commit
e251128c3e953e30028f42994f83fdf013cfd2a6
Andreas Jaggi
authored
on 12 Aug 2012
Patch
Unified
Split
Showing
2 changed files
+1
-1
■
■
■■■
manifests/iface.pp
+1
-1
■
■
■■■
manifests/mapping.pp
Ignore Space
Show notes
View
2
■
■
■■■
manifests/iface.pp
if
$auto
==
1
{
interfaces
::
auto
{
$_ifname
:
}
}
$str
=
"iface ${_ifname} ${family} ${method}\n <%= options.join('\n ') %>\n\n"
$str
=
"iface ${_ifname} ${family} ${method}\n\t<%= options.join('\n\t') %>\n\n"
concat
::
fragment
{
"interfaces::iface_${name}"
:
target
=>
'/etc/network/interfaces'
,
content
=>
inline_template
(
$str
),
}
Ignore Space
Show notes
View
2
■
■
■■■
manifests/mapping.pp
define interfaces
::
mapping
(
$script
,
$maps
)
{
$str
=
"mapping ${name}\n script ${script}\n <%= maps.join('\n ') %>\n\n"
$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
),
}
Show line notes below