Update mocking base
- adapt preparation script to new environment - add sample mocking pillar including README Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
97db5ef6db
commit
a42961e982
@ -6,8 +6,9 @@ import socket
|
|||||||
|
|
||||||
iddir = 'pillar/id/'
|
iddir = 'pillar/id/'
|
||||||
secretiddir = 'pillar/secret/id/'
|
secretiddir = 'pillar/secret/id/'
|
||||||
baseidfile = 'atvkdev02_home_lysergic_dev.sls'
|
baseidfile = 'pillar/mock/example.sls'
|
||||||
myidfile = socket.gethostname() + '.sls'
|
myidfile = socket.gethostname() + '.sls'
|
||||||
|
|
||||||
shutil.copyfile(iddir + baseidfile, iddir + myidfile)
|
shutil.copyfile(baseidfile, os.path.join(iddir, myidfile))
|
||||||
shutil.copyfile(secretiddir + baseidfile, secretiddir + myidfile)
|
os.makedirs(secretiddir)
|
||||||
|
shutil.copyfile(baseidfile, os.path.join(secretiddir, myidfile))
|
||||||
|
1
pillar/mock/README.md
Normal file
1
pillar/mock/README.md
Normal file
@ -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.
|
41
pillar/mock/example.sls
Normal file
41
pillar/mock/example.sls
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user