Skip to content

Commit

Permalink
Icinga2 set ICINGA_DISABLE_CONFD env variable (#14)
Browse files Browse the repository at this point in the history
* icinga2 set ICINGA_DISABLE_CONFD env variable

* added missing disable_confd value to parent chart
  • Loading branch information
CanisLupusLupus authored Jul 11, 2023
1 parent 85269d8 commit 71b78a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/icinga-stack/charts/icinga2/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ICINGA_DISABLE_CONFD
value: {{ .Values.config.disable_confd | int | quote }}
ports:
- name: api
containerPort: {{ .Values.service.port }}
Expand Down Expand Up @@ -62,6 +65,8 @@ spec:
value: {{ .Values.config.node_name | quote }}
- name: ICINGA_MASTER
value: "1"
- name: ICINGA_DISABLE_CONFD
value: {{ .Values.config.disable_confd | int | quote }}
volumeMounts:
- name: data
mountPath: /data
Expand Down
1 change: 1 addition & 0 deletions charts/icinga-stack/charts/icinga2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config:
node_name: icinga2-master
zone_name: master
ticket_salt: # Add a random (long!) string here
disable_confd: true

features:
# The features are configured as described in the official documentation
Expand Down
1 change: 1 addition & 0 deletions charts/icinga-stack/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ These values are used by the Icinga2 sub-chart. For configuration of Icinga2's d
| `icinga2.ingress.tls[].secretName` | Secret name of the Icinga2 ingress | `string` | **not set** |
| `icinga2.config.node_name` | Name of the Icinga2 node | `string` | `icinga2-master` |
| `icinga2.config.zone_name` | Name of the Icinga2 zone | `string` | `master` |
| `icinga2.config.disable_confd` | Disables the `include_recursive "conf.d"` directive in icinga2.conf | `boolean` | `true` |
| `icinga2.config.ticket_salt` | Salt used to generate API tickets for satellites and agents | `string` | **not set** |
| `icinga2.features.<feature>.enabled` | Whether or not the respective feature should be enabled | `boolean` | **varies** |
| `icinga2.persistence.enabled` | Whether or not the Icinga2 deployment should use a persistent volume | `boolean` | `false` |
Expand Down
1 change: 1 addition & 0 deletions charts/icinga-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ icinga2:
node_name: icinga2-master
zone_name: master
ticket_salt: # Add a random (long!) string here
disable_confd: true

features:
# The features are configured as described in the official documentation
Expand Down

0 comments on commit 71b78a0

Please sign in to comment.