Allow elastic-recheck daemon args to be specified
For example, allow passing in --noirc or --nocomment. Change-Id: I90d3e3bf9dfce70b2de379edee4acfbb68f2ec09
This commit is contained in:
parent
4677af4140
commit
f8b1c57f9a
@ -26,6 +26,7 @@ class elastic_recheck::bot (
|
||||
$recheck_bot_nick,
|
||||
$elastic_search_url = 'http://logstash.openstack.org/elasticsearch',
|
||||
$subunit2sql_db_uri = 'mysql+pymysql://query:query@logstash.openstack.org/subunit2sql',
|
||||
$daemon_args = undef,
|
||||
) {
|
||||
include ::elastic_recheck
|
||||
|
||||
@ -88,11 +89,11 @@ class elastic_recheck::bot (
|
||||
}
|
||||
|
||||
file { '/etc/init.d/elastic-recheck':
|
||||
ensure => present,
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
source => 'puppet:///modules/elastic_recheck/elastic-recheck.init',
|
||||
ensure => present,
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
content => template('elastic_recheck/elastic-recheck.init.erb'),
|
||||
}
|
||||
|
||||
service { 'elastic-recheck':
|
||||
|
@ -18,7 +18,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Elastic Recheck"
|
||||
NAME=elastic-recheck
|
||||
DAEMON=/usr/local/bin/$NAME
|
||||
DAEMON_ARGS=/etc/$NAME/$NAME.conf
|
||||
DAEMON_ARGS="<%= @daemon_args %> /etc/$NAME/$NAME.conf"
|
||||
PIDFILE=/var/run/$NAME/$NAME.pid
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
USER=recheck
|
Loading…
x
Reference in New Issue
Block a user