/[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 2261 - (hide annotations) (download)
Sun Jan 15 11:30:36 2012 UTC (12 years, 3 months ago) by misc
File size: 713 byte(s)
detach ii from terminal
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 misc 2261 start => "su nobody -c 'nohup ii -n $nick -i /var/lib/ii/$nick -s $server'",
21 misc 2259 notify => Exec["join channel"],
22 misc 2260 require => Class['ii::base'],
23 misc 2251 }
24    
25     exec { "join channel":
26     command => "echo '/j $channel' > /var/lib/ii/$nick/$server/in",
27     user => nobody,
28     refreshonly => true,
29     }
30     }
31     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30