system-config/tools/puppetmaster_bootstrap.sh
James E. Blair a963d32efe Move puppetmaster_boostrap to tools dir
We don't really need both tools and utils directories.

Change-Id: I25509b436b721590225736b54cd0fbebbe2a6b14
2014-09-15 16:50:07 -07:00

29 lines
672 B
Bash
Executable File

#!/bin/bash
set -x
# Script to build a puppet 3 master to infra/config standards
apt-get update
apt-get install git
git clone https://git.openstack.org/openstack-infra/config
cd config
cat > manifests/local.pp <<EOF
node default {
class { 'openstack_project::puppetmaster':
root_rsa_key => hiera('puppetmaster_root_rsa_key', 'XXX'),
update_slave => false,
sysadmins => hiera('sysadmins', []),
version => '3.6.',
ca_server => 'ci-puppetmaster.openstack.org',
puppetdb => false,
}
}
EOF
export PUPPET_VERSION=3
./install_puppet.sh
./install_modules.sh
puppet apply --modulepath=modules:/etc/puppet/modules manifests/local.pp