Repository navigation
is there a way to fallback on None Datasource None during ds-identify instead of disabling cloud-init #6687
Replies: 2 comments
It's in the docs. Look up |
|
If you still want NoCloud when a seed is attached, use The catch is that ds-identify only reads it as a single line list like above. If you write it as a multi-line yaml list ( With your virt-customize setup: You can put ds-identify.cfg back to the default policy too, you don't need Ran ds-identify locally with both lists and the multi-line one to check this. |
Uh oh!
There was an error while loading. Please reload this page.
Hello
when no data source is provided, is there a way to fallback on Datasource none during ds-identify instead of disabling cloud-init ?
Let me explain.
Download ubuntu cloud image and change root password (without using cloud init)
start image without data source :
qemu-system-x86_64 -m 2G -enable-kvm -cpu host -smp 4 -hda noble-server-cloudimg-amd64.img -netdev user,id=n1,hostfwd=tcp::60671-:22 -device virtio-net,netdev=n1,addr=03 -device e1000,netdev=n2,addr=04 -netdev user,id=n2 -device e1000,netdev=n3,addr=05 -netdev user,id=n3 -netdev user,id=n4 -net none -display none -nographicds-identify will not find any datasource and cloud init will be disabled
because of ds-identify default policy : search,found=all,maybe=none,notfound=disabled
I tried to change the policy to search,found=all,maybe=all,notfound=enabled in /etc/cloud/ds-identify.cfg
In that case, ds-identify will not find any datasource, cloud-init is enabled.
At runtime, cloud-init scan all possible datasources (takes a long time) and
finally fallback to datasource none.
and have the warning:
Is there any configuration option to fallback on datasource none during ds-identify instead ?
All reactions