Commit 15cce87e authored by Mehdi Abaakouk's avatar Mehdi Abaakouk Committed by Mehdi Abaakouk

Add two openstack, configdrive cloud-init datasource

Now openstack have it own datasource additionnally to the ec2,
and it also supports the configdrive datasource when an instance is booted with:

 nova boot --configdrive --user-meta .... vm
parent 426d71aa
......@@ -333,7 +333,7 @@ fi
# For OpenStack, we would like to use Ec2 and no other API
echo "# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ Ec2 ]" >${MOUNT_DIR}/etc/cloud/cloud.cfg.d/90_dpkg.cfg
datasource_list: [ Ec2, ConfigDrive, OpenStack ]" >${MOUNT_DIR}/etc/cloud/cloud.cfg.d/90_dpkg.cfg
# Needed to have automatic mounts of /dev/vdb
echo "mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']" >>${MOUNT_DIR}/etc/cloud/cloud.cfg
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment