Finish puppeting accessbot

Change-Id: I329545d815cbacf717aa86a4d140290419be9810
This commit is contained in:
Jeremy Stanley 2014-04-09 20:56:36 +00:00
parent 0c7e837ee5
commit a0b87c5569
1 changed files with 11 additions and 3 deletions

View File

@ -20,9 +20,18 @@ class accessbot(
ensure => present,
}
# A lot of things need yaml, be conservative requiring this package to avoid
# conflicts with other modules.
if ! defined(Package['python-yaml']) {
package { 'python-yaml':
ensure => present,
}
}
exec { 'run_accessbot' :
command => '/usr/local/bin/accessbot -c /etc/accessbot/accessbot.config -l /etc/accessbot/channels.yaml >> /var/log/accessbot/accessbot.log 2>&1',
path => '/usr/local/bin:/usr/bin:/bin/',
user => 'accessbot',
refreshonly => true,
subscribe => File['/etc/accessbot/channels.yaml'],
require => [File['/etc/accessbot/channels.yaml'],
@ -65,10 +74,9 @@ class accessbot(
file { '/usr/local/bin/accessbot':
ensure => present,
source => 'puppet:///modules/accessbot/accessbot.py',
group => 'accessbot',
mode => '0440',
mode => '0555',
owner => 'root',
group => 'root',
replace => true,
require => User['accessbot'],
}
}