Commit Graph

4 Commits

Author SHA1 Message Date
Jeremy Stanley 477b6093e0 Sanitize ansible results in mqtt callback plugin
According to https://github.com/ansible/ansible/issues/22505 the raw
raw results returned should be sanitized with the
CallbackBase._dump_results() method to ensure sensitive strings such
as those flagged by no_log are elided.

Change-Id: Iaebba820ffcb8628cf1e2373546e51ffc02deed6
2017-04-29 15:07:02 +00:00
Matthew Treinish 1ef6088bb6
Make playbook and task in topic singular
The topic names need to be consistent between event types to ensure
people can properly use wildcards to filter the messages on just the
things they care about. However playbook and task were inconsistent in
topics from between different methods in the callback plugin. This
commit fixes that by making sure we always use 'playbook' and 'task',
not 'playbooks' or 'tasks'.

Change-Id: I3e6240560ad562e8f41f7e314ef7a4b0b1178e32
2017-04-28 20:18:56 -04:00
Matthew Treinish 2bf2adb271
Cast the playbook uuid as a string
This commit fixes a missing cast for the playbook uuid so we can use it
in the topc. Without this we get a type error and nothing works.

Change-Id: Ib3a814bc93d9685d9b735a462c6ed56ad4370cfb
2017-04-28 19:31:33 -04:00
Matthew Treinish 3a8869a0f6
Enable ansible callback events on firehose
This commit adds the mqtt ansible callback plugin to the puppetmaster
config so that whenever we run ansible we'll emit events to the
firehose for that.

Change-Id: Id5f10705687c5bb9854d386efd7fed486172f745
2017-04-26 16:03:23 -04:00