442ddf36ea
Lets make our puppet-lint job happy again. Change-Id: Ib15234192291158f0fe9668e615f7cb8f400918c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
32 lines
765 B
Puppet
32 lines
765 B
Puppet
# adds infra cloud chain to trusted certs
|
|
class infracloud::cacert (
|
|
$cacert_content,
|
|
) {
|
|
include ::infracloud::params
|
|
|
|
file { $::infracloud::params::cert_path:
|
|
ensure => 'directory',
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0755',
|
|
}
|
|
|
|
file { "${::infracloud::params::cert_path}/openstack_infra_ca.crt":
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0444',
|
|
content => $cacert_content,
|
|
replace => true,
|
|
require => File[$::infracloud::params::cert_path],
|
|
}
|
|
|
|
exec { 'update-ca-certificates':
|
|
command => $::infracloud::params::cert_command,
|
|
subscribe => [
|
|
File["${::infracloud::params::cert_path}/openstack_infra_ca.crt"],
|
|
],
|
|
refreshonly => true,
|
|
}
|
|
}
|