system-config/tools/puppetmaster_bootstrap.sh
Andreas Jaeger 173118e471 Fix URLs after OpenDev rename
As part of OpenDev rename, a lot of links were changed.
A couple of URLs point to old locations, update them.

This list was done while grepping for "openstack-infra" and fixing
locations that are wrong.

Change-Id: I313d76284bb549f1b2c636ce17fa662c233c0af9
2020-03-18 18:23:17 +01:00

28 lines
652 B
Bash
Executable File

#!/bin/bash
set -x
# Script to build a puppet 3 master to infra/system-config standards
apt-get update
apt-get install git
git clone https://opendev.org/opendev/system-config
cd system-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',
}
}
EOF
export PUPPET_VERSION=3
./install_puppet.sh
./install_modules.sh
puppet apply --modulepath=modules:/etc/puppet/modules manifests/local.pp