summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_apt/manifests/init.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp
index 1f8456b2..f420b0cc 100644
--- a/puppet/modules/site_apt/manifests/init.pp
+++ b/puppet/modules/site_apt/manifests/init.pp
@@ -1,6 +1,13 @@
-class site_apt {
+class site_apt {
- include ::apt
+ # on couchdb we need to include squeeze in apt preferences,
+ # so the cloudant package can pull some packages from squeeze
+ if 'couchdb' in $::services {
+ $custom_preferences = 'site_apt/preferences.include_squeeze'
+ } else {
+ $custom_preferences = ''
+ }
+ class {'apt': custom_preferences => $custom_preferences }
# enable http://deb.leap.se debian package repository
include site_apt::leap_repo