forked from Icinga/ansible-collection-icinga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature to enable business process module and copy existing confi…
…guration to the module
- Loading branch information
1 parent
7314e49
commit 4fd3247
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# - name: Module Icinga Business Process Modeling | Install | ||
# debug: | ||
# msg: "Module Business Process Modeling installed" | ||
|
||
- name: Module Graphite | Ensure config directory | ||
ansible.builtin.file: | ||
state: directory | ||
dest: "{{ icingaweb2_modules_config_dir }}/{{ item.key }}" | ||
owner: "{{ icingaweb2_httpd_user }}" | ||
group: "{{ icingaweb2_group }}" | ||
mode: "2770" | ||
|
||
# - name: Module Business Process Modelling | Ensure Process Directory | ||
|
||
- name: Module Business Process Modeling | Manage process files | ||
ansible.builtin.include_tasks: manage_module_config.yml | ||
loop: "{{_files}}" | ||
loop_control: | ||
loop_var: _file | ||
when: vars['icingaweb2_modules'][_module][_file] is defined | ||
vars: | ||
_module: "{{ item.key }}" | ||
_files: | ||
- processes | ||
|
||
|
||
- name: Module Icinga Businessprocess | Copy Process | ||
ansible.builtin.copy: | ||
owner: "{{ icingaweb2_httpd_user }}" | ||
group: "{{ icingaweb2_group }}" | ||
src: "files/{{ _file.src_path }}" | ||
dest: "{{ icingaweb2_modules_config_dir }}/{{ item.key }}/processes/{{ _file.name }}" | ||
when: vars['icingaweb2_modules'][_module]['custom_process_files'] is defined | ||
loop: "{{ vars['icingaweb2_modules'][_module]['custom_process_files'] }}" | ||
loop_control: | ||
loop_var: _file | ||
vars: | ||
_module: "{{ item.key }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters