forked from voxpupuli/puppet-icinga2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix voxpupuli#234 add a commont that this example is only for puppet 4
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NOTICE: This example is for Puppet 4 only. | ||
|
||
The following syntax that's used in profile::icinga2::agent and profile::icinga2::slave is for Puppet 4. | ||
``` | ||
@@::icinga2::object::host { $::fqdn: | ||
* => merge({ | ||
display_name => $::hostname, | ||
address => $agent_ip, | ||
target => "/etc/icinga2/zones.d/${parent_zone}/${::hostname}.conf", | ||
}, hiera_hash(icinga2::host)), | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters