]> gitweb.fluxo.info Git - puppet-qwebirc.git/commitdiff
Compiling
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2012 17:16:46 +0000 (15:16 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2012 17:16:46 +0000 (15:16 -0200)
manifests/init.pp

index 3e50670b1ade30a959ff83dfa68d27fba7fdd5b7..7e4e4d49747234de4544c92a6e43f39def519327 100644 (file)
@@ -60,6 +60,14 @@ class qwebirc($ircserver = 'irc.myserver.com', $ircport = '6667', $realname = 'h
     notify  => Service['qwebirc'],
   }
 
+  exec { '/var/lib/qwebirc/compile.py':
+    creates => '/var/lib/qwebirc/.compiled',
+    user    => 'qwebirc',
+    group   => 'qwebirc',
+    require => [ User['qwebirc'], Group['qwebirc'], File['/var/lib/qwebirc/qwebirc/ircclient.py'] ],
+    notify  => Service['qwebirc'],
+  }
+
   service { 'qwebirc':
     enable     => true,
     ensure     => running,