Browse Source

evomaintenance: make hooks configurable

pull/53/head
parent
commit
a643c96cca
3 changed files with 11 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +5
    -0
      evomaintenance/defaults/main.yml
  3. +5
    -0
      evomaintenance/templates/evomaintenance.j2

+ 1
- 0
CHANGELOG.md View File

@@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
### Added
* apache: add server status suffix in VHost (and default site) if missing
* apt: add a script to manage packages with "hold" mark
* evomaintenance: make hooks configurable
* nginx: add server status suffix in VHost (and default site) if missing
* redmine: enable gzip compression in nginx vhost



+ 5
- 0
evomaintenance/defaults/main.yml View File

@@ -34,6 +34,11 @@ evomaintenance_realm: "{{ evolinux_internal_domain }}"
evomaintenance_api_endpoint: Null
evomaintenance_api_key: Null

evomaintenance_hook_api: False
evomaintenance_hook_db: True
evomaintenance_hook_commit: True
evomaintenance_hook_mail: True

evomaintenance_default_hosts: []
evomaintenance_additional_hosts: []
evomaintenance_hosts: "{{ evomaintenance_default_hosts | union(evomaintenance_additional_hosts) | unique }}"


+ 5
- 0
evomaintenance/templates/evomaintenance.j2 View File

@@ -13,3 +13,8 @@ URGENCYTEL="{{ evomaintenance_urgency_tel }}"
REALM="{{ evomaintenance_realm }}"
API_ENDPOINT={{ evomaintenance_api_endpoint }}
API_KEY={{ evomaintenance_api_key }}

HOOK_API={{ evomaintenance_hook_api | bool | ternary('1','0') }}
HOOK_DB={{ evomaintenance_hook_db | bool | ternary('1','0') }}
HOOK_COMMIT={{ evomaintenance_hook_commit | bool | ternary('1','0') }}
HOOK_MAIL={{ evomaintenance_hook_mail | bool | ternary('1','0') }}

Loading…
Cancel
Save