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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2259 - (hide annotations) (download)
Sun Jan 15 11:15:06 2012 UTC (12 years, 4 months ago) by misc
File size: 665 byte(s)
fix the module
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 misc 2259 notify => Exec["join channel"],
22 misc 2251 }
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