feat: add icinga & ansible file generation

This commit is contained in:
2022-12-28 19:18:48 +01:00
parent d19448cf31
commit 9461a95639
3 changed files with 20 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ environment = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath="./te
def createMasterHostConfig(vmList):
template = environment.get_template("icinga_host.conf.j2")
with open("build/icinga_master_hosts.conf", "w") as f:
with open("ansible/files/icinga_master_hosts.conf", "w") as f:
for vmo in vmList:
if not vmo.check: