From dfe5773a01e5eac2eaa0c79b3169ad7ebbe259d6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 28 Jan 2012 15:16:46 -0200 Subject: Compiling --- manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 3e50670..7e4e4d4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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, -- cgit v1.2.3