Cambiamento posizione template basati su jinja.
This commit is contained in:
parent
373adff418
commit
7a81d01461
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user