Skip to content

Commit 28daf08

Browse files
committed
Continues working on x509 module installation
1 parent 3b40e54 commit 28daf08

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
major_changes:
3+
- Added Installation of x509 certificate monitoring model

doc/role-icingaweb2/module-x509.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To import the database schema use `database` dictionary with the following varia
7272
| `port` | `int` | Defines the database port to connect to. | `3306` or `5432` |
7373
| `user` | `string` | Defines database user | `x509` |
7474
| `name` | `String` | Defines the database to connect to. | `x509` |
75-
| `password` | `String` | Defines the database password to connect with. | `x509` |
75+
| `password` | `String` | Defines the database password to connect with. | OMITTED |
7676
| `ssl_mode` | `String` | Clients attempt to connect using encryption, falling back to an unencrypted connection if an encrypted connection cannot be established |**n/a** |
7777
|`ssl_ca`| `String`| Defines the path to the ca certificate for client authentication. | **n/a** |
7878
|`ssl_cert`|`String`| Defines the path to the certificate for client authentication. | **n/a** |

roles/icingaweb2/tasks/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@
4343
force: yes
4444
when: icingaweb2_modules is defined
4545
loop: "{{ icingaweb2_modules | dict2items }}"
46+
47+
# Many daemons fail before e.g. the resource is set up or the schema hasn't been migrated. This is a workaround.
48+
- name: Manage enabled module daemons
49+
ansible.builtin.service:
50+
name: "icinga-{{ item.key if item.value.enabled|bool == true and item.key in ['vspheredb', 'x509'] }}"
51+
state: restarted
52+
when: icingaweb2_modules is defined
53+
loop: "{{ icingaweb2_modules | dict2items }}"

0 commit comments

Comments
 (0)