Skip to content

Commit

Permalink
Merge pull request #38 from adfinis/fix/debian12_ready
Browse files Browse the repository at this point in the history
feat: Debian 12 support
  • Loading branch information
gianklug authored Sep 27, 2024
2 parents 4a520e9 + 6fac3ee commit 30e0891
Show file tree
Hide file tree
Showing 20 changed files with 409 additions and 145 deletions.
4 changes: 2 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---

skip_list:
- '405'
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern'
- "405"
- "106" # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern'
8 changes: 8 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@ rules:
line-length: disable
brackets: disable
truthy: disable
comments:
min-spaces-from-content: 1
comments-indentation: false
braces:
max-spaces-inside: 1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true

# vim: set ts=2 sw=2 tw=2 :
62 changes: 46 additions & 16 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# The icingaweb2 web ui password
icinga2_web_admin_pass: 'passw0rd'
icinga2_web_admin_pass: passw0rd

# icinga2 API host
icinga2_web_api_host: 127.0.0.1
Expand All @@ -13,7 +13,7 @@ icinga2_web_api_port: 5665
icinga2_web_api_user: icingaweb2

# icinga2 API password
icinga2_web_api_pass: 'passw0rd'
icinga2_web_api_pass: passw0rd

# icinga2 director API host
icinga2_web_director_api_host: 127.0.0.1
Expand All @@ -25,7 +25,10 @@ icinga2_web_director_api_port: 5665
icinga2_web_director_api_user: director

# icinga2 director API password
icinga2_web_director_api_pass: 'passw0rd'
icinga2_web_director_api_pass: passw0rd

# icingadb instead of ido
icinga2_web_use_icingadb: false

## icingaweb2 database settings
# The icingaweb2 database name
Expand All @@ -35,7 +38,7 @@ icinga2_web_icingaweb2_database_name: icingaweb2
icinga2_web_icingaweb2_database_user: icingaweb2

# The icingaweb2 database password
icinga2_web_icingaweb2_database_pass: 'passw0rd'
icinga2_web_icingaweb2_database_pass: passw0rd

# The icingaweb2 database host
icinga2_web_icingaweb2_database_host: 127.0.0.1
Expand All @@ -44,22 +47,20 @@ icinga2_web_icingaweb2_database_host: 127.0.0.1
icinga2_web_icingaweb2_database_port: 3306

# the hostpattern which can access and login with the icingaweb2 user
icinga2_web_icingaweb2_database_hostpattern: 'localhost'
icinga2_web_icingaweb2_database_hostpattern: localhost

# icingaweb2 database ssl connection (1 or 0)
icinga2_web_icingaweb2_database_ssl: 0

# icingaweb2 database ssl ca path
icinga2_web_icingaweb2_database_ssl_ca: /etc/pki/tls/certs/ca-bundle.crt


# A root user on the db host with permissions to
# add the user specified above (icinga2_web_icingaweb2_database_user)
icinga2_web_database_root_user: root
icinga2_web_database_user: icingaweb2

# corresponding password to the root user
icinga2_web_database_root_pass: 'passw0rd'

icinga2_web_database_root_pass: passw0rd

## Icinga2 database settings
# icinga2 database name
Expand All @@ -75,7 +76,7 @@ icinga2_web_icinga2_database_port: 3306
icinga2_web_icinga2_database_user: icinga2

# icinga2 database password
icinga2_web_icinga2_database_pass: 'passw0rd'
icinga2_web_icinga2_database_pass: passw0rd

# icinga2 database ssl connection (1 or 0)
icinga2_web_icinga2_database_ssl: 0
Expand Down Expand Up @@ -126,7 +127,6 @@ icinga2_web_modules: []
# timeout: 5

icinga2_web_ldap: []

# Icingaweb2 LDAP User configuration
# For further information, consult the official icingaweb2 documentation at
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap
Expand All @@ -140,7 +140,6 @@ icinga2_web_ldap: []
# filter: "(somefilter)" # optional

icinga2_web_ldap_userconf: []

