Puppet Class: profile::openstack::base::puppetmaster::enc_client
- Defined in:
- modules/profile/manifests/openstack/base/puppetmaster/enc_client.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/profile/manifests/openstack/base/puppetmaster/enc_client.pp', line 2
class profile::openstack::base::puppetmaster::enc_client (
Stdlib::HTTPUrl $api_endpoint = lookup('profile::openstack::base::puppetmaster::enc_client::api_endpoint'),
) {
ensure_packages([
'python3-requests',
'python3-yaml',
])
file { '/etc/puppet-enc.yaml':
owner => 'root',
group => 'root',
mode => '0444',
content => to_yaml({
api_endpoint => $api_endpoint,
}),
}
$enc_path = '/usr/local/bin/puppet-enc'
file { $enc_path:
owner => 'root',
group => 'root',
mode => '0555',
source => 'puppet:///modules/profile/openstack/base/puppetmaster/enc_client/puppet_enc.py',
}
}
|