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 #5910] add assign where/ignore where for groups #1397

Closed
icinga-migration opened this issue Apr 1, 2014 · 8 comments
Closed

[dev.icinga.com #5910] add assign where/ignore where for groups #1397

icinga-migration opened this issue Apr 1, 2014 · 8 comments

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Apr 1, 2014

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

Created by mfriedrich on 2014-04-01 15:23:41 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-04-23 13:59:29 +00:00)
Target Version: 0.0.10
Last Update: 2014-04-23 13:59:58 +00:00 (in Redmine)


object HostGroup "keks" {
  display_name = "super keks",

  assign where host.name == "localhost"
}

Attachments

Changesets

2014-04-15 11:45:44 +00:00 by (unknown) ce393e3

Add group apply (creates object only once).

Refs #5910

2014-04-15 12:55:29 +00:00 by (unknown) 559a4fe

Add group apply (creates object only once and sets membership).

Refs #5910

2014-04-23 08:35:10 +00:00 by (unknown) da4ecff

Revert "Add group apply (creates object only once and sets membership)."

This reverts commit 559a4fef677a2075ac53e52b795a717c61fafefc.

Refs #5910

2014-04-23 12:10:49 +00:00 by (unknown) e7b0e65

Add assign/ignore for objects (group member assignment). WIP

Refs #5910

2014-04-23 12:59:48 +00:00 by (unknown) c239f84

Revert "Add group apply (creates object only once and sets membership)."

This reverts commit 559a4fef677a2075ac53e52b795a717c61fafefc.

Refs #5910

2014-04-23 13:50:00 +00:00 by (unknown) 7a147d2

Add group assign/ignore rules.

Fixes #5910

Relations:

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 6, 2014

Updated by mfriedrich on 2014-04-06 12:24:14 +00:00

  • Assigned to set to gbeutner
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 11, 2014

Updated by gbeutner on 2014-04-11 10:40:02 +00:00

IMO this should be "assign member where" and "ignore member where" to differentiate this from "apply" rules.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 11, 2014

Updated by mfriedrich on 2014-04-11 11:25:40 +00:00

+1

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 14, 2014

Updated by mfriedrich on 2014-04-14 13:56:29 +00:00

  • Assigned to changed from gbeutner to mfriedrich
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 15, 2014

Updated by mfriedrich on 2014-04-15 12:54:03 +00:00

Imho this should be written as

/* Hosts */
object Host "apply-host-address" {
  import "generic-host"

  address = "1.2.3.4"
}

object Host "apply-host-vars" {
  import "generic-host"

  vars.bumsti = "schaschlik"
}

apply HostGroup "address-group" to Host {
  display_name = "Address Group"

  assign where host.address == "1.2.3.4"
}

apply HostGroup "vars-group" to Host {
  display_name = "Vars Group"

  assign where host.vars.bumsti == "schaschlik"
}

apply HostGroup "name-group" to Host {
  display_name = "Name Group"

  assign where match("*apply*", host.name)
}
  • apply creates group object only once
  • assigns all matching members into this group
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 15, 2014

Updated by mfriedrich on 2014-04-15 12:57:24 +00:00

  • Status changed from New to Feedback
  • Done % changed from 0 to 90
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 23, 2014

Updated by Anonymous on 2014-04-23 13:59:29 +00:00

  • Status changed from Feedback to Resolved
  • Done % changed from 90 to 100

Applied in changeset 7a147d2.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 23, 2014

Updated by mfriedrich on 2014-04-23 13:59:58 +00:00

  • File added group-assign.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.