The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
Create a service template generic-service-template.
Create and add the following custom properties of data type string to generic-service-template.
service_var_a
service_var_b
Create a service service-a importing template generic-service-template for host generic-host-template.
Set the values of custom properties as below.
service_var_a: service-value-a
service_var_b: service-value-b
Create a host template child-host-template importing generic-host-template.
Override the value of service_var_a of the inherited service service-a of child-host-template to host-template-value-a.
Create a host host-a importing child-host-template.
Override the value of service_var_b of the inherited service service-a of host-a to host-value-b.
Deploy your changes.
The values of custom properties of the deployed service service-a for host-a will be as following:
service_var_a: service-value-aservice_var_b: host-value-b
The value of service_var_a which was overridden in the inherited service service-a of host template child-host-template is lost.
To Reproduce
generic-host-template
.generic-service-template
.generic-service-template
.service_var_a
service_var_b
service-a
importing templategeneric-service-template
for hostgeneric-host-template
.service_var_a
:service-value-a
service_var_b
:service-value-b
child-host-template
importinggeneric-host-template
.service_var_a
of the inherited serviceservice-a
ofchild-host-template
tohost-template-value-a
.host-a
importingchild-host-template
.service_var_b
of the inherited serviceservice-a
ofhost-a
tohost-value-b
.service-a
forhost-a
will be as following:service_var_a
:service-value-a
service_var_b
:host-value-b
The value of
service_var_a
which was overridden in the inherited serviceservice-a
of host templatechild-host-template
is lost.This has been depicted in the diagrams below.
Director Configuration
Actual deployed service for
host-a
Expected deployed service for
host-a
refer: ref/IP/51840