Allow elastic-recheck daemon args to be specified

For example, allow passing in --noirc or --nocomment.

Change-Id: I90d3e3bf9dfce70b2de379edee4acfbb68f2ec09
This commit is contained in:
Ramy Asselin 2015-10-16 18:29:26 +00:00
parent 4677af4140
commit f8b1c57f9a
2 changed files with 7 additions and 6 deletions

View File

@ -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':

View File

@ -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