cfb6d326f4
In openstack_project::base use the Apt module to configure the upstream puppet labs apt repository and pin puppet to version 2.7.*. Change-Id: I0a09e02e3d26eb9452215e5bccef143487e9e58d Reviewed-on: https://review.openstack.org/14194 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
21 lines
660 B
Bash
Executable File
21 lines
660 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/openstack-ci-puppet
|
|
bash openstack-ci-puppet/install_modules.sh
|
|
|
|
puppet apply --modulepath=`pwd`/openstack-ci-puppet/modules:/etc/puppet/modules -e 'node default {class { "openstack_project::bare_slave": install_users => false }}'
|