You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
408B

  1. {%- from 'icinga2/map.jinja' import icinga2 with context -%}
  2. {% set fqdn = salt.grains.get('fqdn') -%}
  3. object ApiListener "api" {
  4. cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
  5. key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
  6. ca_path = SysconfDir + "/icinga2/pki/ca.crt"
  7. {% if fqdn != icinga2.master_fqdn -%}
  8. accept_config = true
  9. accept_commands = true
  10. {% endif -%}
  11. }