2012-11-15 14:25:13 -08:00
|
|
|
# == Class: openstack_project::puppetmaster
|
|
|
|
#
|
2012-09-06 10:32:48 -07:00
|
|
|
class openstack_project::puppetmaster (
|
2015-03-10 19:35:23 -07:00
|
|
|
$root_rsa_key = 'xxx',
|
2012-09-06 10:32:48 -07:00
|
|
|
) {
|
2014-04-18 13:53:36 -07:00
|
|
|
include logrotate
|
2014-03-17 04:01:33 -04:00
|
|
|
|
2017-04-17 17:27:06 -04:00
|
|
|
cron { 'updatecloudlauncher':
|
2018-08-11 07:23:27 -05:00
|
|
|
ensure => absent,
|
2017-04-17 17:27:06 -04:00
|
|
|
}
|
|
|
|
|
2018-01-25 11:00:00 +11:00
|
|
|
logrotate::file { 'updatecloudlauncher':
|
|
|
|
ensure => present,
|
|
|
|
log => '/var/log/puppet_run_cloud_launcher.log',
|
|
|
|
options => ['compress',
|
|
|
|
'copytruncate',
|
|
|
|
'delaycompress',
|
|
|
|
'missingok',
|
|
|
|
'rotate 7',
|
|
|
|
'daily',
|
|
|
|
'notifempty',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2013-08-30 15:41:46 +12:00
|
|
|
# Cloud credentials are stored in this directory for launch-node.py.
|
|
|
|
file { '/root/ci-launch':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
2013-09-13 18:52:59 +00:00
|
|
|
group => 'admin',
|
2013-08-30 15:41:46 +12:00
|
|
|
mode => '0750',
|
2015-11-25 12:13:47 -05:00
|
|
|
}
|
|
|
|
|
2016-06-22 23:29:17 +00:00
|
|
|
# For signing key management
|
|
|
|
package { 'gnupg':
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
package { 'gnupg-curl':
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
file { '/root/signing.gnupg':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0700',
|
|
|
|
}
|
|
|
|
file { '/root/signing.gnupg/gpg.conf':
|
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0400',
|
|
|
|
source => 'puppet:///modules/openstack_project/puppetmaster/signing.conf',
|
|
|
|
require => File['/root/signing.gnupg'],
|
|
|
|
}
|
|
|
|
file { '/root/signing.gnupg/sks-keyservers.netCA.pem':
|
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0400',
|
|
|
|
source => 'puppet:///modules/openstack_project/puppetmaster/sks-ca.pem',
|
|
|
|
require => File['/root/signing.gnupg'],
|
|
|
|
}
|
|
|
|
|
2017-06-14 11:51:56 -04:00
|
|
|
# Certificate Authority for zuul services.
|
|
|
|
file { '/etc/zuul-ca':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/zuul-ca/openssl.cnf':
|
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
source => 'puppet:///modules/openstack_project/puppetmaster/zuul_ca.cnf',
|
|
|
|
require => File['/etc/zuul-ca'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/zuul-ca/certs':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
require => File['/etc/zuul-ca'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/zuul-ca/crl':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
require => File['/etc/zuul-ca'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/zuul-ca/newcerts':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
require => File['/etc/zuul-ca'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/zuul-ca/private':
|
|
|
|
ensure => directory,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'puppet',
|
|
|
|
mode => '0640',
|
|
|
|
require => File['/etc/zuul-ca'],
|
|
|
|
}
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|