puppet-openstack-integration/manifests/cacert.pp
Tobias Urdin 81687e2ead Convert all class usage to relative names
In Puppet 3 there was a need to use absolute
names to prevent issues. Since Puppet 4 everything
is absolute by default which makes this not needed.

We need to change this everywhere so that we can
revert the pin in [1] that now prevents us from
using the latest version of the puppet-lint check
puppet-lint-absolute_classname_check that properly
checks that we dont use absolute names.

[1] https://review.opendev.org/#/c/697742/

Change-Id: I78b74fbeb08be7234189e4d266412fb7fb7a73c0
2019-12-08 14:58:12 +01:00

22 lines
746 B
Puppet

class openstack_integration::cacert {
include openstack_integration::params
include openstack_integration::config
file { $::openstack_integration::params::cert_path:
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => "puppet:///modules/openstack_integration/ipv${openstack_integration::config::ip_version}.crt",
selinux_ignore_defaults => true,
replace => true,
}
exec { 'update-ca-certificates':
command => $::openstack_integration::params::update_ca_certs_cmd,
subscribe => File[$::openstack_integration::params::cert_path],
refreshonly => true,
}
}