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 #9583] Add practical examples for apply expressions #3133

Closed
icinga-migration opened this issue Jul 8, 2015 · 6 comments · Fixed by #5027
Closed

[dev.icinga.com #9583] Add practical examples for apply expressions #3133

icinga-migration opened this issue Jul 8, 2015 · 6 comments · Fixed by #5027
Assignees
Labels
area/documentation End-user or developer help enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2015-07-08 10:41:08 +00:00

Assignee: (none)
Status: New
Target Version: Backlog
Last Update: 2016-11-25 14:29:40 +00:00 (in Redmine)

Backport?: Not yet backported
Include in Changelog: 1

e.g.

assign where host.vars.os in [ "a", "b", "c" ]

http://www.monitoring-portal.org/wbb/index.php?page=Thread&postID=218109#post218109
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/language-reference#expression-operators

This should be added to the advanced topics chapter where functions and conditionals are already explained in detail.

Changesets

2015-10-29 16:00:18 +00:00 by dgoetz 93488ff

Advanced usage of apply for rules:
Conditional apply based on attribute using key and value from the for loop

refs #9583
@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-07-08 10:41:41 +00:00

  • Relates set to 9443

@icinga-migration
Copy link
Author

Updated by dgoetz on 2015-10-29 16:06:36 +00:00

I have added an example for an advanced usage of apply for rules showing a conditional apply based on attribute using key and value from the for loop.

Example contains only some basic explanation. Feel free to expand or tell me what you think needs further explanation.

If have created a separate git branch for it.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-04-07 14:59:40 +00:00

  • Parent Id set to 11413

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-04-07 15:00:18 +00:00

  • Relates deleted 9443

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-25 14:29:40 +00:00

  • Parent Id deleted 11413

@icinga-migration icinga-migration added Low enhancement New feature or request area/documentation End-user or developer help labels Jan 17, 2017
@icinga-migration icinga-migration added this to the Backlog milestone Jan 17, 2017
@dnsmichi dnsmichi modified the milestones: 2.7.0, Backlog Feb 23, 2017
@dnsmichi dnsmichi self-assigned this Feb 23, 2017
@dnsmichi
Copy link
Contributor

I did rephrase the patch (during feature branch cleanup), and modified the examples for some real world functionality. Thanks 👍

dnsmichi pushed a commit that referenced this issue Feb 23, 2017
Conditional apply based on attribute using key and value from the for loop

refs #3133

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
dnsmichi added a commit that referenced this issue Feb 23, 2017
Add an advanced example for apply rules to the docs

fixes #3133
@dnsmichi dnsmichi modified the milestones: 2.6.3, 2.7.0 Mar 9, 2017
dnsmichi pushed a commit that referenced this issue Mar 9, 2017
Conditional apply based on attribute using key and value from the for loop

refs #3133

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation End-user or developer help enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants