voxpupuli / puppet-icinga2

Puppet module to manage Icinga 2
https://forge.puppet.com/icinga/icinga2
Apache License 2.0
61 stars 94 forks source link

fix wrong name o f attribute ssl_enable for influxdb2 #719

Closed Scnaeg closed 1 year ago

Scnaeg commented 1 year ago

Otherwise Icinga2 will fail to start:

root@blablabl:~# systemctl status icinga2
× icinga2.service - Icinga host/service/network monitoring system
     Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/icinga2.service.d
             └─limits.conf
     Active: failed (Result: exit-code) since Thu 2023-01-12 08:03:02 UTC; 30s ago
    Process: 2153039 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 (code=exited, status=0/SUCCESS)
    Process: 2153044 ExecStart=/usr/sbin/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG} (code=exited, status=1/FAILURE)
  Main PID: 2153044 (code=exited, status=1/FAILURE)
     Status: "Config validation failed."
        CPU: 128ms

Jan 12 08:03:02 blablabl icinga2[2153086]: /etc/icinga2/features-enabled/influxdb2.conf(23):   enable_send_metadata = true
Jan 12 08:03:02 blablabl icinga2[2153086]: /etc/icinga2/features-enabled/influxdb2.conf(24):   enable_ssl = true
Jan 12 08:03:02 blablabl icinga2[2153086]:                                                     ^^^^^^^^^^^^^^^^^
Jan 12 08:03:02 blablabl icinga2[2153086]: /etc/icinga2/features-enabled/influxdb2.conf(25):   ssl_ca_cert = "/etc/ssl/certs/ca.cer"
Jan 12 08:03:02 blablabl icinga2[2153086]: /etc/icinga2/features-enabled/influxdb2.conf(26):   ssl_cert = "/etc/ssl/certs/blablabl.full.cer"
Jan 12 08:03:02 blablabl icinga2[2153086]: [2023-01-12 08:03:02 +0000] critical/config: 1 error
Jan 12 08:03:02 blablabl icinga2[2153086]: [2023-01-12 08:03:02 +0000] critical/cli: Config validation failed. Re-run with 'icinga2 daemon -C' after fixing the config.
Jan 12 08:03:02 blablabl systemd[1]: icinga2.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 08:03:02 blablabl systemd[1]: icinga2.service: Failed with result 'exit-code'.
Jan 12 08:03:02 blablabl systemd[1]: Failed to start Icinga host/service/network monitoring system.
cla-bot[bot] commented 1 year ago

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @Scnaeg

- If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please [contact us](https://icinga.com/company/contact/) if you think this is the case. - If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.