Better pmm-distribution detection for clouds

Description

Currently, we use ansible_virtualization_type to distinguish between AMI, OVF, and Docker. We check the value of that variable during build to write to /srv/pmm-distribution file:

  • if ansible_virtualization_type is "virtualbox", it is OVF;

  • if ansible_virtualization_type is "docker", it is Docker;

  • if ansible_virtualization_type is "xen" or "kvm" (as AWS moves from Xen to KVM), it is AMI.

That check is incorrect for other clouds like Google Cloud, etc.

How to test

None

How to document

None

Smart Checklist

Activity

Show:

Alex Demidoff December 20, 2022 at 8:06 PM

Done as part of

Alex Demidoff December 20, 2022 at 8:05 PM
Edited

Solution:

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

Yes

Story Points

Sprint

Smart Checklist

Created November 14, 2019 at 11:50 AM
Updated March 6, 2024 at 5:13 AM