Recommit for updates in build 77
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
<p><a href="#features">Features</a></p>
|
||||
<ul><li>
|
||||
<p><a href="#configuring-user-access">configuring user access</a></p>
|
||||
</li><li>
|
||||
<p><a href="#additional-users">Additional users</a></p>
|
||||
</li></ul>
|
||||
</li><li>
|
||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||
@@ -119,7 +121,29 @@
|
||||
|
||||
<h3 id="label-configuring+user+access">configuring user access</h3>
|
||||
|
||||
<p>ToDo</p>
|
||||
<p>Main access to the user interface requires defining an administrative user and password via <code>ng_main_user</code> and <code>ng_main_password</code>. The password should be encrypted like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">htpasswd -B -n testuser
|
||||
New password:
|
||||
Re-type new password:
|
||||
</code></pre>
|
||||
|
||||
<p>This results in</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">testuser: $2y$05$rNy/P22OfYZlpdEPnCAIg.OUizRD34P7pDRwUGiaYjH44PcRuZ2ia
|
||||
</code></pre>
|
||||
|
||||
<p>Use that value to override the default password in ENC or Hiera, if you use it.</p>
|
||||
|
||||
<h3 id="label-Additional+users">Additional users</h3>
|
||||
|
||||
<p>The main user is automatically created. If you want to add more users, this should be done via the define confdroid_nagios::server::access. In your control repo, site.pp etc. address the access define like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::server::access { 'example':
|
||||
ng_htpasswd_user => 'example_user',
|
||||
ng_htpasswd_password => 'example_password_encrypted'
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
<p><a href="#features">Features</a></p>
|
||||
<ul><li>
|
||||
<p><a href="#configuring-user-access">configuring user access</a></p>
|
||||
</li><li>
|
||||
<p><a href="#additional-users">Additional users</a></p>
|
||||
</li></ul>
|
||||
</li><li>
|
||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||
@@ -119,7 +121,29 @@
|
||||
|
||||
<h3 id="label-configuring+user+access">configuring user access</h3>
|
||||
|
||||
<p>ToDo</p>
|
||||
<p>Main access to the user interface requires defining an administrative user and password via <code>ng_main_user</code> and <code>ng_main_password</code>. The password should be encrypted like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">htpasswd -B -n testuser
|
||||
New password:
|
||||
Re-type new password:
|
||||
</code></pre>
|
||||
|
||||
<p>This results in</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">testuser: $2y$05$rNy/P22OfYZlpdEPnCAIg.OUizRD34P7pDRwUGiaYjH44PcRuZ2ia
|
||||
</code></pre>
|
||||
|
||||
<p>Use that value to override the default password in ENC or Hiera, if you use it.</p>
|
||||
|
||||
<h3 id="label-Additional+users">Additional users</h3>
|
||||
|
||||
<p>The main user is automatically created. If you want to add more users, this should be done via the define confdroid_nagios::server::access. In your control repo, site.pp etc. address the access define like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::server::access { 'example':
|
||||
ng_htpasswd_user => 'example_user',
|
||||
ng_htpasswd_password => 'example_password_encrypted'
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
|
||||
|
||||
@@ -504,14 +504,14 @@ class confdroid_nagios::params (
|
||||
$ng_cntctgrps_rule_erb = 'confdroid_nagios/nagios/contactgroups_cfg_rule.erb'
|
||||
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
||||
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios'
|
||||
$ng_htpasswd_file = "${ng_main_dir}/passwd"
|
||||
$ng_htpasswd_head = 'confdroid_nagios/nagios/htpasswd_head.erb'
|
||||
$ng_htpasswd_rule = 'confdroid_nagios/nagios/htpasswd_rule.erb'
|
||||
|
||||
## old
|
||||
$ng_main_config = "${ng_main_dir}/nagios.cfg"
|
||||
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
||||
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
||||
$ng_htpasswd_file = "${ng_main_dir}/passwd"
|
||||
$ng_htpasswd_head = 'confdroid_nagios/nagios/htpasswd_head.erb'
|
||||
$ng_htpasswd_rule = 'confdroid_nagios/nagios/htpasswd_rule.erb'
|
||||
$ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'
|
||||
$ng_statcgi_erb = 'confdroid_nagios/selinux/statuscgi.erb'
|
||||
$ng_statdat_erb = 'confdroid_nagios/selinux/statusdat.erb'
|
||||
|
||||
Reference in New Issue
Block a user