OP#436 add documentation for user access
This commit is contained in:
29
README.md
29
README.md
@@ -8,6 +8,7 @@
|
||||
- [WARNING](#warning)
|
||||
- [Features](#features)
|
||||
- [configuring user access](#configuring-user-access)
|
||||
- [Additional users](#additional-users)
|
||||
- [Repo Documentation](#repo-documentation)
|
||||
- [Dependencies](#dependencies)
|
||||
- [Deployment](#deployment)
|
||||
@@ -40,7 +41,33 @@ At this stage, the module is being redeveloped and being built to the latest sta
|
||||
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
||||
|
||||
### configuring user access
|
||||
ToDo
|
||||
|
||||
Main access to the user interface requires defining an administrative user and password via `ng_main_user` and `ng_main_password`. The password should be encrypted like this:
|
||||
|
||||
```bash
|
||||
htpasswd -B -n testuser
|
||||
New password:
|
||||
Re-type new password:
|
||||
```
|
||||
|
||||
This results in
|
||||
|
||||
```text
|
||||
testuser: $2y$05$rNy/P22OfYZlpdEPnCAIg.OUizRD34P7pDRwUGiaYjH44PcRuZ2ia
|
||||
```
|
||||
|
||||
Use that value to override the default password in ENC or Hiera, if you use it.
|
||||
|
||||
### Additional users
|
||||
|
||||
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:
|
||||
|
||||
```puppet
|
||||
confdroid_nagios::server::access { 'example':
|
||||
ng_htpasswd_user => 'example_user',
|
||||
ng_htpasswd_password => 'example_password_encrypted'
|
||||
}
|
||||
```
|
||||
|
||||
## Repo Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user