Configure puppetmaster server from manifest

Currently the puppetmaster was hardcoded on a template.

Add the matching vars to the manifests that use them,
to make that setting configurable.

Change-Id: I2b641ec11284f325c22c242fabba26d0433bf85b
This commit is contained in:
Yolanda Robla 2015-03-16 13:27:20 +01:00
parent b3ba5531f1
commit 5eab48df71
4 changed files with 10 additions and 5 deletions

View File

@ -5,6 +5,7 @@ class openstack_project::base(
$install_users = true,
$pin_puppet = '3.',
$ca_server = undef,
$puppetmaster_server = 'puppetmaster.openstack.org',
) {
if ($::osfamily == 'Debian') {
include apt

View File

@ -11,6 +11,7 @@ class openstack_project::server (
$pin_puppet = '3.',
$ca_server = undef,
$afs = false,
$puppetmaster_server = 'puppetmaster.openstack.org',
) {
class { 'openstack_project::template':
iptables_public_tcp_ports => $iptables_public_tcp_ports,
@ -20,6 +21,7 @@ class openstack_project::server (
certname => $certname,
pin_puppet => $pin_puppet,
ca_server => $ca_server,
puppetmaster_server => $puppetmaster_server,
afs => $afs,
}
class { 'exim':

View File

@ -15,6 +15,7 @@ class openstack_project::template (
$ca_server = undef,
$enable_unbound = true,
$afs = false,
$puppetmaster_server = 'puppetmaster.openstack.org',
) {
include ntp
include ssh
@ -50,10 +51,11 @@ class openstack_project::template (
}
class { 'openstack_project::base':
install_users => $install_users,
certname => $certname,
pin_puppet => $pin_puppet,
ca_server => $ca_server,
install_users => $install_users,
certname => $certname,
pin_puppet => $pin_puppet,
ca_server => $ca_server,
puppetmaster_server => $puppetmaster_server,
}
package { 'lvm2':

View File

@ -3,7 +3,7 @@ logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
server=puppetmaster.openstack.org
server=<%= @puppetmaster_server %>
certname=<%= @certname %>
pluginsync=true