adding readme section for new define

Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/43

refs#7676: https://dev.icinga.org/issues/7676
This commit is contained in:
Steven Bambling 2014-11-13 08:32:22 -05:00 committed by Nick Chappell
parent 4b269e4b25
commit afe86ed648

View file

@ -355,6 +355,7 @@ This means that they will not be added to the rendered object definition files.
Object types: Object types:
* [icinga2::object::applyservicetohost](#icinga2objectapplyservicetohost) * [icinga2::object::applyservicetohost](#icinga2objectapplyservicetohost)
* [icinga2::object::applynotificationtohost](#icinga2objectapplynotificationtohost)
* [icinga2::object::checkcommand](#icinga2objectcheckcommand) * [icinga2::object::checkcommand](#icinga2objectcheckcommand)
* [icinga2::object::eventcommand](#icinga2objecteventcommand) * [icinga2::object::eventcommand](#icinga2objecteventcommand)
* [icinga2::object::host](#icinga2objecthost) * [icinga2::object::host](#icinga2objecthost)
@ -402,6 +403,24 @@ If you would like to use Puppet or Facter variables in an `assign_where` or `ign
assign_where => "\"linux_servers\" in host.${facter_variable}"", assign_where => "\"linux_servers\" in host.${facter_variable}"",
</pre> </pre>
####[`icinga2::object::applynotificationtohost`](id:object_apply_notification_to_host)
The `apply_notification_to_host` defined type can create `apply` objects to apply notifications to hosts:
This defined type has the same available attributes that the `icinga2::object::notification` defined type does. With the addition of assign_where and ignore_where
Create an apply that will send notifications to PagerDuty
````
icinga2::object::apply_notification_to_host { 'pagerduty-host':
assign_where => 'host.vars.enable_pagerduty == "true"',
command => 'notify-host-by-pagerduty',
users => [ 'pagerduty' ],
states => [ 'Up', 'Down' ],
types => [ 'Problem', 'Acknowledgement', 'Recovery', 'Custom' ],
period => '24x7',
}
````
####[`icinga2::object::checkcommand`](id:object_checkcommand) ####[`icinga2::object::checkcommand`](id:object_checkcommand)
The `checkcommand` defined type can create `checkcommand` objects. The `checkcommand` defined type can create `checkcommand` objects.