Skip to content

Commit

Permalink
Merge pull request #2 from mcktr/fix/enhance-readme
Browse files Browse the repository at this point in the history
Enhance README
  • Loading branch information
nunofernandes authored Feb 14, 2018
2 parents 81a85e9 + 9984c31 commit e8f9470
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

## About

The Certificate Authority Module for Icinga Web 2 allows for the user to manage the
local Certification Authority.
The Certificate Authority Module for Icinga Web 2 allows the user to manage the
local Icinga Certification Authority.

## Requirements

Expand All @@ -28,10 +28,23 @@ General Public License Version 2, you will find a copy of this license in the

Nothing special. As with every Icinga Web 2 module, drop this to one of your
`modules` folders and make sure that the folder name is `ca`. Because the web
server doesn't run as icinga, we need to allow for the sudo operations:
server doesn't run as `icinga` user, we need to allow for the sudo operations:

### Installation

1. Download the [latest version](https://github.com/nunofernandes/icingaweb2-module-ca/releases) as tarball
2. Extract the tarball in the Icinga Web 2 `modules` directory
3. Make sure the CA module folder is named `ca`

**For Developers only**

Clone the repository via Git to your Icinga Web 2 `modules` directory.

### Configuration

vi /etc/sudoers.d/apache
```
# vi /etc/sudoers.d/apache
Cmnd_Alias CA_CMDS = /usr/sbin/icinga2 ca list, /usr/sbin/icinga2 ca sign *
Cmnd_Alias APACHE_COMMANDS = CA_CMDS
User_Alias APACHEUSERS = apache
Expand All @@ -40,8 +53,9 @@ Defaults:APACHEUSERS !requiretty
APACHEUSERS ALL = (icinga) NOPASSWD: APACHE_COMMANDS
```

vi /etc/icingaweb2/modules/ca/config.ini
```
# vi /etc/icingaweb2/modules/ca/config.ini
[config]
icinga2 = "/usr/sbin/icinga2"
sudo = "/usr/bin/sudo"
Expand Down

0 comments on commit e8f9470

Please sign in to comment.