Icinga / puppet-icinga2-legacy

(legacy) Puppet module for Icinga 2 (EOL)
GNU General Public License v2.0
55 stars 93 forks source link

How to collect zone members? #227

Open deric opened 7 years ago

deric commented 7 years ago

Just a question, would be happy to discuss this elsewhere if there's some platform for questions. Is it possible to collect all hostnames an an array and assign them to a zone?

Something like collecting all endpoints:

Icinga2::Object::Endpoint <<| |>> { }

and adding them to a zone:

  icinga2::object::zone {$::domain:
    parent    => 'master',
    endpoints => [ ], # <- array of hostnames
  }