Puppet Function: wmflib::puppetdb_query

Defined in:
modules/wmflib/functions/puppetdb_query.pp
Function type:
Puppet Language

Overview

wmflib::puppetdb_query(String[1] $query)Array[Hash]

SPDX-License-Identifier: Apache-2.0

Parameters:

Returns:

  • (Array[Hash])


2
3
4
5
6
7
8
9
10
11
# File 'modules/wmflib/functions/puppetdb_query.pp', line 2

function wmflib::puppetdb_query (
    String[1] $query,
) >> Array[Hash] {
    if wmflib::have_puppetdb() {
        puppetdb_query($query)
    } else {
        warning('puppetdb_query function not usable, returning an empty array')
        Array({})
    }
}