diff options
author | Roman Shaposhnik <rvs@apache.org> | 2017-03-28 21:32:12 -0700 |
---|---|---|
committer | Roman Shaposhnik <rvs@apache.org> | 2017-03-28 21:32:12 -0700 |
commit | 1fff67c749f70d3918e9763975f11e91acb862ed (patch) | |
tree | 070653ddf52fbcb4b8691c944f45507753d569b5 /bigtop-deploy | |
parent | 082a3e1c83f00ce3670d3a03036d3565b07f46ae (diff) |
BIGTOP-2726. Bump ambari version to 2.5
Diffstat (limited to 'bigtop-deploy')
-rw-r--r-- | bigtop-deploy/puppet/modules/ambari/manifests/init.pp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bigtop-deploy/puppet/modules/ambari/manifests/init.pp b/bigtop-deploy/puppet/modules/ambari/manifests/init.pp index 839f73c7..9f8bb25b 100644 --- a/bigtop-deploy/puppet/modules/ambari/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/ambari/manifests/init.pp @@ -28,20 +28,20 @@ class ambari { } exec { - "server setup": - command => "/usr/sbin/ambari-server setup -s", + "mpack install": + command => "/bin/bash -c 'echo yes | /usr/sbin/ambari-server install-mpack --purge --verbose --mpack=/var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz'", require => [ Package["ambari-server"] ] } - # FIXME: this is currently a workaround for 2.5 - file { ["/var/lib/ambari-server/resources/stacks/Bigtop", "/var/lib/ambari-server/resources/stacks/Bigtop/1.2.0"]: - ensure => 'directory', - require => [ Package["ambari-server"] ] + exec { + "server setup": + command => "/usr/sbin/ambari-server setup -s", + require => [ Package["ambari-server"], Exec["mpack install"] ] } service { "ambari-server": ensure => running, - require => [ Package["ambari-server"], Exec["server setup"], File["/var/lib/ambari-server/resources/stacks/Bigtop/1.2.0"] ], + require => [ Package["ambari-server"], Exec["server setup"] ], hasrestart => true, hasstatus => true, } |