Parent Directory | Revision Log
add a untested module for ii
1 | misc | 2251 | 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 | } |
Name | Value |
---|---|
svn:keywords | "ID Date Rev" |
ViewVC Help | |
Powered by ViewVC 1.1.30 |