mode => 0640,
content => template('qwebirc/config.py.erb'),
require => Vcsrepo['/var/lib/qwebirc'],
- notify => Service['qwebirc'],
}
- # TODO: should run after every config change
exec { '/var/lib/qwebirc/compile.py':
cwd => '/var/lib/qwebirc',
creates => '/var/lib/qwebirc/.compiled',
notify => Service['qwebirc'],
}
+ exec { '/bin/rm -r /var/lib/qwebirc/.compiled':
+ user => 'qwebirc',
+ group => 'qwebirc',
+ subscribe => File['/var/lib/qwebirc/config.py'],
+ refreshonly => true,
+ }
+
# TODO: check why status is not working
service { 'qwebirc':
enable => true,