Puppet Class: puppet_compiler::legacy_local_database

Defined in:
modules/puppet_compiler/manifests/legacy_local_database.pp

Overview

Parameters:

  • user (Any)
  • vardir (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/puppet_compiler/manifests/legacy_local_database.pp', line 1

class puppet_compiler::legacy_local_database( $user, $vardir, ) {

    # Add a puppetdb instance with a local database.
    class { 'puppetdb::app':
        db_driver  => 'hsqldb',
        ca_path    => '/etc/puppetdb/ssl/ca.pem',
        db_rw_host => undef,
        perform_gc => true,
        bind_ip    => '0.0.0.0',
        ssldir     => "${vardir}/ssl",
        require    => Exec['Generate CA for the compiler']
    }

    file { '/etc/puppetdb/ssl/ca.pem':
        source => "${vardir}/ssl/certs/ca.pem",
        owner  => $user,
        before => Service['puppetdb']
    }

}