summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2009-12-13 15:14:39 +0100
committernadir <nadir-technik@nadir.org>2009-12-13 15:14:39 +0100
commit0c86627838c5cafbc4f6c5ecfaf389a90e0dcc20 (patch)
treea5a23b6642f6c24cd142b61b348b8112e4a7e7e2 /manifests/init.pp
parent1c491fecdaa31b0729de4cbcfac431829851b989 (diff)
added $apt_volatile_enabled, updated README
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 11f627b..4606a94 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -21,6 +21,11 @@ class apt {
'true' => 'true',
default => $apt_deb_src_enabled,
}
+
+ $apt_volatile_enabled = $apt_volatile_enabled ? {
+ 'true' => 'true',
+ default => $apt_volatile_enabled,
+ }
package { apt: ensure => installed }
@@ -159,7 +164,6 @@ class apt {
case $apt_deb_src_enabled {
'true': {
config_file {
- # deb-src
"/etc/apt/sources.list.d/debian-sources.list":
content => template("apt/sources.list.deb-src.erb"),
require => Exec[assert_lsbdistcodename];
@@ -168,6 +172,17 @@ class apt {
default: {}
}
+ case $apt_volatile_enabled {
+ 'true': {
+ config_file {
+ "/etc/apt/sources.list.d/debian-volatile.list":
+ content => template("apt/sources.list.volatile.erb"),
+ require => Exec[assert_lsbdistcodename];
+ }
+ }
+ default: {}
+ }
+
case $custom_key_dir {
'': {
exec { "/bin/true # no_custom_keydir": }