Hi, On 8/12/21 4:25 PM, SUDHAKAR REDDY KHANDI wrote:
HiI am new to cloud-init.I have been trying to find out how cloud-init detects the cloud-platform (AZR/AWS/etc). someone point me where this code is present(assume no datasource_list is configured) Please, let me know how cloud-init uses the "datasource_list" config? is it a hint to cloud-init that it is a so-and-so cloud platform ?
cloud-init checks the config and uses whatever is configure. If this does not exist in the configuration cloud-init will fall back to auto detection mode. Note the auto detection mode exists twice, once in the code executed by the generator, i.e. tools/ds-identify and once in the Python code where we look for the data source.
HTH, Robert
Regards Sudhakar
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Distinguished Engineer LINUX Technical Team Lead Public Cloud [email protected] IRC: robjo
OpenPGP_signature
Description: OpenPGP digital signature
-- Mailing list: https://launchpad.net/~cloud-init Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init More help : https://help.launchpad.net/ListHelp

