10
CHANGELOG.md
10
CHANGELOG.md
@@ -8,6 +8,16 @@ Changelog of Git Changelog.
|
|||||||
<h2> No issue </h2>
|
<h2> No issue </h2>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/10741c6eacd385f">10741c6eacd385f</a> Jenkins Server <i>2017-07-21 15:46:57</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 38</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/09372f68657c04b">09372f68657c04b</a> Arne Teuke <i>2017-07-21 15:46:40</i>
|
||||||
|
<p>
|
||||||
|
<h3>removing all final config files on certbot level</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/919531809c41d5a">919531809c41d5a</a> Jenkins Server <i>2017-07-21 15:24:59</i>
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/919531809c41d5a">919531809c41d5a</a> Jenkins Server <i>2017-07-21 15:24:59</i>
|
||||||
<p>
|
<p>
|
||||||
<h3>recommit for updates in build 37</h3>
|
<h3>recommit for updates in build 37</h3>
|
||||||
|
|||||||
@@ -54,12 +54,12 @@
|
|||||||
| `-- params.pp
|
| `-- params.pp
|
||||||
|-- templates
|
|-- templates
|
||||||
| |-- certbot
|
| |-- certbot
|
||||||
| | |-- create_tempfile.erb
|
|
||||||
| | |-- get_cert.erb
|
| | |-- get_cert.erb
|
||||||
| | |-- unless_get_cert.erb
|
| | |-- unless_get_cert.erb
|
||||||
| | `-- unless_renew_cert.erb
|
| | `-- unless_renew_cert.erb
|
||||||
| |-- httpd
|
| |-- httpd
|
||||||
| | |-- forward_conf.erb
|
| | |-- forward_conf.erb
|
||||||
|
| | |-- index_html.erb
|
||||||
| | |-- nagios_conf.erb
|
| | |-- nagios_conf.erb
|
||||||
| | `-- welcome_conf.erb
|
| | `-- welcome_conf.erb
|
||||||
| |-- nagios
|
| |-- nagios
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:52 2017 by
|
Generated on Fri Jul 21 18:11:52 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ environments.</p>
|
|||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:53 2017 by
|
Generated on Fri Jul 21 18:11:53 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ environments.</p>
|
|||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:52 2017 by
|
Generated on Fri Jul 21 18:11:52 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class cd_nagios {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:53 2017 by
|
Generated on Fri Jul 21 18:11:53 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -169,44 +169,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|||||||
60
|
60
|
||||||
61
|
61
|
||||||
62
|
62
|
||||||
63
|
63</pre>
|
||||||
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</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/certbot/config.pp', line 23</span>
|
<pre class="code"><span class="info file"># File 'manifests/certbot/config.pp', line 23</span>
|
||||||
@@ -221,31 +184,6 @@ class cd_nagios::certbot::config (
|
|||||||
|
|
||||||
require cd_certbot
|
require cd_certbot
|
||||||
|
|
||||||
# ensure there is no forward vhost file
|
|
||||||
|
|
||||||
exec { 'remove_forward_vhost':
|
|
||||||
command => "rm -Rf ${ng_forward_conf}",
|
|
||||||
creates => '/etc/httpd/conf.d/.cert_created',
|
|
||||||
}
|
|
||||||
|
|
||||||
exec { 'remove_nagios_conf':
|
|
||||||
command => "rm -Rf ${ng_nagios_conf}",
|
|
||||||
creates => '/etc/httpd/conf.d/.cert_created',
|
|
||||||
require => Exec['remove_forward_vhost'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create temp vhost file
|
|
||||||
|
|
||||||
exec { 'create_temp_vhost':
|
|
||||||
command => template('cd_nagios/certbot/create_tempfile.erb'),
|
|
||||||
cwd => '/tmp',
|
|
||||||
path => ['/bin','/usr/bin'],
|
|
||||||
provider => 'shell',
|
|
||||||
creates => '/etc/httpd/conf.d/.created',
|
|
||||||
notify => Service['httpd'],
|
|
||||||
require => Exec['remove_nagios_conf'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create cert
|
# create cert
|
||||||
|
|
||||||
exec { 'create_cert':
|
exec { 'create_cert':
|
||||||
@@ -259,18 +197,6 @@ class cd_nagios::certbot::config (
|
|||||||
require => Exec['create_temp_vhost'],
|
require => Exec['create_temp_vhost'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove temp_vhost
|
|
||||||
|
|
||||||
exec { 'remove_temp_vhost':
|
|
||||||
command => "rm -Rf ${ng_certbot_temp_file}",
|
|
||||||
cwd => '/tmp',
|
|
||||||
path => ['/bin','/usr/bin'],
|
|
||||||
provider => 'shell',
|
|
||||||
notify => Service['httpd'],
|
|
||||||
require => Exec['create_cert'],
|
|
||||||
creates => "/etc/letsencrypt/live/${ng_nagios_server}/cert.pem",
|
|
||||||
}
|
|
||||||
|
|
||||||
# renew certs
|
# renew certs
|
||||||
|
|
||||||
exec { 'renew_cert':
|
exec { 'renew_cert':
|
||||||
@@ -296,7 +222,7 @@ class cd_nagios::certbot::config (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ class cd_nagios::client::target (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ class cd_nagios::firewall::iptables (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ class cd_nagios::main::config (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:54 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ class cd_nagios::main::dirs (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:54 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ class cd_nagios::main::install (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:54 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ class cd_nagios::main::user (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:54 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1860,27 +1860,6 @@ choose '0.0.0.0/0'</p>
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>ng_disable_welcome</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>boolean</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>Whether the regular welcome screen should
|
|
||||||
be disabled. this is required for
|
|
||||||
the nagios http check on the nagios server
|
|
||||||
to be successful.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<span class='name'>ng_enable_certbot</span>
|
<span class='name'>ng_enable_certbot</span>
|
||||||
@@ -1914,7 +1893,7 @@ certificate management</p>
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the path for certbot to place
|
<p>the path for certbot to place
|
||||||
challenges for teh certification process.</p>
|
challenges for the certification process.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -1935,6 +1914,26 @@ challenges for teh certification process.</p>
|
|||||||
<p>email address to receive administrative mail.
|
<p>email address to receive administrative mail.
|
||||||
used for nagios itself as
|
used for nagios itself as
|
||||||
well as for certbot.</p>
|
well as for certbot.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ng_enable_index</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>Whether to create an index file to allow
|
||||||
|
httpd checks with nagios on the
|
||||||
|
nagios server.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -1956,6 +1955,7 @@ well as for certbot.</p>
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
212
|
||||||
213
|
213
|
||||||
214
|
214
|
||||||
215
|
215
|
||||||
@@ -2127,11 +2127,10 @@ well as for certbot.</p>
|
|||||||
381
|
381
|
||||||
382
|
382
|
||||||
383
|
383
|
||||||
384
|
384</pre>
|
||||||
385</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 213</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 212</span>
|
||||||
|
|
||||||
class cd_nagios::params (
|
class cd_nagios::params (
|
||||||
|
|
||||||
@@ -2243,7 +2242,7 @@ $ng_use_selinux_tools = true,
|
|||||||
# httpd
|
# httpd
|
||||||
$ng_required_hosts = '',
|
$ng_required_hosts = '',
|
||||||
$ng_required_ips = '127.0.0.0/8',
|
$ng_required_ips = '127.0.0.0/8',
|
||||||
$ng_disable_welcome = true,
|
$ng_enable_index = true,
|
||||||
|
|
||||||
# certbot
|
# certbot
|
||||||
$ng_enable_certbot = true,
|
$ng_enable_certbot = true,
|
||||||
@@ -2298,8 +2297,8 @@ $ng_forward_conf_erb = 'cd_nagios/httpd/forward_conf.erb'
|
|||||||
$ng_get_cert_erb = 'cd_nagios/certbot/get_cert.erb'
|
$ng_get_cert_erb = 'cd_nagios/certbot/get_cert.erb'
|
||||||
$ng_unless_get_cert = 'cd_nagios/certbot/unless_get_cert.erb'
|
$ng_unless_get_cert = 'cd_nagios/certbot/unless_get_cert.erb'
|
||||||
$ng_unless_renew_erb = 'cd_nagios/certbot/unless_renew_cert.erb'
|
$ng_unless_renew_erb = 'cd_nagios/certbot/unless_renew_cert.erb'
|
||||||
$ng_create_tempvhost = 'cd_nagios/certbot/create_tempfile.erb'
|
$ng_index_html_file = '/var/www/html/index.html'
|
||||||
$ng_certbot_temp_file = '/etc/httpd/conf.d/certbot_temp.conf'
|
$ng_index_html_erb = 'cd_nagios/httpd/index_html.erb'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|
||||||
@@ -2313,7 +2312,7 @@ $ng_certbot_temp_file = '/etc/httpd/conf.d/certbot_temp.conf'
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:54 2017 by
|
Generated on Fri Jul 21 18:11:54 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ class cd_nagios::selinux::config (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ class cd_nagios::server::access_rules (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -230,64 +230,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|||||||
121
|
121
|
||||||
122
|
122
|
||||||
123
|
123
|
||||||
124
|
124</pre>
|
||||||
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
|
|
||||||
170
|
|
||||||
171
|
|
||||||
172
|
|
||||||
173
|
|
||||||
174
|
|
||||||
175
|
|
||||||
176
|
|
||||||
177
|
|
||||||
178
|
|
||||||
179
|
|
||||||
180
|
|
||||||
181</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/files.pp', line 23</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/files.pp', line 23</span>
|
||||||
@@ -301,11 +244,14 @@ class cd_nagios::server::files (
|
|||||||
if $ng_enable_certbot == true {
|
if $ng_enable_certbot == true {
|
||||||
|
|
||||||
require cd_nagios::certbot::config
|
require cd_nagios::certbot::config
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require cd_nagios::main::dirs
|
require cd_nagios::main::dirs
|
||||||
|
|
||||||
# manage nagios.cfg
|
# manage nagios.cfg
|
||||||
|
|
||||||
|
|
||||||
# manage cgi.cfg
|
# manage cgi.cfg
|
||||||
|
|
||||||
file { $ng_cgi_cfg_file:
|
file { $ng_cgi_cfg_file:
|
||||||
@@ -338,25 +284,8 @@ class cd_nagios::server::files (
|
|||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
if $ng_http_https_fw == true {
|
|
||||||
file { $ng_forward_conf:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_forward_conf,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => httpd_config_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_forward_conf_erb),
|
|
||||||
notify => Service[$ae_service],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# manage welcome.conf for nagios web server
|
# manage welcome.conf for nagios web server
|
||||||
|
|
||||||
if $ng_disable_welcome == true {
|
|
||||||
file { $ng_welcome_conf:
|
file { $ng_welcome_conf:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $ng_welcome_conf,
|
path => $ng_welcome_conf,
|
||||||
@@ -370,48 +299,7 @@ class cd_nagios::server::files (
|
|||||||
content => template($ng_welcome_conf_erb),
|
content => template($ng_welcome_conf_erb),
|
||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
|
|
||||||
require cd_nagios::main::dirs
|
|
||||||
|
|
||||||
# manage nagios.cfg
|
|
||||||
|
|
||||||
|
|
||||||
# manage cgi.cfg
|
|
||||||
|
|
||||||
file { $ng_cgi_cfg_file:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_cgi_cfg_file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => nagios_etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_cgi_cfg_erb),
|
|
||||||
notify => Service[$ng_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# manage nagios.conf for httpd
|
|
||||||
|
|
||||||
file { $ng_nagios_conf:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_nagios_conf,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => httpd_config_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_nagios_conf_erb),
|
|
||||||
notify => Service[$ae_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
if $ng_http_https_fw == true {
|
if $ng_http_https_fw == true {
|
||||||
|
|
||||||
@@ -430,13 +318,12 @@ class cd_nagios::server::files (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# manage welcome.conf for nagios web server
|
|
||||||
|
|
||||||
if $ng_disable_welcome == true {
|
if $ng_enable_index == true {
|
||||||
|
|
||||||
file { $ng_welcome_conf:
|
file { $ng_index_html_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $ng_welcome_conf,
|
path => $ng_index_html_file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -444,12 +331,11 @@ class cd_nagios::server::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => httpd_config_t,
|
seltype => httpd_config_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($ng_welcome_conf_erb),
|
content => template($ng_index_html_erb),
|
||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -458,7 +344,7 @@ class cd_nagios::server::files (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class cd_nagios::server::service (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:55 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:55 2017 by
|
Generated on Fri Jul 21 18:11:56 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Fri Jul 21 17:46:53 2017 by
|
Generated on Fri Jul 21 18:11:53 2017 by
|
||||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||||
0.9.9 (ruby-2.0.0).
|
0.9.9 (ruby-2.0.0).
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -30,31 +30,6 @@ class cd_nagios::certbot::config (
|
|||||||
|
|
||||||
require cd_certbot
|
require cd_certbot
|
||||||
|
|
||||||
# ensure there is no forward vhost file
|
|
||||||
|
|
||||||
exec { 'remove_forward_vhost':
|
|
||||||
command => "rm -Rf ${ng_forward_conf}",
|
|
||||||
creates => '/etc/httpd/conf.d/.cert_created',
|
|
||||||
}
|
|
||||||
|
|
||||||
exec { 'remove_nagios_conf':
|
|
||||||
command => "rm -Rf ${ng_nagios_conf}",
|
|
||||||
creates => '/etc/httpd/conf.d/.cert_created',
|
|
||||||
require => Exec['remove_forward_vhost'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create temp vhost file
|
|
||||||
|
|
||||||
exec { 'create_temp_vhost':
|
|
||||||
command => template('cd_nagios/certbot/create_tempfile.erb'),
|
|
||||||
cwd => '/tmp',
|
|
||||||
path => ['/bin','/usr/bin'],
|
|
||||||
provider => 'shell',
|
|
||||||
creates => '/etc/httpd/conf.d/.created',
|
|
||||||
notify => Service['httpd'],
|
|
||||||
require => Exec['remove_nagios_conf'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create cert
|
# create cert
|
||||||
|
|
||||||
exec { 'create_cert':
|
exec { 'create_cert':
|
||||||
@@ -68,18 +43,6 @@ class cd_nagios::certbot::config (
|
|||||||
require => Exec['create_temp_vhost'],
|
require => Exec['create_temp_vhost'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove temp_vhost
|
|
||||||
|
|
||||||
exec { 'remove_temp_vhost':
|
|
||||||
command => "rm -Rf ${ng_certbot_temp_file}",
|
|
||||||
cwd => '/tmp',
|
|
||||||
path => ['/bin','/usr/bin'],
|
|
||||||
provider => 'shell',
|
|
||||||
notify => Service['httpd'],
|
|
||||||
require => Exec['create_cert'],
|
|
||||||
creates => "/etc/letsencrypt/live/${ng_nagios_server}/cert.pem",
|
|
||||||
}
|
|
||||||
|
|
||||||
# renew certs
|
# renew certs
|
||||||
|
|
||||||
exec { 'renew_cert':
|
exec { 'renew_cert':
|
||||||
|
|||||||
@@ -200,15 +200,14 @@
|
|||||||
# @param [string] ng_required_ips string of **__Ip addresses __** for hosts which
|
# @param [string] ng_required_ips string of **__Ip addresses __** for hosts which
|
||||||
# should be allowed/reqired. Requires format 'ipaddress ip address range'.
|
# should be allowed/reqired. Requires format 'ipaddress ip address range'.
|
||||||
# If you want no restriction, choose '0.0.0.0/0'
|
# If you want no restriction, choose '0.0.0.0/0'
|
||||||
# @param [boolean] ng_disable_welcome Whether the regular welcome screen should
|
|
||||||
# be disabled. this is required for the nagios http check on the nagios server
|
|
||||||
# to be successful.
|
|
||||||
# @param [boolean] ng_enable_certbot Whether to use certbot for automated TLS
|
# @param [boolean] ng_enable_certbot Whether to use certbot for automated TLS
|
||||||
# certificate management
|
# certificate management
|
||||||
# @param [string] ng_certbot_cert_path the path for certbot to place
|
# @param [string] ng_certbot_cert_path the path for certbot to place
|
||||||
# challenges for teh certification process.
|
# challenges for the certification process.
|
||||||
# @param [string] ng_mail_user email address to receive administrative mail.
|
# @param [string] ng_mail_user email address to receive administrative mail.
|
||||||
# used for nagios itself as well as for certbot.
|
# used for nagios itself as well as for certbot.
|
||||||
|
# @param [boolean] ng_enable_index Whether to create an index file to allow
|
||||||
|
# httpd checks with nagios on the nagios server.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class cd_nagios::params (
|
class cd_nagios::params (
|
||||||
|
|
||||||
@@ -320,7 +319,7 @@ $ng_use_selinux_tools = true,
|
|||||||
# httpd
|
# httpd
|
||||||
$ng_required_hosts = '',
|
$ng_required_hosts = '',
|
||||||
$ng_required_ips = '127.0.0.0/8',
|
$ng_required_ips = '127.0.0.0/8',
|
||||||
$ng_disable_welcome = true,
|
$ng_enable_index = true,
|
||||||
|
|
||||||
# certbot
|
# certbot
|
||||||
$ng_enable_certbot = true,
|
$ng_enable_certbot = true,
|
||||||
@@ -375,8 +374,8 @@ $ng_forward_conf_erb = 'cd_nagios/httpd/forward_conf.erb'
|
|||||||
$ng_get_cert_erb = 'cd_nagios/certbot/get_cert.erb'
|
$ng_get_cert_erb = 'cd_nagios/certbot/get_cert.erb'
|
||||||
$ng_unless_get_cert = 'cd_nagios/certbot/unless_get_cert.erb'
|
$ng_unless_get_cert = 'cd_nagios/certbot/unless_get_cert.erb'
|
||||||
$ng_unless_renew_erb = 'cd_nagios/certbot/unless_renew_cert.erb'
|
$ng_unless_renew_erb = 'cd_nagios/certbot/unless_renew_cert.erb'
|
||||||
$ng_create_tempvhost = 'cd_nagios/certbot/create_tempfile.erb'
|
$ng_index_html_file = '/var/www/html/index.html'
|
||||||
$ng_certbot_temp_file = '/etc/httpd/conf.d/certbot_temp.conf'
|
$ng_index_html_erb = 'cd_nagios/httpd/index_html.erb'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,14 @@ class cd_nagios::server::files (
|
|||||||
if $ng_enable_certbot == true {
|
if $ng_enable_certbot == true {
|
||||||
|
|
||||||
require cd_nagios::certbot::config
|
require cd_nagios::certbot::config
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require cd_nagios::main::dirs
|
require cd_nagios::main::dirs
|
||||||
|
|
||||||
# manage nagios.cfg
|
# manage nagios.cfg
|
||||||
|
|
||||||
|
|
||||||
# manage cgi.cfg
|
# manage cgi.cfg
|
||||||
|
|
||||||
file { $ng_cgi_cfg_file:
|
file { $ng_cgi_cfg_file:
|
||||||
@@ -66,25 +69,8 @@ class cd_nagios::server::files (
|
|||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
if $ng_http_https_fw == true {
|
|
||||||
file { $ng_forward_conf:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_forward_conf,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => httpd_config_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_forward_conf_erb),
|
|
||||||
notify => Service[$ae_service],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# manage welcome.conf for nagios web server
|
# manage welcome.conf for nagios web server
|
||||||
|
|
||||||
if $ng_disable_welcome == true {
|
|
||||||
file { $ng_welcome_conf:
|
file { $ng_welcome_conf:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $ng_welcome_conf,
|
path => $ng_welcome_conf,
|
||||||
@@ -98,48 +84,7 @@ class cd_nagios::server::files (
|
|||||||
content => template($ng_welcome_conf_erb),
|
content => template($ng_welcome_conf_erb),
|
||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
|
|
||||||
require cd_nagios::main::dirs
|
|
||||||
|
|
||||||
# manage nagios.cfg
|
|
||||||
|
|
||||||
|
|
||||||
# manage cgi.cfg
|
|
||||||
|
|
||||||
file { $ng_cgi_cfg_file:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_cgi_cfg_file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => nagios_etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_cgi_cfg_erb),
|
|
||||||
notify => Service[$ng_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# manage nagios.conf for httpd
|
|
||||||
|
|
||||||
file { $ng_nagios_conf:
|
|
||||||
ensure => file,
|
|
||||||
path => $ng_nagios_conf,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => httpd_config_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($ng_nagios_conf_erb),
|
|
||||||
notify => Service[$ae_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
if $ng_http_https_fw == true {
|
if $ng_http_https_fw == true {
|
||||||
|
|
||||||
@@ -158,13 +103,12 @@ class cd_nagios::server::files (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# manage welcome.conf for nagios web server
|
|
||||||
|
|
||||||
if $ng_disable_welcome == true {
|
if $ng_enable_index == true {
|
||||||
|
|
||||||
file { $ng_welcome_conf:
|
file { $ng_index_html_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $ng_welcome_conf,
|
path => $ng_index_html_file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -172,10 +116,9 @@ class cd_nagios::server::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => httpd_config_t,
|
seltype => httpd_config_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($ng_welcome_conf_erb),
|
content => template($ng_index_html_erb),
|
||||||
notify => Service[$ae_service],
|
notify => Service[$ae_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
echo "# temporary vhost file
|
|
||||||
<VirtualHost *:80>
|
|
||||||
ServerAdmin root@localhost
|
|
||||||
DocumentRoot /var/www/html
|
|
||||||
ServerName <%= @ng_nagios_server %>
|
|
||||||
<Directory />
|
|
||||||
AllowOverride All
|
|
||||||
</Directory>
|
|
||||||
</VirtualHost>
|
|
||||||
" > <%= @ng_certbot_temp_file %>
|
|
||||||
touch /etc/httpd/conf.d/.created
|
|
||||||
0
templates/httpd/index_html.erb
Normal file
0
templates/httpd/index_html.erb
Normal file
@@ -3,25 +3,18 @@
|
|||||||
########### manual changes will be overwritten !!! ##########
|
########### manual changes will be overwritten !!! ##########
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#
|
<LocationMatch "^/+$">
|
||||||
# This configuration file enables the default "Welcome" page if there
|
Options -Indexes
|
||||||
# is no default index page present for the root URL. To disable the
|
ErrorDocument 403 /.noindex.html
|
||||||
# Welcome page, comment out all the lines below.
|
</LocationMatch>
|
||||||
#
|
|
||||||
# NOTE: if this file is removed, it will be restored on upgrades.
|
|
||||||
#
|
|
||||||
#<LocationMatch "^/+$">
|
|
||||||
# Options -Indexes
|
|
||||||
# ErrorDocument 403 /.noindex.html
|
|
||||||
#</LocationMatch>
|
|
||||||
|
|
||||||
#<Directory /usr/share/httpd/noindex>
|
<Directory /usr/share/httpd/noindex>
|
||||||
# AllowOverride None
|
AllowOverride None
|
||||||
# Require all granted
|
Require all granted
|
||||||
#</Directory>
|
</Directory>
|
||||||
|
|
||||||
#Alias /.noindex.html /usr/share/httpd/noindex/index.html
|
Alias /.noindex.html /usr/share/httpd/noindex/index.html
|
||||||
#Alias /noindex/css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css
|
Alias /noindex/css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css
|
||||||
#Alias /noindex/css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css
|
Alias /noindex/css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css
|
||||||
#Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif
|
Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif
|
||||||
#Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png
|
Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
./.yardoc/objects/root.dat: data
|
./.yardoc/objects/root.dat: data
|
||||||
./doc/css/style.css: HTML document, UTF-8 Unicode text, with very long lines
|
./doc/css/style.css: HTML document, UTF-8 Unicode text, with very long lines
|
||||||
./doc/js/jquery.js: HTML document, UTF-8 Unicode text, with very long lines
|
./doc/js/jquery.js: HTML document, UTF-8 Unicode text, with very long lines
|
||||||
|
./templates/httpd/index_html.erb: empty
|
||||||
|
|||||||
Reference in New Issue
Block a user