Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild features #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions icinga2/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,19 @@ icinga2:
- php-intl
- php-gd
- php-imagick
features:
api: False
command: True
debuglog: False
gelf: False
graphite: False
influxdb: False
livestatus: False
opentsdb: False
perfdata: False
statusdata: False
syslog: False

features:
api: False
command: True
debuglog: False
gelf: False
graphite: False
influxdb: False
livestatus: False
opentsdb: False
perfdata: False
statusdata: False
syslog: False

check_command:
openvpn:
Expand Down
8 changes: 8 additions & 0 deletions icinga2/features.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% from "icinga2/map.jinja" import icinga2 with context %}
{% from "icinga2/map.jinja" import feature with context %}

{%- if icinga2.features != None %}
{%- for name, enable in icinga2.features.items() %}
{{ feature(name, enable) }}
{% endfor %}
{%- endif %}
4 changes: 0 additions & 4 deletions icinga2/icinga-web2-core.sls
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ icinga2-web2:
pkg.installed:
- pkgs: {{ icinga2.icinga_web2.pkgs | json }}

{%- for name, enable in icinga2.icinga_web2.features.items() %}
{{ feature(name, enable) }}
{% endfor %}

icingaweb2-group:
group.present:
- name: {{ icinga2.icinga_web2.group }}
Expand Down
1 change: 1 addition & 0 deletions icinga2/init.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include:
- .install
- .config
- .features
- .service
19 changes: 10 additions & 9 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ icinga2:
- ...
required_pkgs:
- ...
features:
api: False # disable
command: True # enable
gelf: True
graphite: True
opentsdb: True
perfdata: True
statusdata: True
# ...

features:
api: False # disable
command: True # enable
gelf: True
graphite: True
opentsdb: True
perfdata: True
statusdata: True
# ...

notification:
xmpp:
Expand Down