GitHub user Sparc0 closed a discussion: Cloud-init using Foreman as meta-data/user-data provider
I am trying to get cloud-init to work for Rocky and Ubuntu templates. I am using L2 network and i provide my instances with a DHCP IP from a external DHCP server. This makes the default cloud-init config to detect my cloudstack datasource and trying to connect to my router in this case a juniper. ` 2025-03-21 17:47:48,193 - url_helper.py[WARNING]: Calling 'None' failed [3/120s]: request error [HTTPConnectionPool(host='myJuniperIP', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5258b8e940>: Failed to establish a new connection: [Errno 111] Connection refu sed'))] ` I have a foreman instance that can provide my instances with meta-data and user-data by creating this file in my templates ``` cat /etc/cloud/cloud.cfg.d/10_foreman.cfg datasource_list: [NoCloud] datasource: NoCloud: seedfrom: http://foremanserver/userdata/ ``` I would like to avoid having to change and rebuild the base templates and keep them as default they come. I read that its possible to provide above nocloud config to QEMU directly and wonder if thats something that could be done in cloudstack? https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html#dmi-specific-kernel-command-line GitHub link: https://github.com/apache/cloudstack/discussions/10605 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org