puppet-infracloud/manifests/cacert.pp
Paul Belanger 442ddf36ea
Fix puppet-lint job
Lets make our puppet-lint job happy again.

Change-Id: Ib15234192291158f0fe9668e615f7cb8f400918c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-02 09:37:46 -04:00

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,
}
}