Yolanda Robla cfb94ad420 Add class to deal with cacert on infra cloud
Change-Id: Ic620bc03f49fe30e889767b63be3712a69901535
2016-02-15 15:03:45 -08:00

22 lines
536 B
Puppet

# adds infra cloud chain to trusted certs
class infracloud::cacert (
$cacert_content,
) {
file { '/usr/local/share/ca-certificates/openstack_infra_ca.crt':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
content => $cacert_content,
replace => true,
}
exec { 'update-ca-certificates':
command => '/usr/sbin/update-ca-certificates',
subscribe => [
File['/usr/local/share/ca-certificates/openstack_infra_ca.crt'],
],
refreshonly => true,
}
}