diff options
author | Georg Pfuetzenreuter | 2023-01-21 18:53:50 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-21 18:54:58 +0100 |
commit | a42961e98235a1ed43fe85be52022723bf2eb3f8 (patch) | |
tree | ed64b5d7f51933b99c1f54d35c1b763e23ddb88d /pillar/mock | |
parent | 97db5ef6db7952d8f7da9e46559a352736d4cb4d (diff) | |
download | salt-a42961e98235a1ed43fe85be52022723bf2eb3f8.tar.gz salt-a42961e98235a1ed43fe85be52022723bf2eb3f8.tar.bz2 salt-a42961e98235a1ed43fe85be52022723bf2eb3f8.zip |
Update mocking base
- adapt preparation script to new environment
- add sample mocking pillar including README
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'pillar/mock')
-rw-r--r-- | pillar/mock/README.md | 1 | ||||
-rw-r--r-- | pillar/mock/example.sls | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pillar/mock/README.md b/pillar/mock/README.md new file mode 100644 index 0000000..2465420 --- /dev/null +++ b/pillar/mock/README.md @@ -0,0 +1 @@ +This directory contains a sample pillar which is used for mocking and testing runs - the production infrastructure will ignore it. If new pillar options are introduced, it is encouraged to add them along with sample values here. diff --git a/pillar/mock/example.sls b/pillar/mock/example.sls new file mode 100644 index 0000000..95dac0b --- /dev/null +++ b/pillar/mock/example.sls @@ -0,0 +1,41 @@ +include: + - secret.id.{{ salt['grains.get']('id').replace('.', '_') }} + +profile: + matterbridge: + instances: + libertacasa-general: + RemoteNickFormat: "{NOPINGNICK}/{LABEL}: " + IgnoreFailureOnStart: True + MessageSplit: True + MediaDownloadPath: /var/lib/matterbridge/libertacasa-general + MediaServerDownload: "https://dummy.load.casa" + accounts: + libertacasa: + protocol: irc + Nick: mocker02 + NickServNick: mocker + Server: 'irc.casa:6697' + UseTLS: True + UseSASL: True + Label: libcasa + Charset: utf8 + IgnoreNicks: HistServ + UseRelayMsg: True + RemoteNickFormat: "{NICK}/{PROTOCOL}-{LABEL}" + ergo: + protocol: irc + Nick: mocker + Server: 'irc.ergo.chat:6697' + UseTLS: True + Label: ergo + UseRelayMsg: True + gateways: + foobar: + irc.libertacasa: '#dev' + irc.ergo: '#chat' + lighttpd: + vhosts: + matterbridge-general: + host: mocker.example.com + root: /var/lib/matterbridge/libertacasa-general |