Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Forks
Puppet Portage
Commits
9038a78c
Commit
9038a78c
authored
Jul 31, 2011
by
Lance Albertson
Browse files
Add support for either giving direct content or a specific file.
parent
acdd2cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
manifests/makeconf.pp
manifests/makeconf.pp
+11
-8
No files found.
manifests/makeconf.pp
View file @
9038a78c
...
@@ -15,15 +15,18 @@ class gentoo::makeconf inherits gentoo {
...
@@ -15,15 +15,18 @@ class gentoo::makeconf inherits gentoo {
}
}
}
}
define
gentoo::makeconf::setting
(
$content
=
""
,
$order
=
10
)
{
define
gentoo::makeconf::setting
(
$source
=
""
,
$content
=
""
,
$order
=
10
)
{
if
$content
==
""
{
if
$content
{
$body
=
$name
concat::fragment
{
"makeconf_
$name
"
:
}
else
{
target
=>
"/etc/make.conf"
,
$body
=
$content
order
=>
$order
,
content
=>
"
$content
\n
"
,
}
}
concat::fragment
{
"makeconf_
$name
"
:
if
$source
{
target
=>
"/etc/make.conf"
,
concat::fragment
{
"makeconf_
$name
"
:
content
=>
"
$body
\n
"
,
target
=>
"/etc/make.conf"
,
order
=>
$order
,
source
=>
$source
,
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment