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 #7319] Documentation: Add support for locally-scoped variables for host/service in applied Dependency #2024

Closed
icinga-migration opened this issue Sep 28, 2014 · 6 comments
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/7319

Created by stbuehler on 2014-09-28 19:44:33 00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-11-08 18:20:03 00:00)
Target Version: 2.2.0
Last Update: 2014-11-08 18:20:03 00:00 (in Redmine)


Intended usage:

template Host "generic-vm" {
    import "generic-host"
}

apply Dependency "vm-host" to Host {
    parent_host_name = host.vars.vm_parent
    assign where "generic-vm" in host.templates
}

object Host "master.example.com" {
    import "generic-host"
}

template Host "generic-vm-example.com" {
    import "generic-vm"
    vars.vm_parent = "master.example.com"
}

object Host "www.example.com" {
    import "generic-vm-master.example.com"
}

Changesets

2014-11-08 18:15:42 00:00 by mfriedrich 020bd06

Documentation: Add dependency example for setting locally scoped variables

fixes #7319

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-09-28 20:00:10 00:00

  • Subject changed from support locally-scoped variable for parent_host_name in applied Dependency to Add support for locally-scoped variables for host/service in applied Dependency

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-10-11 17:09:09 00:00

A similar request to setting object attributes based on other object's attributes or custom attributes.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-11-01 14:49:35 00:00

  • Duplicates set to 7479

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-11-01 14:49:57 00:00

  • Status changed from New to Closed

Fixed in #7479.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-11-08 17:59:24 00:00

  • Subject changed from Add support for locally-scoped variables for host/service in applied Dependency to Documentation: Add support for locally-scoped variables for host/service in applied Dependency
  • Category set to Documentation
  • Status changed from Closed to Assigned
  • Assigned to set to mfriedrich
  • Target Version set to 2.2.0

Using this issue for updating the documentation with your provided example. That one makes the dependencies in Icinga 2 even more usable with vmware, cloud providers, etc

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-11-08 18:20:03 00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 020bd06.

@icinga-migration icinga-migration added enhancement New feature or request area/documentation End-user or developer help labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.0 milestone Jan 17, 2017
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

No branches or pull requests

1 participant