diff --git a/doc/_index.html b/doc/_index.html
index cb5246d..5c6c398 100644
--- a/doc/_index.html
+++ b/doc/_index.html
@@ -108,6 +108,21 @@
+
+ puppet_cd::puppetdb::dirs
+
+
+
+
+ puppet_cd::puppetdb::files
+
+
+
+
+ puppet_cd::puppetdb::service
+
+
+
puppet_cd::server::service
diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html
index cf5cad0..c88fef2 100644
--- a/doc/puppet_class_list.html
+++ b/doc/puppet_class_list.html
@@ -92,7 +92,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Aconfig.html
index c16d159..b270265 100644
--- a/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Aconfig.html
+++ b/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Aconfig.html
@@ -105,7 +105,11 @@
7
8
9
-10
+10
+11
+12
+13
+14
# File 'manifests/main/config.pp', line 6
@@ -114,6 +118,10 @@ class puppet_cd::main::config (
) inherits puppet_cd::params {
include puppet_cd::server::service
+
+ if $pt_use_puppetdb == true {
+ include puppet_cd::puppetdb::service
+ }
}
|
diff --git a/doc/puppet_classes/puppet_cd_3A_3Aparams.html b/doc/puppet_classes/puppet_cd_3A_3Aparams.html
index ec0e966..eaf448b 100644
--- a/doc/puppet_classes/puppet_cd_3A_3Aparams.html
+++ b/doc/puppet_classes/puppet_cd_3A_3Aparams.html
@@ -77,8 +77,14 @@
puppet_cd::main::install
+ puppet_cd::puppetdb::dirs
+
+ puppet_cd::puppetdb::files
+
puppet_cd::server::service
+ puppet_cd::puppetdb::service
+
puppet_cd::firewall::iptables
@@ -1004,6 +1010,11 @@ considered a puppet agent.
(defaults to: '90')
+ —
+
+
@@ -1017,6 +1028,11 @@ considered a puppet agent.
(defaults to: '1GB')
+ —
+
+
total size of logging file
+
+
@@ -1030,6 +1046,11 @@ considered a puppet agent.
(defaults to: '4')
+ —
+
+
number of processing threads
+
+
@@ -1043,6 +1064,11 @@ considered a puppet agent.
(defaults to: '4')
+ —
+
+
@@ -1056,6 +1082,11 @@ considered a puppet agent.
(defaults to: '//localhost:5432/puppetdb')
+ —
+
+
@@ -1069,6 +1100,11 @@ considered a puppet agent.
(defaults to: 'foobar')
+ —
+
+
@@ -1082,6 +1118,11 @@ considered a puppet agent.
(defaults to: 'foobar')
+ —
+
+
@@ -1095,6 +1136,11 @@ considered a puppet agent.
(defaults to: '60')
+ —
+
+
garbage collection interval (Java)
+
+
@@ -1108,6 +1154,11 @@ considered a puppet agent.
(defaults to: '10')
+ —
+
+
number of seconds before an SQL query is considered “slow.”
+
+
@@ -1121,6 +1172,11 @@ considered a puppet agent.
(defaults to: '0.0.0.0/0')
+ —
+
+
the source lan for puppetdb clients
+
+
@@ -1134,6 +1190,12 @@ considered a puppet agent.
(defaults to: false)
+ —
+
+
allows the PuppetDB-termini to fail softly if PuppetDB is not accessible
+for command submission.
+
+
@@ -1147,6 +1209,11 @@ considered a puppet agent.
(defaults to: '0.0.0.0')
+ —
+
+
ip range for non-ssl hosts
+
+
@@ -1160,6 +1227,11 @@ considered a puppet agent.
(defaults to: '0.0.0.0')
+ —
+
+
ip range for SSL hosts
+
+
@@ -1173,11 +1245,16 @@ considered a puppet agent.
(defaults to: '/etc/puppetlabs/puppetdb/ssl/private.pem')
+ —
+
+
location of the private key
+
+
- pt_ssh_cert
+ pt_ssl_cert
(String)
@@ -1186,6 +1263,11 @@ considered a puppet agent.
(defaults to: '/etc/puppetlabs/puppetdb/ssl/public.pem')
+ —
+
+
location of the ssl cert
+
+
@@ -1199,6 +1281,11 @@ considered a puppet agent.
(defaults to: '/etc/puppetlabs/puppetdb/ssl/ca.pem')
+ —
+
+
location of the ssl ca cert
+
+
@@ -1212,6 +1299,11 @@ considered a puppet agent.
(defaults to: false)
+ —
+
+
whether to configure log access
+
+
@@ -1225,6 +1317,11 @@ considered a puppet agent.
(defaults to: '/etc/puppetlabs/puppetdb/request-logging.xml')
+ —
+
+
the location of the access log config
+
+
@@ -1238,6 +1335,11 @@ considered a puppet agent.
(defaults to: false)
+ —
+
+
whether to allow puppetdb replication
+
+
@@ -1251,6 +1353,11 @@ considered a puppet agent.
(defaults to: '8082')
+ —
+
+
@@ -1264,6 +1371,11 @@ considered a puppet agent.
(defaults to: '127.0.0.1')
+ —
+
+
@@ -1277,28 +1389,6 @@ considered a puppet agent.
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
81
82
83
@@ -1414,10 +1504,32 @@ considered a puppet agent.
193
194
195
-196
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
- # File 'manifests/params.pp', line 59
+ # File 'manifests/params.pp', line 81
class puppet_cd::params (
@@ -1493,7 +1605,7 @@ class puppet_cd::params (
String $pt_no_ssl_host = '0.0.0.0',
String $pt_ssl_host = '0.0.0.0',
String $pt_ssl_key = '/etc/puppetlabs/puppetdb/ssl/private.pem',
- String $pt_ssh_cert = '/etc/puppetlabs/puppetdb/ssl/public.pem',
+ String $pt_ssl_cert = '/etc/puppetlabs/puppetdb/ssl/public.pem',
String $pt_ssl_ca_cert = '/etc/puppetlabs/puppetdb/ssl/ca.pem',
Boolean $pt_log_access = false,
String $pt_access_log_config = '/etc/puppetlabs/puppetdb/request-logging.xml',
@@ -1502,56 +1614,56 @@ class puppet_cd::params (
String $pt_repl_host = '127.0.0.1',
) {
- $fqdn = $facts['networking']['fqdn']
+ $fqdn = $facts['networking']['fqdn']
# directories
## puppet
- $pt_main_dir = '/etc/puppetlabs'
- $pt_puppetdir = "${pt_main_dir}/puppet"
- $pt_code_dir = "${pt_main_dir}/code"
- $pt_environmentspath = "${pt_code_dir}/environments"
- $pt_ssldir = "${pt_puppetdir}/ssl"
- $pt_privatekeydir = "${pt_ssldir}/private_keys"
- $pt_rundir = '/var/run/puppetlabs'
- $pt_rundir_master = '/var/run/puppetlabs/puppetserver'
- $pt_vardir = '/opt/puppetlabs/puppet/cache'
- $pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
+ $pt_main_dir = '/etc/puppetlabs'
+ $pt_puppetdir = "${pt_main_dir}/puppet"
+ $pt_code_dir = "${pt_main_dir}/code"
+ $pt_environmentspath = "${pt_code_dir}/environments"
+ $pt_ssldir = "${pt_puppetdir}/ssl"
+ $pt_privatekeydir = "${pt_ssldir}/private_keys"
+ $pt_rundir = '/var/run/puppetlabs'
+ $pt_rundir_master = '/var/run/puppetlabs/puppetserver'
+ $pt_vardir = '/opt/puppetlabs/puppet/cache'
+ $pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
## puppetdb
- $pt_puppetdb_main = '/etc/puppetlabs/puppetdb'
- $pt_puppetdb_conf_d = "${pt_puppetdb_main}/conf.d"
- $pt_puppetdb_ssl = "${pt_puppetdb_main}/ssl"
- $pt_puppetdb_log = '/var/log/puppetlabs/puppetdb'
- $pt_puppetdb_var_dir = '/opt/puppetlabs/server/data/puppetdb'
+ $pt_puppetdb_main = '/etc/puppetlabs/puppetdb'
+ $pt_puppetdb_conf_d = "${pt_puppetdb_main}/conf.d"
+ $pt_puppetdb_ssl = "${pt_puppetdb_main}/ssl"
+ $pt_puppetdb_log = '/var/log/puppetlabs/puppetdb'
+ $pt_puppetdb_var_dir = '/opt/puppetlabs/server/data/puppetdb'
# files
## puppet
- $pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
- $pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
- $pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
- $pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
+ $pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
+ $pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
+ $pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
+ $pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
## puppetdb
- $pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
- $pt_bootstrap_erb = 'cd_puppet/puppetdb/bootstrap.cfg.erb'
- $pt_puppetdb_access_log = "${pt_puppetdb_log}/puppetdb-access"
- $pt_request_logging_conf = "${pt_puppetdb_main}/request-logging.xml"
- $pt_request_logging_erb = 'cd_puppet/puppetdb/request_logging.xml.erb'
- $pt_logback_conf = "${pt_puppetdb_main}/logback.xml"
- $pt_logback_erb = 'cd_puppet/puppetdb/logback.xml.erb'
- $pt_puppetdb_config_ini = "${pt_puppetdb_conf_d}/config.ini"
- $pt_puppetdb_config_erb = 'cd_puppet/puppetdb/config.ini.erb'
- $pt_puppetdb_database_ini = "${pt_puppetdb_conf_d}/database.ini"
- $pt_puppetdb_database_erb = 'cd_puppet/puppetdb/database.ini.erb'
- $pt_puppetdb_jetty_ini = "${pt_puppetdb_conf_d}/jetty.ini"
- $pt_puppetdb_jetty_erb = 'cd_puppet/puppetdb/jetty.ini.erb'
- $pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
- $pt_puppetdb_conf_erb = 'cd_puppet/puppetdb/puppetdb.conf.erb'
- $pt_puppetdb_repl_ini = "${pt_puppetdb_conf_d}/repl.ini"
- $pt_puppetdb_repl_erb = 'cd_puppet/puppetdb/repl.ini.erb'
+ $pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
+ $pt_bootstrap_erb = 'cd_puppet/puppetdb/bootstrap.cfg.erb'
+ $pt_puppetdb_access_log = "${pt_puppetdb_log}/puppetdb-access"
+ $pt_request_logging_conf = "${pt_puppetdb_main}/request-logging.xml"
+ $pt_request_logging_erb = 'cd_puppet/puppetdb/request_logging.xml.erb'
+ $pt_logback_conf = "${pt_puppetdb_main}/logback.xml"
+ $pt_logback_erb = 'cd_puppet/puppetdb/logback.xml.erb'
+ $pt_puppetdb_config_ini = "${pt_puppetdb_conf_d}/config.ini"
+ $pt_puppetdb_config_erb = 'cd_puppet/puppetdb/config.ini.erb'
+ $pt_puppetdb_database_ini = "${pt_puppetdb_conf_d}/database.ini"
+ $pt_puppetdb_database_erb = 'cd_puppet/puppetdb/database.ini.erb'
+ $pt_puppetdb_jetty_ini = "${pt_puppetdb_conf_d}/jetty.ini"
+ $pt_puppetdb_jetty_erb = 'cd_puppet/puppetdb/jetty.ini.erb'
+ $pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
+ $pt_puppetdb_conf_erb = 'cd_puppet/puppetdb/puppetdb.conf.erb'
+ $pt_puppetdb_repl_ini = "${pt_puppetdb_conf_d}/repl.ini"
+ $pt_puppetdb_repl_erb = 'cd_puppet/puppetdb/repl.ini.erb'
# service
- $pt_server_service = 'puppetserver'
- $pt_agent_service = 'puppet'
- $pt_db_service = 'puppetdb'
+ $pt_server_service = 'puppetserver'
+ $pt_agent_service = 'puppet'
+ $pt_db_service = 'puppetdb'
#
# includes must be last
diff --git a/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Adirs.html b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Adirs.html
new file mode 100644
index 0000000..0d74842
--- /dev/null
+++ b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Adirs.html
@@ -0,0 +1,238 @@
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::dirs
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::dirs
+
+
+
+ - Inherits:
+ - puppet_cd::params
+
+
+
+
+ - Defined in:
+ -
+ manifests/puppetdb/dirs.pp
+
+
+
+
+ Summary
+ Class manages puppetdb directories
+
+ Overview
+
+
+
+ puppet_cd::puppetdb::dirs.pp Module name: puppet_cd Author: Arne Teuke
+(arne_teuke@confdroid)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+ |
+
+ # File 'manifests/puppetdb/dirs.pp', line 6
+
+class puppet_cd::puppetdb::dirs (
+
+) inherits puppet_cd::params {
+ if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
+ require puppet_cd::main::install
+
+ # main directory
+ file { $pt_puppetdb_main:
+ ensure => directory,
+ path => $pt_puppetdb_main,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+
+ # conf.d directory
+ file { $pt_puppetdb_conf_d:
+ ensure => directory,
+ path => $pt_puppetdb_conf_d,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+
+ # ssl directory
+ file { $pt_puppetdb_ssl:
+ ensure => directory,
+ path => $pt_puppetdb_ssl,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+
+ # log dir
+ file { $pt_puppetdb_log:
+ ensure => directory,
+ path => $pt_puppetdb_log,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0700',
+ selrange => s0,
+ selrole => object_r,
+ seltype => var_log_t,
+ seluser => system_u,
+ }
+ }
+}
+ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Afiles.html b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Afiles.html
new file mode 100644
index 0000000..8666ddb
--- /dev/null
+++ b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Afiles.html
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::files
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::files
+
+
+
+ - Inherits:
+ - puppet_cd::params
+
+
+
+
+ - Defined in:
+ -
+ manifests/puppetdb/files.pp
+
+
+
+
+ Summary
+ Class manages puppetdb files
+
+ Overview
+
+
+
+ puppet_cd::puppetdb::files.pp Module name: puppet_cd Author: Arne Teuke
+(arne_teuke@confdroid)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+ |
+
+ # File 'manifests/puppetdb/files.pp', line 6
+
+class puppet_cd::puppetdb::files (
+
+) inherits puppet_cd::params {
+ if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
+ require puppet_cd::puppetdb::dirs
+
+ # bootstrap.cfg
+ file { $pt_bootstrap_conf:
+ ensure => file,
+ path => $pt_bootstrap_conf,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_bootstrap_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # requestlogging.xml
+ file { $pt_request_logging_conf:
+ ensure => file,
+ path => $pt_request_logging_conf,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_request_logging_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # logback.xml
+ file { $pt_logback_conf:
+ ensure => file,
+ path => $pt_logback_conf,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_logback_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # config.ini
+ file { $pt_puppetdb_config_ini:
+ ensure => file,
+ path => $pt_puppetdb_config_ini,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0640',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_puppetdb_config_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # database.ini
+ file { $pt_puppetdb_database_ini:
+ ensure => file,
+ path => $pt_puppetdb_database_ini,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0640',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_puppetdb_database_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # jetty.ini
+ file { $pt_puppetdb_jetty_ini :
+ ensure => file,
+ path => $pt_puppetdb_jetty_ini ,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0640',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_puppetdb_jetty_erb),
+ notify => Service[$pt_puppetdb],
+ }
+
+ # repl.ini
+ file { $pt_puppetdb_repl_ini:
+ ensure => file,
+ path => $pt_puppetdb_repl_ini,
+ owner => $pt_puppetdb_user,
+ group => $pt_puppetdb_user,
+ mode => '0640',
+ selrange => s0,
+ selrole => object_r,
+ seltype => puppet_etc_t,
+ seluser => system_u,
+ content => template($pt_puppetdb_repl_erb),
+ notify => Service[$pt_puppetdb],
+ }
+ }
+}
+ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Aservice.html b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Aservice.html
new file mode 100644
index 0000000..2497f44
--- /dev/null
+++ b/doc/puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Aservice.html
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::service
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Puppet Class: puppet_cd::puppetdb::service
+
+
+
+ - Inherits:
+ - puppet_cd::params
+
+
+
+
+ - Defined in:
+ -
+ manifests/puppetdb/service.pp
+
+
+
+
+ Summary
+ Class manages puppetdb service
+
+ Overview
+
+
+
+ puppet_cd::puppetdb::service.pp Module name: puppet_cd Author: Arne Teuke
+(arne_teuke@confdroid)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+ |
+
+ # File 'manifests/puppetdb/service.pp', line 6
+
+class puppet_cd::puppetdb::service (
+
+) inherits puppet_cd::params {
+ if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
+ require puppet_cd::puppetdb::files
+
+ service { $pt_puppetdb:
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+ }
+}
+ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
|