aboutsummaryrefslogtreecommitdiff
path: root/bigtop_toolchain
diff options
context:
space:
mode:
authorevans_ye <innovansye@gmail.com>2014-12-16 17:15:36 +0000
committerKonstantin Boudnik <cos@apache.org>2014-12-22 19:56:20 -0800
commita0035a39383b19662b247066860b8940eef6281a (patch)
tree7cd77db3e267425fcc2012df5bc609fe024f3b55 /bigtop_toolchain
parentbc80fd44796c6642c2d349fa7eaab228324779fb (diff)
downloadbigtop-odpi-a0035a39383b19662b247066860b8940eef6281a.tar.gz
BIGTOP-1576. Add Vagrant installation to bigtop_toolchain
Signed-off-by: Konstantin Boudnik <cos@apache.org>
Diffstat (limited to 'bigtop_toolchain')
-rw-r--r--bigtop_toolchain/README.md9
-rw-r--r--bigtop_toolchain/manifests/deployment-tools.pp18
-rw-r--r--bigtop_toolchain/manifests/vagrant.pp39
3 files changed, 66 insertions, 0 deletions
diff --git a/bigtop_toolchain/README.md b/bigtop_toolchain/README.md
index 01f0451d..206d4b12 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.
diff --git a/bigtop_toolchain/manifests/deployment-tools.pp b/bigtop_toolchain/manifests/deployment-tools.pp
new file mode 100644
index 00000000..cd0104cc
--- /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
+}
diff --git a/bigtop_toolchain/manifests/vagrant.pp b/bigtop_toolchain/manifests/vagrant.pp
new file mode 100644
index 00000000..cf17fb64
--- /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'
+ }
+ }
+ }
+}