recommit for updates in build 56
This commit is contained in:
@@ -105,7 +105,43 @@
|
|||||||
7
|
7
|
||||||
8
|
8
|
||||||
9
|
9
|
||||||
10</pre>
|
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</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||||
@@ -114,6 +150,42 @@ class puppet_cd::main::files (
|
|||||||
|
|
||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
require puppet_cd::main::dirs
|
require puppet_cd::main::dirs
|
||||||
|
|
||||||
|
if $fqdn != $pt_pm_fqdn {
|
||||||
|
file { $pt_puppet_conf_file:
|
||||||
|
ensure => file,
|
||||||
|
path => $pt_puppet_conf_file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template($pt_puppet_conf_erb),
|
||||||
|
notify => Service[$pt_agent_service],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if $fqdn == $pt_pm_fqdn {
|
||||||
|
file { $pt_puppet_conf_file:
|
||||||
|
ensure => file,
|
||||||
|
path => $pt_puppet_conf_file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template($pt_puppet_conf_erb),
|
||||||
|
notify => Service[$pt_agent_service,$pt_server_service],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if $pt_use_puppetdb == true {
|
||||||
|
file { $pt_puppetdb_conf_file:
|
||||||
|
ensure => filet,
|
||||||
|
path => $pt_puppetdb_conf_file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template($pt_puppetdb_conf_erb),
|
||||||
|
notify => Service[$pt_agent_service,$pt_server_service],
|
||||||
|
}
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -881,6 +881,292 @@ considered a puppet agent.</p>
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_logging_max_file_size</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'200MB'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_logging_max_history</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'90'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_logging_total_size</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'1GB'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_com_proc_threads</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'4'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_concurrent_writes</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'4'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_db_subname</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'//localhost:5432/puppetdb'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_db_username</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'foobar'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_db_password</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'foobar'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_gc_interval</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'60'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_log_slow_statements</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_puppetdb_source_lan</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'0.0.0.0/0'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_soft_write_failure</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_no_ssl_host</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'0.0.0.0'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_ssl_host</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'0.0.0.0'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_ssl_key</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/private.pem'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_ssh_cert</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/public.pem'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_ssl_ca_cert</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/ca.pem'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_log_access</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_access_log_config</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/request-logging.xml'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_enable_repl</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_repl_port</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'8082'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_repl_host</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'127.0.0.1'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -974,7 +1260,62 @@ considered a puppet agent.</p>
|
|||||||
111
|
111
|
||||||
112
|
112
|
||||||
113
|
113
|
||||||
114</pre>
|
114
|
||||||
|
115
|
||||||
|
116
|
||||||
|
117
|
||||||
|
118
|
||||||
|
119
|
||||||
|
120
|
||||||
|
121
|
||||||
|
122
|
||||||
|
123
|
||||||
|
124
|
||||||
|
125
|
||||||
|
126
|
||||||
|
127
|
||||||
|
128
|
||||||
|
129
|
||||||
|
130
|
||||||
|
131
|
||||||
|
132
|
||||||
|
133
|
||||||
|
134
|
||||||
|
135
|
||||||
|
136
|
||||||
|
137
|
||||||
|
138
|
||||||
|
139
|
||||||
|
140
|
||||||
|
141
|
||||||
|
142
|
||||||
|
143
|
||||||
|
144
|
||||||
|
145
|
||||||
|
146
|
||||||
|
147
|
||||||
|
148
|
||||||
|
149
|
||||||
|
150
|
||||||
|
151
|
||||||
|
152
|
||||||
|
153
|
||||||
|
154
|
||||||
|
155
|
||||||
|
156
|
||||||
|
157
|
||||||
|
158
|
||||||
|
159
|
||||||
|
160
|
||||||
|
161
|
||||||
|
162
|
||||||
|
163
|
||||||
|
164
|
||||||
|
165
|
||||||
|
166
|
||||||
|
167
|
||||||
|
168
|
||||||
|
169</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 32</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 32</span>
|
||||||
@@ -991,11 +1332,7 @@ class puppet_cd::params (
|
|||||||
String $pt_agent_pkg = 'puppet-agent',
|
String $pt_agent_pkg = 'puppet-agent',
|
||||||
String $pt_server_pkg = 'puppetserver',
|
String $pt_server_pkg = 'puppetserver',
|
||||||
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
|
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
|
||||||
# puppetdb
|
|
||||||
Boolean $pt_use_puppetdb = false,
|
|
||||||
String $pt_no_ssl_port = '8080',
|
|
||||||
String $pt_ssl_port = '8081',
|
|
||||||
Boolean $pt_use_ssl_only = true,
|
|
||||||
# user settings
|
# user settings
|
||||||
## puppet user
|
## puppet user
|
||||||
Boolean $pt_manage_user = true,
|
Boolean $pt_manage_user = true,
|
||||||
@@ -1010,6 +1347,7 @@ class puppet_cd::params (
|
|||||||
String $pt_db_user_home = '/opt/puppetlabs/server/data/puppetdb',
|
String $pt_db_user_home = '/opt/puppetlabs/server/data/puppetdb',
|
||||||
String $pt_db_user_shell = '/sbin/nologin',
|
String $pt_db_user_shell = '/sbin/nologin',
|
||||||
# templates
|
# templates
|
||||||
|
## puppet
|
||||||
String $pt_environment = 'production',
|
String $pt_environment = 'production',
|
||||||
Boolean $pt_allow_duplicate_certs = false,
|
Boolean $pt_allow_duplicate_certs = false,
|
||||||
String $pt_basemodulepath = '/etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules',
|
String $pt_basemodulepath = '/etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules',
|
||||||
@@ -1037,11 +1375,39 @@ class puppet_cd::params (
|
|||||||
Boolean $pt_storeconfigs = true,
|
Boolean $pt_storeconfigs = true,
|
||||||
String $pt_storeconfigs_backend = 'puppetdb',
|
String $pt_storeconfigs_backend = 'puppetdb',
|
||||||
String $pt_parser = 'current',
|
String $pt_parser = 'current',
|
||||||
|
## puppetdb
|
||||||
|
Boolean $pt_use_puppetdb = false,
|
||||||
|
String $pt_logging_max_file_size = '200MB',
|
||||||
|
String $pt_logging_max_history = '90',
|
||||||
|
String $pt_logging_total_size = '1GB',
|
||||||
|
String $pt_com_proc_threads = '4',
|
||||||
|
String $pt_concurrent_writes = '4',
|
||||||
|
String $pt_db_subname = '//localhost:5432/puppetdb',
|
||||||
|
String $pt_db_username = 'foobar',
|
||||||
|
String $pt_db_password = 'foobar',
|
||||||
|
String $pt_gc_interval = '60',
|
||||||
|
String $pt_log_slow_statements = '10',
|
||||||
|
String $pt_no_ssl_port = '8080',
|
||||||
|
String $pt_ssl_port = '8081',
|
||||||
|
Boolean $pt_use_ssl_only = true,
|
||||||
|
String $pt_puppetdb_source_lan = '0.0.0.0/0',
|
||||||
|
Boolean $pt_soft_write_failure = false,
|
||||||
|
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_ca_cert = '/etc/puppetlabs/puppetdb/ssl/ca.pem',
|
||||||
|
Boolean $pt_log_access = false,
|
||||||
|
String $pt_access_log_config = '/etc/puppetlabs/puppetdb/request-logging.xml',
|
||||||
|
Boolean $pt_enable_repl = false,
|
||||||
|
String $pt_repl_port = '8082',
|
||||||
|
String $pt_repl_host = '127.0.0.1',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|
||||||
# directories
|
# directories
|
||||||
|
## puppet
|
||||||
$pt_main_dir = '/etc/puppetlabs'
|
$pt_main_dir = '/etc/puppetlabs'
|
||||||
$pt_puppetdir = "${pt_main_dir}/puppet"
|
$pt_puppetdir = "${pt_main_dir}/puppet"
|
||||||
$pt_code_dir = "${pt_main_dir}/code"
|
$pt_code_dir = "${pt_main_dir}/code"
|
||||||
@@ -1052,6 +1418,36 @@ class puppet_cd::params (
|
|||||||
$pt_rundir_master = '/var/run/puppetlabs/puppetserver'
|
$pt_rundir_master = '/var/run/puppetlabs/puppetserver'
|
||||||
$pt_vardir = '/opt/puppetlabs/puppet/cache'
|
$pt_vardir = '/opt/puppetlabs/puppet/cache'
|
||||||
$pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
|
$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'
|
||||||
|
|
||||||
|
# files
|
||||||
|
## puppet
|
||||||
|
$pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
|
||||||
|
$pt_puppet_conf_erb = 'puppet_cd/puppet.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'
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
|
|||||||
Reference in New Issue
Block a user