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:
		@@ -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',
 | 
			
		||||
) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user