# Icingaweb2 LDAP Group configuration
# For further information, consult the official icingaweb2 documentation at
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap-groups
Expand All @@ -157,7 +156,6 @@ icinga2_web_ldap_userconf: []
# group_filter: '(somefilter)' # optional

icinga2_web_ldap_groupconf: []

# Icingaweb2 database group configuration
# For further information, consult the official icingaweb2 documentation at
# https://icinga.com/docs/icinga-web-2/latest/doc/05-Authentication/#database-groups
Expand All @@ -168,7 +166,6 @@ icinga2_web_ldap_groupconf: []
# resource: icingaweb_db

icinga2_web_database_groupconf: []

# Icinga2 Permissions configuration
# For further information, consult the official icingaweb2 documentation at
# https://icinga.com/docs/icingaweb2/latest/doc/06-Security/#configuration
Expand Down Expand Up @@ -196,7 +193,7 @@ icinga2_web_permissions:
groups:
- Administrators
permissions:
- '*'
- "*"

# Director Resources configuration
# For further information, consult the official icingaweb2 documentation at
Expand All @@ -215,7 +212,6 @@ icinga2_web_permissions:
# ssl_ca: '/etc/pki/tls/certs/ca-bundle.crt'

icinga2_web_director: []

# Reporting resources configuration

# icinga2_web_reporting:
Expand All @@ -231,6 +227,21 @@ icinga2_web_director: []
# ssl_ca: '/etc/pki/tls/certs/ca-bundle.crt'

icinga2_web_reporting: []
# IcingaDB resources configuration

# icinga2_web_icingadb:
# - name: 'icingadb_db'
# db: 'mysql'
# host: 'db.example.com'
# port: '3306'
# dbname: 'icingadb'
# username: '[email protected]'
# password: '3xample'
# charset: 'utf8mb4'
# use_ssl: '1'
# ssl_ca: '/etc/pki/tls/certs/ca-bundle.crt'

icinga2_web_icingadb: []

# Grafana configuration
# icinga2_web_grafana:
Expand All @@ -250,3 +261,22 @@ icinga2_web_reporting: []
# token_url: https://sso.example.com/auth/realms/example/protocol/openid-connect/token
# api_url: https://sso.example.com/auth/realms/example/protocol/openid-connect/userinfo
# role_attribute_path: contains(groups[*], '/admin') && 'Admin'

icinga2_web_grafana_datasources: []
# Grafana datasources
# icinga2_web_grafana_datasources:
# # <string, required> Sets the name you use to refer to
# # the data source in panels and queries.
# - name: Graphite
# type: graphite
# access: proxy
# orgId: 1
# url: http://localhost:8080

icinga2_web_grafana_dashboards: []
# Grafana dashboard JSON URLs, will be downloaded
# icinga2_web_grafana_dashboards:
# - https://grafana.com/api/dashboards/56/revisions/3/download

icinga2_web_graphite_url: ''
icinga2_web_graphite_insecure: 0
1 change: 0 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Icinga2_web reload icinga2
ansible.builtin.service:
name: icinga2
Expand Down
25 changes: 13 additions & 12 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
---

dependencies:
- name: 'adfinis.icinga2_agent'
- name: adfinis.icinga2_agent

galaxy_info:
role_name: 'icinga2_web'
role_name: icinga2_web
namespace: adfinis
author: 'Adfinis AG'
description: 'This role installs and configures icingaweb2'
company: 'Adfinis AG'
license: 'GNU General Public License v3'
min_ansible_version: '2.6.0'
author: Adfinis AG
description: This role installs and configures icingaweb2
company: Adfinis AG
license: GNU General Public License v3
min_ansible_version: 2.6.0
platforms:
- name: EL
- name: Debian
versions:
- "7"
- bullseye
- bookworm
galaxy_tags:
- 'icinga2'
- 'monitoring'
- 'icingaweb2'
- icinga2
- monitoring
- icingaweb2
github_branch: master

collections:
Expand Down
Loading

0 comments on commit 30e0891

Please sign in to comment.