Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #11685] Permit templates to define "cumulative" properties instead of overwriting them #217

Closed
icinga-migration opened this issue Apr 27, 2016 · 1 comment

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11685

Created by greatexpectations on 2016-04-27 08:36:44 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-04-27 08:36:44 +00:00 (in Redmine)


Hello,

basically I am looking for a way to to something like this

template Host "template-A" {
    groups += [ "Hostgroup-A" ]
}

template Host "template-B" {
    groups += [ "Hostgroup-B" ]
}

object Host "MyHost" {
    import "template-A"
    import "template-B"
}

with the expected result of MyHost being assigned to both hostgroups. Right now this does not work in Director; the last imported template will simply overwrite the values defined in previously imported templates.

It would be nice to be able to specify whether a given property should be "cumulative" (e.g. use operator += for lists or dictionaries) or "explicit" (overwriting any previously assigned values).

Kind regards

@Thomas-Gelf
Copy link
Contributor

This duplicates #344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants