Open ubuntu-server-builder opened 1 year ago
Hey is this the right way .. _datasource_altcloud:
AltCloud
The AltCloud datasource is used to gather user data passed to an instance on RHEVm and vSphere. It supports accessing user data from different file locations based on the cloud provider.
The AltCloud datasource supports the following cloud types:
The user data can be accessed from the following file locations:
For RHEV:
deltacloud-user-data.txt
on the floppy device.For vSphere:
user-data.txt
on the CDROM device.The AltCloud datasource has the following dependencies:
The following configuration settings can be set for the AltCloud datasource in the system configuration file (/etc/cloud/cloud.cfg
or /etc/cloud/cloud.cfg.d/
):
metadata_urls
This setting is not applicable for the AltCloud datasource.
max_wait
This setting is not applicable for the AltCloud datasource.
timeout
This setting is not applicable for the AltCloud datasource.
apply_full_imds_network_config
This setting is not applicable for the AltCloud datasource.
An example configuration for the AltCloud datasource:
.. code-block:: yaml
datasource: AltCloud: metadata_urls: [] max_wait: 0 timeout: 0 apply_full_imds_network_config: false
Note that the AltCloud datasource does not require specifying metadata URLs or other settings, as it automatically determines the cloud type and retrieves the user data accordingly.
cloud-init AltCloud Datasource Source Code
_.. _cloud-init AltCloud Datasource Source Code: https://github.com/cloud-init/cloud-init/blob/master/cloudinit/sources/DataSourceAltCloud.py
Hey is this the right way
Hi @Indrranil, sorry what's your question? It's not clear to me what you're asking, nor why you linked doc content.
Please open pull request if you are interested in updating this docs and we can review and converse on that PR.
On first glance here, you are restructuring the markdown to better organize this AltCloud datasource docs and looking for feedback.
In this example here some things need a bit of work:
AltCloud is discovered RHEV or VSPHERE subplatform based on either DMI data at ``/sys/class/dmi/id/product_name`` that begins with either `RHEV` or `VMWARE` or a configurable file in the image ``/etc/sysconfig/cloud-info`` containing one of `RHEV` or `VSPHERE`
configuration examples section
. Maybe just mention /sys/class/dmi/id/product_nameProviding user-data
section
. The file ``/etc/sysconfig/cloud-info`` can contain either
RHEVor
VSPHERE` to indicate what platform type and user-data to expect.
This bug was originally filed in Launchpad as LP: #1968789
Launchpad details
Launchpad user Chad Smith(chad.smith) wrote on 2022-04-12T20:46:24.022823+00:00
Update "read the docs" content at doc/rtd/topics/datasources/altcloud.rst
Ensure it correctly represents behavior and configuration options as used in: cloudinit/sources/DataSourceAltCloud.py
Example format/style should be something like:
doc/rtd/topics/datasources/ec2.rst
Specifically, these docs need to also include discussion of seed directory setup in /var/lib/cloud/seed/*.