Add puppet apply settings to puppet.conf
We need to exist for a period of time with both agent and apply being operational so that we can test things appropriately. This moves agent specific settings to the [agent] section and adds a [user] section which is used to control puppet apply. As part of this, we need to add a production environment to all of our nodes. Doing this in this way will also cover the current puppetmaster, since puppetmaster is a puppet client. Change-Id: I550c474d1c51c5795f745630fb91ee8cc1a55e36
This commit is contained in:
parent
f472c1ed6a
commit
c9dd65779f
@ -10,26 +10,6 @@ class openstack_project::puppetmaster (
|
||||
include logrotate
|
||||
include openstack_project::params
|
||||
|
||||
file {'/etc/puppet/environments':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
file {'/etc/puppet/environments/production':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
file {'/etc/puppet/environments/production/environment.conf':
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
source => 'puppet:///modules/openstack_project/puppetmaster/production_environment.conf',
|
||||
}
|
||||
|
||||
include ansible
|
||||
|
||||
file { '/etc/ansible/hostfile':
|
||||
|
@ -414,6 +414,26 @@ class openstack_project::template (
|
||||
source => 'puppet:///modules/openstack_project/puppet/hiera.yaml',
|
||||
replace => true,
|
||||
}
|
||||
|
||||
file {'/etc/puppet/environments':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
file {'/etc/puppet/environments/production':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
file {'/etc/puppet/environments/production/environment.conf':
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
source => 'puppet:///modules/openstack_project/puppet/production_environment.conf',
|
||||
}
|
||||
###########################################################
|
||||
|
||||
}
|
||||
|
@ -3,20 +3,16 @@ logdir=/var/log/puppet
|
||||
vardir=/var/lib/puppet
|
||||
ssldir=/var/lib/puppet/ssl
|
||||
rundir=/var/run/puppet
|
||||
server=<%= @puppetmaster_server %>
|
||||
certname=<%= @certname.downcase %>
|
||||
pluginsync=true
|
||||
basemodulepath=/etc/puppet/modules
|
||||
environmentpath = /etc/puppet/environments
|
||||
data_binding_terminus = none
|
||||
|
||||
|
||||
[master]
|
||||
# These are needed when the puppetmaster is run by passenger
|
||||
# and can safely be removed if webrick is used.
|
||||
ssl_client_header = SSL_CLIENT_S_DN
|
||||
ssl_client_verify_header = SSL_CLIENT_VERIFY
|
||||
reports=store,puppetdb
|
||||
basemodulepath = /etc/puppet/modules
|
||||
environmentpath = /etc/puppet/environments
|
||||
environmenttimeout = 0
|
||||
<% if @ca_server -%>
|
||||
ca = false
|
||||
@ -27,3 +23,9 @@ ca_server = <%= @ca_server %>
|
||||
report=true
|
||||
splay=true
|
||||
runinterval=600
|
||||
server=<%= @puppetmaster_server %>
|
||||
certname=<%= @certname.downcase %>
|
||||
pluginsync=true
|
||||
|
||||
[user]
|
||||
reports=puppetdb_file
|
||||
|
Loading…
Reference in New Issue
Block a user