Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Equinix Metal metadata service #680

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
change timeout in DataSourceEquinixMetal to match existing cloud-configs
A relative of this code is used to deploy cloud-config data on Equinix
Metal nodes:
https://github.com/tinkerbell/osie/blob/71da59e10bf66cc352366615060171939412d397/docker/scripts/osie.sh#L363-L369

This change makes the EM datasource match that timeout setting.

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
displague committed Jun 28, 2021
commit 870ec0626a24ea121b165c929ee9cf2f95c57f58
1 change: 1 addition & 0 deletions cloudinit/sources/DataSourceEquinixMetal.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class DataSourceEquinixMetal(EC2.DataSourceEc2):
# The minimum supported metadata_version from the ec2 metadata apis
min_metadata_version = '2009-04-04'
extended_metadata_versions = []
url_timeout = 50

def get_hostname(self, fqdn=False, resolve_ip=False, metadata_only=False):
return self.metadata.get('hostname', 'localhost.localdomain')
Expand Down