summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 2663dea833e2fce96a7f0411e8edab67a3e32106 (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
class rss_filter {

  # 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",
  }

  service { 'rss-filter.timer':
    ensure => running,
    enable => true,
  }
}