Puppet Function: mediawiki::state
- Defined in:
- modules/mediawiki/functions/state.pp
- Function type:
- Puppet Language
Overview
9 10 11 12 13 14 15 |
# File 'modules/mediawiki/functions/state.pp', line 9
function mediawiki::state(String $key) >> Variant[Hash, String] {
$data = loadyaml('/etc/conftool-state/mediawiki.yaml')
unless has_key($data, $key) {
fail("Could not find key ${key} in the mediawiki state file")
}
$data[$key]
}
|