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' ],
}
}
|