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

feat: Debian 12 support #38

Merged
merged 29 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5158d4c
fix: update name of fail2ban role
madpat1998 Jul 22, 2024
569af98
fix: remove selinux configuration for debian
madpat1998 Jul 22, 2024
aa1a9eb
fix: ensure debian works and remove old way of managing packages
madpat1998 Jul 23, 2024
481550c
add debian support
madpat1998 Jul 29, 2024
2892275
add icingadb component
madpat1998 Jul 30, 2024
132ddfd
fix wrong indent
madpat1998 Jul 30, 2024
f1c6031
correct more typos
madpat1998 Jul 30, 2024
3bafc15
more fixing
madpat1998 Jul 30, 2024
63c1648
remove faulty symlink for pdfexport module
madpat1998 Jul 30, 2024
807c207
fix database import
madpat1998 Aug 6, 2024
d1f1290
fix problems with icingadb and director
madpat1998 Aug 9, 2024
86bb28a
fix: allow fail for kickstart check
gianklug Sep 10, 2024
8e7faa9
fix: Add proper icingacli checks for idempotency
gianklug Sep 11, 2024
701fde5
fix: fix icingadb enabled check
gianklug Sep 11, 2024
fa47586
lint: make ansible-lint happy
gianklug Sep 11, 2024
ce7be8d
fix: fix director migration check
gianklug Sep 17, 2024
85b1a23
fix: fix graphite dir permissions
gianklug Sep 18, 2024
09e7163
fix: fix typo in task
gianklug Sep 20, 2024
eec95f5
feat: add graphite config
gianklug Sep 20, 2024
8b231c0
feat: add grafana dashboard and datasource cfg
gianklug Sep 23, 2024
19d479e
fix: json filename from url hash
gianklug Sep 23, 2024
9d7d874
fix: fix template dest dir
gianklug Sep 23, 2024
2f2216b
fix: fix datasource template
gianklug Sep 23, 2024
062317f
fix: another try at jinja for datasource
gianklug Sep 23, 2024
98ba996
fix: fix jinja indents
gianklug Sep 23, 2024
ad59ea9
fix: last indent fix
gianklug Sep 23, 2024
e26c2ca
fix: fix grafana permissions
gianklug Sep 23, 2024
9311332
fix: make folder executable
gianklug Sep 23, 2024
6fac3ee
feat!: deprecate RHEL, only support debian
gianklug Sep 27, 2024
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
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
Loading