summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2018-01-19 11:48:44 -0500
committerRussell Teague <rteague@redhat.com>2018-01-19 11:48:44 -0500
commit1e167b9f136bb8ebcb684e1956f4b42a29a95356 (patch)
tree0da3aab760e85550f7ccb2be2a0a1e00bda7bb43 /roles
parent6a26d0c0799cf5915c61205450e18ff010485beb (diff)
downloadopenshift-1e167b9f136bb8ebcb684e1956f4b42a29a95356.tar.gz
openshift-1e167b9f136bb8ebcb684e1956f4b42a29a95356.tar.bz2
openshift-1e167b9f136bb8ebcb684e1956f4b42a29a95356.tar.xz
openshift-1e167b9f136bb8ebcb684e1956f4b42a29a95356.zip
Add support for Amazon EC2 C5 instance types
Diffstat (limited to 'roles')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index d7c358a2f..26f0525e9 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1465,6 +1465,11 @@ class OpenShiftFacts(object):
if metadata:
metadata['project']['attributes'].pop('sshKeys', None)
metadata['instance'].pop('serviceAccounts', None)
+ elif bios_vendor == 'Amazon EC2':
+ # Adds support for Amazon EC2 C5 instance types
+ provider = 'aws'
+ metadata_url = 'http://169.254.169.254/latest/meta-data/'
+ metadata = get_provider_metadata(metadata_url)
elif virt_type == 'xen' and virt_role == 'guest' and re.match(r'.*\.amazon$', product_version):
provider = 'aws'
metadata_url = 'http://169.254.169.254/latest/meta-data/'