diff options
author | mh <mh@immerda.ch> | 2010-10-17 13:58:59 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-17 13:58:59 +0200 |
commit | 4d28e6668f0c26d7484198c1cdf418c83898b3c7 (patch) | |
tree | 4a7280dd41a671170014d5d3d01d52931a0b94a6 /manifests/preferences_snippet.pp | |
parent | 521ccfec19d40fa5d78162727afa26c15778c173 (diff) |
introduce preferences snippet
Now, we have the possibility to externally add snippes, so that
we can preferences for packages that are for example only in backports
or unstable.
Diffstat (limited to 'manifests/preferences_snippet.pp')
-rw-r--r-- | manifests/preferences_snippet.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/preferences_snippet.pp b/manifests/preferences_snippet.pp new file mode 100644 index 0000000..52edf97 --- /dev/null +++ b/manifests/preferences_snippet.pp @@ -0,0 +1,11 @@ +define apt::preferences_snippet( + $ensure => 'present', + $content +){ + file { "/var/lib/puppet/modules/apt/preferences/${name}": + ensure => $ensure, + content => "${content}\n", + notify => Exec['concat_/var/lib/puppet/modules/apt/preferences'], + owner => root, group => 0, mode => 0600; + } +} |