Skip to content

Commit

Permalink
remove unnecessary code and add readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2497 committed Oct 18, 2023
1 parent a652201 commit 5f34d3a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
major_changes:
- Added Installation of Business Process Modeling Module
36 changes: 36 additions & 0 deletions doc/role-icingaweb2/module-businessprocess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Module Icinga Business Process Modeling

The module Icinga Business Process Modeling provides a visualization for hierarchical business processes based on objects monitored by Icinga.

## Configuration

The general module parameter like `enabled` and `source` can be applied here.

For every config file, create a dictionary with sections as keys and the parameters as values. For all parameters please check the [module documentation](https://icinga.com/docs/icinga-business-process-modeling/latest/doc/01-About/)



Example:
```
icingaweb2_modules:
businessprocess:
enabled: true
source: package
```

### Custom Process Files:

Custom process files are a great way to transfer existing business process configurations into the Business Process Modeling Module.

To copy existing processes into the processes folder please use the `custom_process_files` dictionary.

The `src_path` will search within any `files/` directory in the Ansible environment.
```
icingaweb2_modules:
businessprocess:
enabled: true
source: package
custom_process_files:
- name: test.conf
src_path: processes/test.conf
```
24 changes: 3 additions & 21 deletions roles/icingaweb2/tasks/modules/businessprocess.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,20 @@
# - name: Module Icinga Business Process Modeling | Install
# debug:
# msg: "Module Business Process Modeling installed"

- name: Module Graphite | Ensure config directory
- name: Module Icinga Business Process Modeling | 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 Graphite | Ensure processes directory
- name: Module Icinga Business Process Modeling | Ensure processes directory
ansible.builtin.file:
state: directory
dest: "{{ icingaweb2_modules_config_dir }}/{{ item.key }}/processes"
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
- name: Module Icinga Business Process Modeling | Copy Process
ansible.builtin.copy:
owner: "{{ icingaweb2_httpd_user }}"
group: "{{ icingaweb2_group }}"
Expand Down

0 comments on commit 5f34d3a

Please sign in to comment.