Repository: bigtop Updated Branches: refs/heads/master bc80fd447 -> a0035a393
BIGTOP-1576. Add Vagrant installation to bigtop_toolchain Signed-off-by: Konstantin Boudnik <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/a0035a39 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/a0035a39 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/a0035a39 Branch: refs/heads/master Commit: a0035a39383b19662b247066860b8940eef6281a Parents: bc80fd4 Author: evans_ye <[email protected]> Authored: Tue Dec 16 17:15:36 2014 +0000 Committer: Konstantin Boudnik <[email protected]> Committed: Mon Dec 22 19:56:20 2014 -0800 ---------------------------------------------------------------------- bigtop_toolchain/README.md | 9 +++++ bigtop_toolchain/manifests/deployment-tools.pp | 18 ++++++++++ bigtop_toolchain/manifests/vagrant.pp | 39 +++++++++++++++++++++ 3 files changed, 66 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/a0035a39/bigtop_toolchain/README.md ---------------------------------------------------------------------- diff --git a/bigtop_toolchain/README.md b/bigtop_toolchain/README.md index 01f0451..206d4b1 100644 --- a/bigtop_toolchain/README.md +++ b/bigtop_toolchain/README.md @@ -74,6 +74,15 @@ standalone with a command such as: where <path_to_bigtop> is the cloned git repo. +## Installation of Tools for Bigtop Deployment + +This is a separated set of manifests that helps to setup tools for Bigtop deployment. +The usage is as below: + + puppet apply --modulepath=<path_to_bigtop> -e "include bigtop_toolchain::deployment-tools" + +By applying the snippet, Vagrant will be installed(the Docker installation will be added soon). + ## Requirements For RedHat/Centos, due to redistribution restrictions the Oracle JDK must be downloaded seperately. http://git-wip-us.apache.org/repos/asf/bigtop/blob/a0035a39/bigtop_toolchain/manifests/deployment-tools.pp ---------------------------------------------------------------------- diff --git a/bigtop_toolchain/manifests/deployment-tools.pp b/bigtop_toolchain/manifests/deployment-tools.pp new file mode 100644 index 0000000..cd0104c --- /dev/null +++ b/bigtop_toolchain/manifests/deployment-tools.pp @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +class bigtop_toolchain::deployment-tools { + include bigtop_toolchain::vagrant +} http://git-wip-us.apache.org/repos/asf/bigtop/blob/a0035a39/bigtop_toolchain/manifests/vagrant.pp ---------------------------------------------------------------------- diff --git a/bigtop_toolchain/manifests/vagrant.pp b/bigtop_toolchain/manifests/vagrant.pp new file mode 100644 index 0000000..cf17fb6 --- /dev/null +++ b/bigtop_toolchain/manifests/vagrant.pp @@ -0,0 +1,39 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +class bigtop_toolchain::vagrant { + + case $operatingsystem{ + /Ubuntu|Debian/: { + exec {'download-vagrant': + command => '/usr/bin/wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.1_x86_64.deb --output-document /tmp/vagrant_1.7.1_x86_64.deb', + creates => '/tmp/vagrant_1.7.1_x86_64.deb' + } + package { 'vagrant': + ensure => 'latest', + source => '/tmp/vagrant_1.7.1_x86_64.deb', + provider => 'dpkg', + require => Exec['download-vagrant'] + } + } + default : { + package { 'vagrant': + ensure => 'latest', + source => 'https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.1_x86_64.rpm', + provider => 'rpm' + } + } + } +}
