summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apt
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_apt')
-rw-r--r--puppet/modules/site_apt/manifests/init.pp7
-rw-r--r--puppet/modules/site_apt/manifests/leap_repo.pp2
2 files changed, 8 insertions, 1 deletions
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp
index 26bd2c6a..798d0b84 100644
--- a/puppet/modules/site_apt/manifests/init.pp
+++ b/puppet/modules/site_apt/manifests/init.pp
@@ -12,6 +12,13 @@ class site_apt {
# leap repo url
$platform_sources = $sources['platform']
$apt_url_platform_basic = $platform_sources['apt']['basic']
+ $apt_platform_component = $platform_sources['apt']['component']
+
+ if ( $platform_sources['apt']['codename'] == '') {
+ $apt_platform_codename = $::lsbdistcodename
+ } else {
+ $apt_platform_codename = $platform_sources['apt']['codename']
+ }
# needed on jessie hosts for getting pnp4nagios from testing
if ( $::operatingsystemmajrelease == '8' ) {
diff --git a/puppet/modules/site_apt/manifests/leap_repo.pp b/puppet/modules/site_apt/manifests/leap_repo.pp
index 5eedce45..3d95d8b6 100644
--- a/puppet/modules/site_apt/manifests/leap_repo.pp
+++ b/puppet/modules/site_apt/manifests/leap_repo.pp
@@ -5,7 +5,7 @@ class site_apt::leap_repo {
$major_version = $platform['major_version']
apt::sources_list { 'leap.list':
- content => "deb ${::site_apt::apt_url_platform_basic} ${::lsbdistcodename} main\n",
+ content => "deb ${::site_apt::apt_url_platform_basic} ${::site_apt::apt_platform_codename} ${::site_apt::apt_platform_component}\n",
before => Exec[refresh_apt]
}