Commit 9038a78c authored by Lance Albertson's avatar Lance Albertson
Browse files

Add support for either giving direct content or a specific file.

parent acdd2cb2
...@@ -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,
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment