Customised machine: curtin_userdata script not executed as expected
Bug #2065861 reported by
maasuser1
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
As shown in the picture, the log looks weird, and the change has not been applied.
```yaml
#cloud-config
debconf_selections:
maas: |
{{for line in str(curtin_
{{line}}
{{endfor}}
late_commands:
maas: [wget, '--no-proxy', '{{node_
10_motd_template: |
curl 'URL to gist' -o /etc/motd
sed -i "s/{hostname}
```
MAAS 3.4/Stable
Thanks!
Changed in maas: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Hi maasuser1,
I am not super familiar with curtin, but I can see that all the commands [0] are passed as a list, not as a multiline string.
May I ask you to try representing your commands as a list instead?
Something like this or similar:
``` s/{hostname} /$(hostname) /g"', '/etc/motd']
late_commands:
10_motd_save : [curl, 'URL to gist','-o', '/etc/motd']
10_motd_replace : [sed, '-i','"
```
[0]: https:/ /curtin. readthedocs. io/en/latest/ topics/ config. html#stages