diff options
author | mh <mh@immerda.ch> | 2012-06-05 21:31:15 -0300 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-06-05 21:31:15 -0300 |
commit | 39917fb4dbe21b1673ceabaa1d61180cca9f493b (patch) | |
tree | a359301fcff56065e9f8835a10925b4a6de07e4d /manifests/preseeded_package.pp | |
parent | f1a0eca4662f8c7ec47bfc3d60aa9099c8f9fa77 (diff) |
new style for 2.7
Diffstat (limited to 'manifests/preseeded_package.pp')
-rw-r--r-- | manifests/preseeded_package.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/preseeded_package.pp b/manifests/preseeded_package.pp index d831934..ac9a821 100644 --- a/manifests/preseeded_package.pp +++ b/manifests/preseeded_package.pp @@ -1,12 +1,11 @@ define apt::preseeded_package ($content = "", $ensure = "installed") { - $seedfile = "/var/cache/local/preseeding/$name.seeds" - $real_content = $content ? { - "" => template ( "site_apt/$lsbdistcodename/$name.seeds" ), - default => $content - } + $seedfile = "/var/cache/local/preseeding/${name}.seeds" file { $seedfile: - content => $real_content, + content => $content ? { + "" => template ( "site_apt/${::lsbdistcodename}/${name}.seeds" ), + default => $content + }, mode => 0600, owner => root, group => root, } |