/srv/irclogs.ubuntu.com/2023/01/27/#cloud-init.txt

xtalkmeGood evening all, I am trying something "simple". Changing the default 127.0.1.1 in etc/hosts with the static ip from local_ipv4. using 22.4.2 and vmware as datasource. when i define the variable local_ipv4 it returns a "CI_MISSING_JINJA_VAR/local_ipv4" in the template. when i define {{ds.meta_data.local_ipv4}} it fails to template and the error is21:57
xtalkme"jinja2.exceptions.UndefinedError: 'ds' is undefined" . cloud-init query -a -f {{ds.meta_data.local_ipv4}} return the value correct. calling DataSourceVMware.py returns a local-ipv4 with the correct ip. i am kinda lost at this point. anyone with some pointers ?21:57
xtalkmeds exists in /run/cloud-init/instance-data.json. somehow fqdn and hostname resolve fine within the jinja template22:20

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!