Merge "Add puppet apply settings to puppet.conf"

This commit is contained in:
Jenkins 2015-11-24 20:04:04 +00:00 committed by Gerrit Code Review
commit 00a0d57847
4 changed files with 28 additions and 26 deletions

View File

@ -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':

View File

@ -419,6 +419,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',
}
###########################################################
}

View File

@ -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