Puppet Class: cergen::mcrouter_ca

Defined in:
modules/cergen/manifests/mcrouter_ca.pp

Overview

Parameters:



1
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
27
28
29
30
31
32
33
34
35
36
# File 'modules/cergen/manifests/mcrouter_ca.pp', line 1

class cergen::mcrouter_ca(String $ca_secret) {
    require ::cergen

    $manifests_dir = '/etc/cergen/mcrouter.manifests.d'

    file { $manifests_dir:
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0750',
    }

    # Manifests generator
    file { '/usr/local/sbin/mcrouter_generate_certs':
        source => 'puppet:///modules/cergen/mcrouter_generator.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0554',
    }

    file { "${manifests_dir}/mcrouter_ca.certs.yaml":
        content => template('cergen/mcrouter_ca.certs.yaml.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0400',
    }

    require_package('python3-cryptography', 'python3-git', 'python3-openssl')

    file { '/usr/local/bin/renew_mcrouter_certs':
        source => 'puppet:///modules/cergen/renew_mcrouter_certs.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }
}