From 3e84a392aa6845513e9ca4382a8dc6b264c476a8 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 27 Jul 2016 13:56:55 -0400 Subject: [PATCH] Add auth config to germqtt The next release of germqtt supports setting auth on the mqtt publish commands. We don't want to configure germqtt to send authorized events. This commit adds the fields to configure germqtt to handle this. Change-Id: I24a0cdb6a41f6e440db8e68216b19ca61b4cba31 --- manifests/server.pp | 2 ++ templates/germqtt.conf.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/manifests/server.pp b/manifests/server.pp index 814b85d..ab5e6b1 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -24,6 +24,8 @@ class germqtt::server ( $mqtt_hostname = 'firehose01.openstack.org', $topic = 'gerrit', $pid_file = '/var/run/germqtt.pid', + $mqtt_username = 'infra', + $mqtt_password, ) { file { '/etc/germqtt.conf': ensure => present, diff --git a/templates/germqtt.conf.erb b/templates/germqtt.conf.erb index 760ce0b..fa7b3cb 100644 --- a/templates/germqtt.conf.erb +++ b/templates/germqtt.conf.erb @@ -9,3 +9,5 @@ key = <%= @gerrit_key %> [mqtt] hostname = <%= @mqtt_hostname %> topic = <%= @topic %> +username = <%= @mqtt_username %> +password = <%= @mqtt_password %>