mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: generate icinga2 service conf for async
This commit is contained in:
@@ -82,3 +82,9 @@ def createBackupScriptStructure(backupList, baseDomain=""):
|
||||
ansibleFilename = "./ansible/files/async-icinga-config-dynamic.json"
|
||||
with open(ansibleFilename, "w") as f:
|
||||
f.write(json.dumps(asyncIcingaConf))
|
||||
|
||||
# write async icinga services in ansible #
|
||||
ansibleFilename = "./ansible/files/async-icinga-services-dynamic.conf"
|
||||
icingaServiceTemplate = environment.get_template("async-icinga-services-dynamic.conf.j2")
|
||||
with open(ansibleFilename, "w") as f:
|
||||
f.write(icingaServiceTemplate.render(asyncIcingaConf=asyncIcingaConf))
|
||||
|
||||
Reference in New Issue
Block a user