puppet-storyboard/vagrant.sh
Clark Boylan 98c85cb0a7 Remove unused puppi dependency
We assert a dependency on this puppi puppet module but then never use
it. Looking at the git log we used it at one time to download tarballs
but then stopped as it wasn't reliable enough.

Clean this up to make puppet 4 happier about this module not having
puppi available in production.

Change-Id: Ifed308229b92035e8b62d8b3677ca698639c6804
2019-03-06 13:31:34 -08:00

33 lines
1.0 KiB
Bash

#!/bin/sh
# Install Puppet!
if [ ! -f /etc/apt/sources.list.d/puppetlabs.list ]; then
lsbdistcodename=`lsb_release -c -s`
wget https://apt.puppetlabs.com/puppetlabs-release-${lsbdistcodename}.deb
sudo dpkg -i puppetlabs-release-${lsbdistcodename}.deb
sudo apt-get update
sudo apt-get dist-upgrade -y
fi
if [ ! -d /etc/puppet/modules/stdlib ]; then
puppet module install puppetlabs-stdlib --version 3.2.0
fi
if [ ! -d /etc/puppet/modules/mysql ]; then
puppet module install puppetlabs-mysql --version 0.6.1
fi
if [ ! -d /etc/puppet/modules/apache ]; then
puppet module install puppetlabs-apache --version 0.0.4
fi
if [ ! -d /etc/puppet/modules/rabbitmq ]; then
puppet module install puppetlabs-rabbitmq --version 5.0.0
fi
if [ ! -d /etc/puppet/modules/vcsrepo ]; then
puppet module install openstackinfra-vcsrepo --version 0.0.8
fi
if [ ! -d /etc/puppet/modules/python ]; then
puppet module install stankevich-python --version 1.6.6
fi
if [ ! -d /etc/puppet/modules/storyboard ]; then
sudo ln -s /vagrant /etc/puppet/modules/storyboard
fi