Comment 9 for bug 1806504

Revision history for this message
Jack Chen (scsvip) wrote :

Hi Andres:
Sorry for the delayed response. Had some busy days.

> 1. How are you using write_files ? Or how are you customizing your deployment exactly? Form the bug description it is not clear to me what is it that you are doing.
I solved by using MAAS and cloudinit:
1.In curtin_userdata_ubuntu, writes file `/etc/cloud.cfg.d/60-my-conf.cfg` in target machine
2. In 60-my-conf.cfg, use cloud-init's `write_files` module to write script content into
`/var/lib/cloud/instance/scripts/part-001`. This file will be executed by cloud init.

> 2. Have you tried what Dimitri suggested in comment #2?
Yes, it worked, but I want to find a way to solve it by leveraging MAAS.