/[adm]/puppet/modules/ii/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/ii/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2251 - (show annotations) (download)
Sun Jan 15 10:11:51 2012 UTC (12 years, 3 months ago) by misc
File size: 659 byte(s)
add a untested module for ii
1 class ii {
2 class base {
3 package { "ii": }
4
5 file { "/var/lib/ii/":
6 ensure => directory,
7 owner => nobody,
8 }
9 }
10
11 define bot($server = 'irc.freenode.net',
12 $channel) {
13
14 $nick = $name
15
16 include ii::base
17
18 service { 'ii':
19 provider => base,
20 start => "su nobody -c 'ii -n $nick -i /var/lib/ii/$nick -s $server'",
21 notify => "join channel",
22 }
23
24 exec { "join channel":
25 command => "echo '/j $channel' > /var/lib/ii/$nick/$server/in",
26 user => nobody,
27 refreshonly => true,
28 }
29 }
30 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30