-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from salt-extensions/release/100
- Loading branch information
Showing
12 changed files
with
87 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
(mattermost-setup)= | ||
# Configuration | ||
## Execution and runner modules | ||
These modules can be used by either passing an `api_url` and `hook` | ||
directly or by specifying both in a configuration profile in the Salt | ||
master/minion config. For example: | ||
|
||
```yaml | ||
mattermost: | ||
hook: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 | ||
api_url: https://example.com | ||
``` | ||
## Returner | ||
To use the returner, the above configuration values are required | ||
to be set in the minion configuration file. Additionally, `username` | ||
and `channel` can optionally be configured. | ||
|
||
As with all returners, you can specify the values either as | ||
a nested or a flattened dict: | ||
|
||
:::{tab} nested | ||
|
||
```yaml | ||
mattermost: | ||
hook: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 | ||
api_url: https://example.com | ||
username: foo | ||
channel: bar | ||
``` | ||
::: | ||
|
||
:::{tab} flattened | ||
```yaml | ||
mattermost.hook: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 | ||
mattermost.api_url: https://example.com | ||
mattermost.username: foo | ||
mattermost.channel: bar | ||
``` | ||
::: | ||
|
||
### Alternative profile | ||
When invoking the returner, you can request to use an alternative profile name. | ||
Any values not found in the alternative configuration will be pulled from | ||
the default location. | ||
|
||
```yaml | ||
mattermost_alternative: | ||
api_url: https://example.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
""" | ||
Execution Module Directory | ||
""" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
""" | ||
Runners Directory | ||
""" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
""" | ||
Some of the utils used by salt | ||
PLEASE DO NOT ADD ANY NEW FUNCTIONS TO THIS FILE. | ||
New functions should be organized in other files under salt/utils/. Please | ||
consult the dev team if you are unsure where a new function should go. | ||
""" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters