Finish puppeting accessbot
Change-Id: I329545d815cbacf717aa86a4d140290419be9810
This commit is contained in:
parent
0c7e837ee5
commit
a0b87c5569
@ -20,9 +20,18 @@ class accessbot(
|
|||||||
ensure => present,
|
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' :
|
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',
|
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/',
|
path => '/usr/local/bin:/usr/bin:/bin/',
|
||||||
|
user => 'accessbot',
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
subscribe => File['/etc/accessbot/channels.yaml'],
|
subscribe => File['/etc/accessbot/channels.yaml'],
|
||||||
require => [File['/etc/accessbot/channels.yaml'],
|
require => [File['/etc/accessbot/channels.yaml'],
|
||||||
@ -65,10 +74,9 @@ class accessbot(
|
|||||||
file { '/usr/local/bin/accessbot':
|
file { '/usr/local/bin/accessbot':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => 'puppet:///modules/accessbot/accessbot.py',
|
source => 'puppet:///modules/accessbot/accessbot.py',
|
||||||
group => 'accessbot',
|
mode => '0555',
|
||||||
mode => '0440',
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
replace => true,
|
replace => true,
|
||||||
require => User['accessbot'],
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user