Puppet Function: profile::postfix::mx_inbound_hosts
- Defined in:
- modules/profile/functions/postfix/mx_inbound_hosts.pp
- Function type:
- Puppet Language
Overview
SPDX-License-Identifier: Apache-2.0
Returns an array of hosts which are tagged with mx_in, which indicates they send inbound mail
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/profile/functions/postfix/mx_inbound_hosts.pp', line 5
function profile::postfix::mx_inbound_hosts() >> Array[Stdlib::Fqdn] {
$pql =
@(PQL)
nodes[certname] {
resources {
type = 'Class' and
tag = 'mx_in'
}
}
| PQL
wmflib::puppetdb_query($pql).map |$node| {
$node['certname']
}.sort
}
|