blob: 720feea9fa78b28a473b4fbe3e2996702debbca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
class rss_filter (
Enum['enabled', 'disabled'] $enabled = 'enabled',
) {
# Once I get it into the repos
# ensure_packages(['rss-filter'])
systemd::unit_file { 'rss-filter.service':
source => "puppet:///modules/${module_name}/rss-filter.service",
}
systemd::unit_file { 'rss-filter.timer':
source => "puppet:///modules/${module_name}/rss-filter.timer",
}
file { '/etc/rss-filter':
ensure => directory,
}
file { '/etc/rss-filter/environment':
ensure => file,
content => "OUTDIR=/var/www/adrift.space/rss\n",
}
file { '/etc/rss-filter/config.scm':
ensure => file,
source => "puppet:///modules/${module_name}/config.scm",
}
case $enabled {
'enabled': {
service { 'rss-filter.timer':
ensure => running,
enable => true,
}
}
'disabled': {
service { 'rss-filter.timer':
ensure => stopped,
enable => false,
}
}
}
}
|