Skip to content

Enhancements to slack engine and wtmp beacon - #48532

Merged
rallytime merged 6 commits into
saltstack:developfrom
terminalmage:chipy
Jul 13, 2018
Merged

rallytime merged 6 commits into
saltstack:developfrom
terminalmage:chipy

Conversation

@terminalmage

Copy link
Copy Markdown
Contributor

For the slack engine, the reuturn from commands spawned using the engine is now formatted using the engine specified in the raw return. Previously this would use the highstate outputter for all functions from the state module, and the yaml outputter for everything else.

For the wtmp beacon, the following was added:

  • action key added to the event data (either "login" or "logout")
  • Configurable ut_type to distinguish login and logout events (because hey, why the hell not)
  • Use of __context__ to store user attached to a given tty so that we can report the user that logged out.

Additionally, the wtmp and btmp beacon docs have been modified to include a reactor use case for using the events that are fired by the beacons.

This adds the following functionality:

- `action` key added to the event data (either "login" or "logout")
- Configurable ut_type to distinguish login and logout events (because
  hey, why the hell not)
- Use of `__context__` to store user attached to a given tty so that we
  can report the user that logged out.
This uses the outputter from the raw return dict instead of hard-coding
the highstate outputter for the state module and using yaml for
everything else.
@cachedout

Copy link
Copy Markdown
Contributor

Changelog docs?

@terminalmage

Copy link
Copy Markdown
Contributor Author

Added.

@rallytime rallytime left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one picky comment, but it's not a big deal. Only something I noticed.

Comment thread doc/topics/releases/fluorine.rst Outdated
Enhancements to :py:mod:`wtmp <salt.beacons.wtmp>` Beacon
=========================================================

A new key, `action`, has been added to the events fired by this beacon, which

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double backticks for code demarcation? :)

There's some other examples below that also need double backticks instead of single.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I have been writing a lot of markdown this week and my head was still in that mode. 😄

@rallytime
rallytime merged commit f0fc854 into saltstack:develop Jul 13, 2018
@terminalmage
terminalmage deleted the chipy branch February 13, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants