5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'modules/pyrra/manifests/filesystem/config.pp', line 5
define pyrra::filesystem::config (
Wmflib::Ensure $ensure = 'present',
Optional[String] $source = undef,
Optional[String] $content = undef,
Stdlib::Unixpath $config_dir = '/etc/pyrra/config',
) {
include pyrra::filesystem
# The pyrra config includes glob $rules_dir/*.yaml, so require a .yaml file extension
if $title !~ '.yaml$' {
fail("Title(${title}): pyrra filesystem configs must have a .yaml file extention")
}
file { "${config_dir}/${title}":
ensure => $ensure,
mode => '0444',
owner => 'root',
source => $source,
content => $content,
notify => Service['pyrra-filesystem']
}
}
|