Add statsd_prefix to launcher.pp

Expose the ability to override our statsd_prefix, which defaults to
none.

Change-Id: I8bef6aae5a566ff3a34e816ece14f9cfc1ef289d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-03-10 10:49:57 -05:00
parent c283f5975e
commit 8d91d91108
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#
class nodepool::launcher(
$statsd_host = undef,
$statsd_prefix = undef,
$nodepool_ssh_public_key = undef,
$launcher_logging_conf_template = 'nodepool/nodepool-launcher.logging.conf.erb',
) {

View File

@ -2,4 +2,7 @@
export STATSD_HOST=<%= @statsd_host %>
export STATSD_PORT=8125
<% end -%>
<% if @statsd_prefix != nil && @statsd_prefix != "" -%>
export STATSD_PREFIX=<%= @statsd_prefix %>
<% end -%>
DAEMON_ARGS="-c /etc/nodepool/nodepool.yaml -l /etc/nodepool/launcher-logging.conf"