change delemiter from . to __
All checks were successful
build container icingaweb2 / build (push) Successful in 4m18s
All checks were successful
build container icingaweb2 / build (push) Successful in 4m18s
This commit is contained in:
77
README.md
77
README.md
@@ -52,7 +52,9 @@ prefix | module | file | ref
|
||||
ICINGAWEB2_ICINGADB_CONF | icingadb | /etc/icingaweb2/modules/icingadb/config.ini | [General Configuration](https://icinga.com/docs/icinga-db-web/latest/doc/03-Configuration/#general-configuration)
|
||||
ICINGAWEB2_ICINGADB_REDIS | icingadb | /etc/icingaweb2/modules/icingadb/redis.ini | [Redis® Configuration](https://icinga.com/docs/icinga-db-web/latest/doc/03-Configuration/#redis-configuration)
|
||||
ICINGAWEB2_ICINGADB_API | icingadb | /etc/icingaweb2/modules/icingadb/commandtransports.ini | [Command Transport Configuration](https://icinga.com/docs/icinga-db-web/latest/doc/03-Configuration/#command-transport-configuration)
|
||||
|
||||
ICINGAWEB2_GRAFANA_CONF | grafana | /etc/icingaweb2/modules/grafana/config.ini | [General Configuration](https://github.com/NETWAYS/icingaweb2-module-grafana/blob/main/doc/03-module-configuration.md)
|
||||
ICINGAWEB2_GRAFANA_AUTH | grafana | /etc/icingaweb2/modules/grafana/grafana.ini | [Grafana Preparations](https://github.com/NETWAYS/icingaweb2-module-grafana/blob/main/doc/02-installation.md)
|
||||
ICINGAWEB2_GRAFANA_GRAPH | grafana | /etc/icingaweb2/modules/grafana/graphs.ini | [Graph Configuration](https://github.com/NETWAYS/icingaweb2-module-grafana/blob/main/doc/04-graph-configuration.md)
|
||||
---
|
||||
|
||||
### static vars
|
||||
@@ -79,49 +81,50 @@ services:
|
||||
image: git.ao-it.net/docker/icingaweb2
|
||||
environment:
|
||||
- ICINGAWEB2_CONF_ONCE=true
|
||||
- ICINGAWEB2_CONF.logging.log=php
|
||||
- ICINGAWEB2_CONF.logging.level=ERROR
|
||||
- ICINGAWEB2_CONF.logging.application=icingaweb2
|
||||
- ICINGAWEB2_CONF.global.config_backend=db
|
||||
- ICINGAWEB2_CONF.global.config_resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.type=db
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.db=mysql
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.host=${ICINGAWEB_DB_HOST:-db_icingaweb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.dbname=${ICINGAWEB_DB:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.username=${ICINGAWEB_DB_USER:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.password=${ICINGAWEB_DB_PASS:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}.charset=utf8mb4
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.type=db
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.db=mysql
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.host=${ICINGA_DB_HOST:-db_icinga}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.dbname=${ICINGA_DB:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.username=${ICINGA_DB_USER:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.password=${ICINGA_DB_PASS:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES.${ICINGAWDB_RESOURCE_NAME:-icingadb}.charset=utf8mb4
|
||||
- ICINGAWEB2_AUTH.icingaweb2.backend=db
|
||||
- ICINGAWEB2_AUTH.icingaweb2.resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_GROUPS.icingaweb2.backend=db
|
||||
- ICINGAWEB2_GROUPS.icingaweb2.resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_ROLES.${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}.groups=${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}
|
||||
- ICINGAWEB2_ROLES.${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}.permissions="*"
|
||||
- ICINGAWEB2_ROLES.${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}.users=${ICINGAWEB_DEFAULT_ADMIN_USER:-icingaadmin}
|
||||
- ICINGAWEB2_ICINGADB_CONF.icingadb.resource=icingadb
|
||||
- ICINGAWEB2_ICINGADB_REDIS.redis1.host=redis
|
||||
- ICINGAWEB2_ICINGADB_REDIS.redis1.port=6379
|
||||
- ICINGAWEB2_ICINGADB_API.icinga2.transport=api
|
||||
- ICINGAWEB2_ICINGADB_API.icinga2.host=icinga2
|
||||
- ICINGAWEB2_ICINGADB_API.icinga2.port=5665
|
||||
- ICINGAWEB2_ICINGADB_API.icinga2.username=icingaweb
|
||||
- ICINGAWEB2_ICINGADB_API.icinga2.password=icingaweb
|
||||
- ICINGAWEB2_CONF__logging__log=php
|
||||
- ICINGAWEB2_CONF__logging__level=ERROR
|
||||
- ICINGAWEB2_CONF__logging__application=icingaweb2
|
||||
- ICINGAWEB2_CONF__global__config_backend=db
|
||||
- ICINGAWEB2_CONF__global__config_resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__type=db
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__db=mysql
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__host=${ICINGAWEB_DB_HOST:-db_icingaweb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__dbname=${ICINGAWEB_DB:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__username=${ICINGAWEB_DB_USER:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__password=${ICINGAWEB_DB_PASS:-icingaweb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}__charset=utf8mb4
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__type=db
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__db=mysql
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__host=${ICINGA_DB_HOST:-db_icinga}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__dbname=${ICINGA_DB:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__username=${ICINGA_DB_USER:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__password=${ICINGA_DB_PASS:-icingadb}
|
||||
- ICINGAWEB2_RESOURCES__${ICINGAWDB_RESOURCE_NAME:-icingadb}__charset=utf8mb4
|
||||
- ICINGAWEB2_AUTH__icingaweb2__backend=db
|
||||
- ICINGAWEB2_AUTH__icingaweb2__resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_GROUPS__icingaweb2__backend=db
|
||||
- ICINGAWEB2_GROUPS__icingaweb2__resource=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_ROLES__${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}__groups=${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}
|
||||
- ICINGAWEB2_ROLES__${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}__permissions="*"
|
||||
- ICINGAWEB2_ROLES__${ICINGAWEB_DEFAULT_ADMIN_ROLE:-Administrators}__users=${ICINGAWEB_DEFAULT_ADMIN_USER:-icingaadmin}
|
||||
- ICINGAWEB2_ICINGADB_CONF__icingadb__resource=icingadb
|
||||
- ICINGAWEB2_ICINGADB_REDIS__redis1__host=redis
|
||||
- ICINGAWEB2_ICINGADB_REDIS__redis1__port=6379
|
||||
- ICINGAWEB2_ICINGADB_API__icinga2__transport=api
|
||||
- ICINGAWEB2_ICINGADB_API__icinga2__host=icinga2
|
||||
- ICINGAWEB2_ICINGADB_API__icinga2__port=5665
|
||||
- ICINGAWEB2_ICINGADB_API__icinga2__username=icingaweb
|
||||
- ICINGAWEB2_ICINGADB_API__icinga2__password=icingaweb
|
||||
- ICINGAWEB2_DB_RESOURCE_NAME=${ICINGAWEB_DB_RESOURCE_NAME:-icingaweb_db}
|
||||
- ICINGAWEB2_DEFAULT_ADMIN_USER=${ICINGAWEB_DEFAULT_ADMIN_USER:-icingaadmin}
|
||||
- ICINGAWEB2_DEFAULT_ADMIN_PASS=${ICINGAWEB_DEFAULT_ADMIN_PASS:-icingaadmin}
|
||||
```
|
||||
|
||||
If you ask why the hell vars with `.` :
|
||||
- Underscores a bad for splitting in case of icingaweb2. Some options need them
|
||||
- Due to the dynamic translation of variables to ini files, some modules use this peculiarity.
|
||||
- currently in the module `grafana` in file `grafana.ini`
|
||||
- https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names
|
||||
- no better idea to handle this for setup script
|
||||
|
||||
|
||||
You can remove the environment var `ICINGAWEB2_CONF_ONCE` whan will changes in `compose.yml` environment deploy every time if the container starts.
|
||||
You can use this for future config changes, but this isn't tested and i am not sure i will recommend this...
|
||||
|
||||
Reference in New Issue
Block a user