8fbda3c4d6
This commit does the following: * Use the new inifile module to manage puppet.conf * More comprehensive management of config files * Validate database connectivity before applying puppetdb config changes * Validate puppetdb connectivity before applying puppet master config changes * Documentation
26 lines
763 B
Puppet
26 lines
763 B
Puppet
# This is an example of a very basic 3-node setup for puppetdb.
|
|
|
|
# This node is our puppet master.
|
|
node puppet {
|
|
# Here we configure the puppet master to use puppetdb.
|
|
class { 'puppetdb::master::config':
|
|
puppetdb_server => 'puppetdb',
|
|
}
|
|
}
|
|
|
|
# This node is our postgres server
|
|
node puppetdb-postgres {
|
|
# Here we install and configure postgres and the puppetdb database instance
|
|
class { 'puppetdb::database::postgresql':
|
|
listen_addresses => 'puppetdb-postgres',
|
|
}
|
|
}
|
|
|
|
# This node is our main puppetdb server
|
|
node puppetdb {
|
|
# Here we install and configure the puppetdb server, and tell it where to
|
|
# find the postgres database.
|
|
class { 'puppetdb::server':
|
|
database_host => 'puppetdb-postgres',
|
|
}
|
|
}
|