74460853d1
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067 Reviewed-on: https://review.openstack.org/17319 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: James E. Blair <corvus@inaugust.com>
21 lines
627 B
Bash
Executable File
21 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cat > /etc/apt/preferences.d/00-puppet.pref <<EOF
|
|
Package: puppet puppet-common puppetmaster puppetmaster-common
|
|
Pin: version 2.7*
|
|
Pin-Priority: 501
|
|
EOF
|
|
|
|
lsbdistcodename=`lsb_release -c -s`
|
|
puppet_deb=puppetlabs-release-${lsbdistcodename}.deb
|
|
wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb
|
|
dpkg -i $puppet_deb
|
|
|
|
apt-get update
|
|
apt-get install -y puppet git rubygems
|
|
|
|
git clone https://github.com/openstack-infra/config
|
|
bash config/install_modules.sh
|
|
|
|
puppet apply --modulepath=`pwd`/config/modules:/etc/puppet/modules -e 'node default {class { "openstack_project::bare_slave": install_users => false }}'
|