Merge "Add class to deal with cacert on infra cloud"
This commit is contained in:
commit
69ea407747
21
manifests/cacert.pp
Normal file
21
manifests/cacert.pp
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# 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,
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user