meena | holmanb: is there any way to construct the default home_dir in FreeBSD to be /home in FreeBSD 14.0+? | 14:38 |
---|---|---|
ShaneAH | Hello, all. Hoping to get some guidance on Jinja templates with cloud-init 22.1 on RedHat 8. I have a template that I'm putting in /etc/cloud/cloud.cfg.d. However when it runs I get a parse error, however if I remove the file from the cfg.d folder and execute it with --format it produces the correct output. | 15:32 |
ShaneAH | Here is a simplified template to illustrate the problem. | 15:32 |
ShaneAH | ## template: jinja | 15:32 |
ShaneAH | #cloud-init | 15:32 |
ShaneAH | runcmd: | 15:32 |
ShaneAH | {{ ds.meta_data.imds.compute.tagsList | selectattr('name', 'equalto', 'domain') | list }} | 15:32 |
ShaneAH | Executing with a template in cloud.cfg.d | 15:32 |
ShaneAH | sudo cloud-init query --format="$( cat /etc/cloud/cloud.cfg.d/02-resolv-conf.cfg )" | 15:32 |
ShaneAH | WARNING: Failed loading yaml blob. Invalid format at line 5 column 1: "while scanning a simple key | 15:32 |
ShaneAH | in "<unicode string>", line 5, column 1: | 15:32 |
ShaneAH | {{ ds.meta_data.imds.compute.tag ... | 15:32 |
ShaneAH | ^ | 15:32 |
ShaneAH | could not find expected ':' | 15:32 |
ShaneAH | in "<unicode string>", line 6, column 1: | 15:32 |
ShaneAH | ^" | 15:32 |
ShaneAH | ## template: jinja | 15:32 |
ShaneAH | #cloud-init | 15:32 |
ShaneAH | runcmd: | 15:32 |
minimal | ShaneAH: "#cloud-init" ? that should be "#cloud-config" | 15:41 |
ShaneAH | Great catch, I can change that but the same code works on Suse15 with cloud-init 23 | 15:43 |
ShaneAH | changed to cloud-config, same error | 15:45 |
falcojr | meena: FYI, holmanb is out this week and I don't know the answer to your question | 18:49 |
falcojr | ShaneAH: Jinja templating in /etc/cloud/* wasn't a feature until 22.4. | 18:54 |
ShaneAH | Nuts, missed it by that much!! | 19:26 |
minimal | I'm seeing strange output when packaging cloud-init git main but don't see this with 23.3: https://tpaste.us/papW | 22:50 |
minimal | this seems to be referring to the contents of the sysvinit/freebsd/*.tmpl and systemd/*.tmpl files | 22:54 |
meena | minimal: why would your packaging for Alpine touch those paths? | 23:27 |
minimal | my packaging doesn't | 23:29 |
minimal | this is when "python3 -m pytest" and "python3 setup.py install" are run | 23:31 |
minimal | note the line at the top is the final result of the testing portion | 23:31 |
minimal | so this seems to be generated when "python3 setup.py install" is run | 23:32 |
minimal | to be more precise, this is what is run: python3 setup.py install --prefix=/usr --root="<packaging directory>" --init-system=sysvinit_openrc | 23:37 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!