Cambiamento posizione template basati su jinja.

This commit is contained in:
Emiliano Vavassori 2024-09-21 18:22:48 +02:00
parent 373adff418
commit 7a81d01461
4 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ volume = lv.Volume("disk",
# Stream configuration files
cloudinit = lv.CloudInitDisk("cloud-init",
meta_data = Template(open("./cloud-init/meta-data.jinja", "r").read()).render(env),
user_data = Template(open("./cloud-init/user-data.jinja", "r").read()).render(env),
network_config = open("./cloud-init/network-config", "r").read()
meta_data = Template(open("./templates/meta-data.jinja", "r").read()).render(env),
user_data = Template(open("./templates/user-data.jinja", "r").read()).render(env),
network_config = open("./templates/network-config", "r").read()
)
vm = lv.Domain(config.get('hostname'),