Puppet Class: puppetserver::config

Defined in:
manifests/config.pp

Overview

docs



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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/config.pp', line 2

class puppetserver::config {

  augeas {'main_certname':
    context => '/files/etc/puppetlabs/puppet/puppet.conf',
    changes => [ "set main/certname ${puppetserver::certname}", ],
  }

  augeas {'main_server':
    context => '/files/etc/puppetlabs/puppet/puppet.conf',
    changes => [ "set main/server ${puppetserver::certname}", ],
  }

  augeas {'java_args':
    context => "${puppetserver::system_config_path}/puppetserver",
    changes => [ "set JAVA_ARGS '\"${puppetserver::java_args}\"'", ],
    notify  => Service['puppetserver']
  }

  if $puppetserver::autosign {
    augeas {'master_autosign':
      context => '/files/etc/puppetlabs/puppet/puppet.conf/master',
      changes => [
        'set autosign true',
      ],
      notify  => Service['puppetserver']
    }
  }

  if $puppetserver::puppetdb {
    augeas {'master_storeconfigs':
      context => '/files/etc/puppetlabs/puppet/puppet.conf/master',
      changes => [
        'set storeconfigs true',
        'set storeconfigs_backend puppetdb',
      ],
      notify  => Service['puppetserver']
    }
    file { '/etc/puppetlabs/puppet/routes.yaml':
      content => epp('puppetserver/routes.yaml.epp'),
      notify  => Service['puppetserver']
    }
    file { '/etc/puppetlabs/puppet/puppetdb.conf':
      content => epp('puppetserver/puppetdb.conf.epp',
        {
        puppetdb_server => $puppetserver::puppetdb_server,
        puppetdb_port   => $puppetserver::puppetdb_port,
        }),
      notify  => Service['puppetserver']
    }
  }
}