Skip to content

Commit

Permalink
Add feature to enable business process module and copy existing confi…
Browse files Browse the repository at this point in the history
…guration to the module
  • Loading branch information
christoph2497 committed Oct 17, 2023
1 parent 7314e49 commit 4fd3247
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Empty file.
38 changes: 38 additions & 0 deletions roles/icingaweb2/tasks/modules/businessprocess.yml
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 }}"
1 change: 1 addition & 0 deletions roles/icingaweb2/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
icingaweb2_module_packages:
icingadb: icingadb-web
director: icinga-director
businessprocess: icinga-businessprocess

0 comments on commit 4fd3247

Please sign in to comment.