Puppet Class: openstack::puppet::master::enc

Defined in:
modules/openstack/manifests/puppet/master/enc.pp

Overview

Parameters:

  • puppetmaster (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/openstack/manifests/puppet/master/enc.pp', line 1

class openstack::puppet::master::enc(
    $puppetmaster,
    ) {

    require_package('python3-yaml', 'python3-ldap3')

    include ldap::yamlcreds

    file { '/etc/puppet-enc.yaml':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => ordered_yaml({
            host => $puppetmaster,
        }),
    }

    file { '/usr/local/bin/puppet-enc':
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/openstack/puppet/master/labs-puppet-enc.py',
    }
}