summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: cffa2ef450dc04112e7c5a8eae8efe0dda40f5c5 (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
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' ],
  }
}