Add production environment to puppet
This creates an environment.conf for production for use with Puppet directory environments. Change-Id: I12655eb480ec95293edf8b3534c5b607de2980de
This commit is contained in:
parent
7a19e14546
commit
84306bdc3c
modules/openstack_project
@ -0,0 +1,2 @@
|
|||||||
|
manifest = /opt/config/production/manifests/site.pp
|
||||||
|
modulepath = $basemodulepath:modules:/opt/config/production/modules
|
@ -24,6 +24,26 @@ class openstack_project::puppetmaster (
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$ansible_remote_puppet_source = 'puppet:///modules/openstack_project/ansible/remote_puppet3.yaml'
|
$ansible_remote_puppet_source = 'puppet:///modules/openstack_project/ansible/remote_puppet3.yaml'
|
||||||
|
|
||||||
|
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',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'ansible':
|
class { 'ansible':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user