summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: b4b97fc6e92a090522a66a97f63168150253d684 (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
class supybot {
  class { 'supervisor': }

  package { [ 'supybot', 'python-twisted', 'darcs' ]:
    ensure => present,
  }

  group { "supybot":
    ensure    => present,
    allowdupe => false,
  }

  user { "supybot":
    ensure    => present,
    allowdupe => false,
    shell     => '/bin/bash',
    gid       => 'supybot',
    home      => '/var/lib/supybot',
    require   => Group['supybot'],
  }

  file { '/var/lib/supybot':
    ensure => directory,
    owner    => 'supybot',
    group    => 'supybot',
    mode     => '0750',
    require  => User['supybot'],
  }

  supervisor::app { 'supybot':
    source => [ 'puppet:///modules/site_supybot/conf.d/supybot.conf',
                'puppet:///modules/supybot/conf.d/supybot.conf' ],
  }

  file { '/etc/logrotate.d/supybot':
    ensure  => present,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    source  => 'puppet:///modules/supybot/logrotate.d/supybot',
  }
}