aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bigtop-deploy/puppet/manifests/bigtop_repo.pp22
1 files changed, 12 insertions, 10 deletions
diff --git a/bigtop-deploy/puppet/manifests/bigtop_repo.pp b/bigtop-deploy/puppet/manifests/bigtop_repo.pp
index 48451cbc..2363c5d3 100644
--- a/bigtop-deploy/puppet/manifests/bigtop_repo.pp
+++ b/bigtop-deploy/puppet/manifests/bigtop_repo.pp
@@ -45,16 +45,18 @@ class bigtop_repo {
content => "APT::Get::AllowUnauthenticated 1;",
ensure => present
}
- each ($baseurls_array) |$count, $baseurl| {
- notify {"Baseurl: $baseurl" :}
- apt::source { "Bigtop_$count":
- location => $baseurl,
- release => "bigtop",
- repos => "contrib",
- # BIGTOP-2796. Give Bigtop repo higher priority to solve zookeeper package conflict probem on Ubuntu
- pin => "900",
- ensure => present,
- }
+ if ($operatingsystem == "Ubuntu") {
+ each ($baseurls_array) |$count, $baseurl| {
+ notify {"Baseurl: $baseurl" :}
+ apt::source { "Bigtop_$count":
+ location => $baseurl,
+ release => "bigtop",
+ repos => "contrib",
+ # BIGTOP-2796. Give Bigtop repo higher priority to solve zookeeper package conflict probem on Ubuntu
+ pin => "900",
+ ensure => present,
+ }
+ }
}
# It seems that calling update explicitely isn't needed because as far I can see
# it is getting called automatically. Perhaps this was needed for older versions?