New Question

Revision history [back]

Hey,

  1. Yep, cloudbase-init does support #include with a script URL in user-data — just make sure the URL is accessible and returns plain text content.

  2. The issue looks like a character encoding or formatting problem. If you’ve copied parts of the script from the web or Word, there might be hidden characters messing things up — like an em dash (—) instead of a regular dash (-). You can check your script for things like this: https://symbol.so/em-dash. Also make sure the file is saved as UTF-8 without BOM. Those little things can break parsing in cloudbase-init.

  3. Static IP config is always slower than DHCP, but you can try setting configdrive if you’re not using DHCP at all — it can help with speed. And yes, you can delay user-data execution until networking is ready by setting this in cloudbase-init.conf: executeuserdataafternetworkconfig=true