
The stankevich/puppet-python module was causing issues, so this patch removed the dependency on it. Now pip is used to install directly onto the system instead of in a virtualenv. Change-Id: I8f9922ab05429f15cc718561ed3b324ffe8ea746
34 lines
1.0 KiB
Bash
34 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
|
|
|
|
# Install pip.
|
|
wget https://bootstrap.pypa.io/get-pip.py
|
|
sudo python get-pip.py
|
|
|
|
# Create a symlink to the vagrant directory, so puppet can find our module.
|
|
if [ ! -d /etc/puppet/modules/refstack ]; then
|
|
sudo ln -s /vagrant /etc/puppet/modules/refstack
|
|
fi
|
|
|
|
# Install required puppet modules.
|
|
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/vcsrepo ]; then
|
|
puppet module install openstackci-vcsrepo --version 0.0.8
|
|
fi
|