summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-01-27 22:14:26 +0100
committervarac <varacanero@zeromail.org>2015-01-27 22:14:26 +0100
commite99752e09a784629b89a2f798109804b11a1e8a4 (patch)
treea74f33633249a341b905ae909a640209371854fb /puppet/modules
parent1da37fd05328976894035176faed6811d003dd4c (diff)
use apt.url hiera value for customizing apt sources url
Change-Id: Ib18c9031df13dab3187e0bb0f2202ffddd0d228d
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_apt/manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp
index 633ccf1e..7e63eaf1 100644
--- a/puppet/modules/site_apt/manifests/init.pp
+++ b/puppet/modules/site_apt/manifests/init.pp
@@ -1,7 +1,12 @@
class site_apt {
+ $apt_config = hiera('apt')
+ $apt_url = $apt_config['url']
+
class { 'apt':
- custom_key_dir => 'puppet:///modules/site_apt/keys'
+ custom_key_dir => 'puppet:///modules/site_apt/keys',
+ debian_url => $apt_url,
+ backports_url => $apt_url
}
# enable http://deb.leap.se debian package repository