Puppet Class: profile::puppet_compiler::postgres_database

Defined in:
modules/profile/manifests/puppet_compiler/postgres_database.pp

Overview



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
# File 'modules/profile/manifests/puppet_compiler/postgres_database.pp', line 1

class profile::puppet_compiler::postgres_database {

    # set ssldir to location of the local catalog-differ puppet CA.
    # this allows catalog-differ runs to validate local puppetdb connections.
    $ssldir='/var/lib/catalog-differ/puppet/ssl'

    # here a ca_path is specificed so that the ca cert copied below
    # is used to validate connection to nginx puppetdb frontend
    class { '::profile::puppetdb':
        ssldir  => $ssldir,
        ca_path => '/etc/puppetdb/ssl/ca.pem',
    }

    class { '::profile::puppetdb::database':
        ssldir => $ssldir,
    }

    # copy the catalog-differ puppet CA to validate connections to puppetdb
    file { '/etc/puppetdb/ssl/ca.pem':
        source => "${ssldir}/certs/ca.pem",
        owner  => 'puppetdb',
        before => Service['puppetdb']
    }

}