X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tools%2Fodl-openstack-integration%2Fpuppet%2Fscripts%2Fbootstrap.sh;fp=tools%2Fodl-openstack-integration%2Fpuppet%2Fscripts%2Fbootstrap.sh;h=0000000000000000000000000000000000000000;hb=175a804ae2b4630acba90e364d3bc48b750a04e6;hp=6895b7df6ddb4189bf26bad745f646736ac71d24;hpb=5a3f6f338a491b20b79ae8295a0ab04482aceccf;p=integration%2Ftest.git diff --git a/tools/odl-openstack-integration/puppet/scripts/bootstrap.sh b/tools/odl-openstack-integration/puppet/scripts/bootstrap.sh deleted file mode 100644 index 6895b7df6d..0000000000 --- a/tools/odl-openstack-integration/puppet/scripts/bootstrap.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash -# -# This bootstraps Puppet on Ubuntu 12.04 LTS. -# -set -e - -# Load up the release information -. /etc/lsb-release - -REPO_DEB_URL="http://apt.puppetlabs.com/puppetlabs-release-${DISTRIB_CODENAME}.deb" - -#-------------------------------------------------------------------- -# NO TUNABLES BELOW THIS POINT -#-------------------------------------------------------------------- -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root." >&2 - exit 1 - fi - - if which puppet > /dev/null 2>&1; then - echo "Puppet is already installed." - exit 0 - fi - - # Do the initial apt-get update - echo "Initial apt-get update..." - apt-get update >/dev/null - - # Install wget if we have to (some older Ubuntu versions) - echo "Installing wget..." - apt-get install -y wget >/dev/null - - # Install the PuppetLabs repo - echo "Configuring PuppetLabs repo..." - repo_deb_path=$(mktemp) - wget --output-document="${repo_deb_path}" "${REPO_DEB_URL}" 2>/dev/null - dpkg -i "${repo_deb_path}" >/dev/null - apt-get update >/dev/null - - # Install Puppet - echo "Installing Puppet..." - apt-get install -y puppet >/dev/null - - echo "Puppet installed!" - - # Install RubyGems for the provider - echo "Installing RubyGems..." - apt-get install -y rubygems >/dev/null - gem install --no-ri --no-rdoc rubygems-update - update_rubygems >/dev/null - - # Installing Puppet Modules - puppet module install puppetlabs/vcsrepo - puppet module install puppetlabs/stdlib - -