/[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 2261 - (show annotations) (download)
Sun Jan 15 11:30:36 2012 UTC (12 years, 1 month ago) by misc
File size: 713 byte(s)
detach ii from terminal
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 'nohup ii -n $nick -i /var/lib/ii/$nick -s $server'",
21 notify => Exec["join channel"],
22 require => Class['ii::base'],
23 }
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