Last active
August 29, 2015 14:25
-
-
Save glauco/41874ccb6142f7b07d58 to your computer and use it in GitHub Desktop.
bootstrap-puppetdb.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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