Files
puppet-openstack_dev_env/manifests/setup/hosts.pp
Dan Bode e04facc5a5 Add puppet master role
This commit adds a puppet master role for deploying
a fully functional puppet master with puppetdb
installed.

Adds the role in manifest/site.pp.
Add hosts entry to manifests/setup/hosts.pp
Add the definition in the vagrant file
Add new deps to Puppetfile
do not append timestamp to certname.

Add puppet master specific config settings to
setup/hosts.pp
2013-01-11 10:54:15 -08:00

48 lines
1.2 KiB
Puppet

#
# specify a connection to the hardcoded puppet master
#
host {
'puppetmaster': ip => '172.16.0.31', host_aliases => ['puppetmaster.puppetlabs.lan'];
'openstackcontroller': ip => '172.16.0.3';
'compute1': ip => '172.16.0.4';
'compute2': ip => '172.16.0.14';
'novacontroller': ip => '172.16.0.5';
'glance': ip => '172.16.0.6';
'keystone': ip => '172.16.0.7';
'mysql': ip => '172.16.0.8';
'cinderclient': ip => '172.16.0.9';
'quantumagent': ip => '172.16.0.10';
}
group { 'puppet':
ensure => 'present',
}
# lay down a file that you run run for testing
file { '/root/run_puppet.sh':
content =>
"#!/bin/bash
puppet apply --modulepath /tmp/vagrant-puppet/modules-0/ --certname ${clientcert} /tmp/vagrant-puppet/manifests/site.pp"
}
node /puppetmaster/ {
Ini_setting {
path => '/etc/puppet/puppet.conf',
section => 'main',
ensure => present,
}
ini_setting {'vardir':
setting => 'vardir',
value => '/var/lib/puppet/',
}
ini_setting {'ssldir':
setting => 'ssldir',
value => '/var/lib/puppet/ssl/',
}
ini_setting {'rundir':
setting => 'rundir',
value => '/var/run/puppet/',
}
}