aboutsummaryrefslogtreecommitdiff
path: root/bigtop_toolchain
diff options
context:
space:
mode:
authorEvans Ye <evansye@apache.org>2015-04-27 04:15:01 +0000
committerKonstantin Boudnik <cos@wandisco.com>2015-04-28 10:32:22 -0700
commit05abe61cb1a44488b58c82bf898aea43d570bcbb (patch)
treebf59305dce76108e737b1c4a09e59bb1cbc71809 /bigtop_toolchain
parent4a10e473d75eb4ace28630c4bbd424b712b88740 (diff)
downloadbigtop-odpi-05abe61cb1a44488b58c82bf898aea43d570bcbb.tar.gz
BIGTOP-1849. toolchain can not set java home correctly in CentOS 7
Signed-off-by: Konstantin Boudnik <cos@wandisco.com>
Diffstat (limited to 'bigtop_toolchain')
-rw-r--r--bigtop_toolchain/manifests/env.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/bigtop_toolchain/manifests/env.pp b/bigtop_toolchain/manifests/env.pp
index e16c7b57..023d6ad7 100644
--- a/bigtop_toolchain/manifests/env.pp
+++ b/bigtop_toolchain/manifests/env.pp
@@ -33,6 +33,25 @@ class bigtop_toolchain::env {
mode => 644,
}
}
+ CentOS: {
+ if $operatingsystemmajrelease >=7 {
+ file {'/etc/profile.d/bigtop.sh':
+ source => 'puppet:///modules/bigtop_toolchain/jenkins.sh.fedora',
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ }
+ } else {
+ file {'/etc/profile.d/bigtop.sh':
+ source => 'puppet:///modules/bigtop_toolchain/jenkins.sh.centos',
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ }
+ }
+ }
default: {
file {'/etc/profile.d/bigtop.sh':
source => 'puppet:///modules/bigtop_toolchain/jenkins.sh.centos',