Skip to content

Instantly share code, notes, and snippets.

@glauco
Last active August 29, 2015 14:25
Show Gist options
  • Save glauco/41874ccb6142f7b07d58 to your computer and use it in GitHub Desktop.
Save glauco/41874ccb6142f7b07d58 to your computer and use it in GitHub Desktop.
bootstrap-puppetdb.sh
#!/bin/bash
apt-get update
apt-get upgrade -y
apt-get install git -y
git clone https://git.openstack.org/openstack-infra/system-config /opt/system-config/production
/opt/system-config/production/install_puppet.sh
export REAL_HOSTNAME=puppetdb.openstack.org
bash /opt/system-config/production/install_modules.sh
echo $REAL_HOSTNAME > /etc/hostname
service hostname restart
puppet apply --debug --verbose --modulepath='/opt/system-config/production/modules:/etc/puppet/modules' -e "
node 'puppetdb.openstack.org' {
class { 'openstack_project::puppetdb':
sysadmins => hiera('sysadmins', []),
puppetboard => true,
}
}
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment