summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Glass <christopher.glass@exoscale.ch>2019-08-08 17:09:57 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-08-08 17:09:57 +0000
commit4dfed67d0e82970f8717d0b524c593962698ca4f (patch)
tree05592d686003ff0caac41bcf8244831cfdd1b6cf /tools
parent6718b86e3e742f4ed4e39c3766ded2273128409c (diff)
downloadvyos-cloud-init-4dfed67d0e82970f8717d0b524c593962698ca4f.tar.gz
vyos-cloud-init-4dfed67d0e82970f8717d0b524c593962698ca4f.zip
New data source for the Exoscale.com cloud platform
- dsidentify switches to the new Exoscale datasource on matching DMI name - New Exoscale datasource added Signed-off-by: Mathieu Corbin <mathieu.corbin@exoscale.ch>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ds-identify7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index 0305e361..e0d4865c 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -124,7 +124,7 @@ DI_DSNAME=""
# be searched if there is no setting found in config.
DI_DSLIST_DEFAULT="MAAS ConfigDrive NoCloud AltCloud Azure Bigstep \
CloudSigma CloudStack DigitalOcean AliYun Ec2 GCE OpenNebula OpenStack \
-OVF SmartOS Scaleway Hetzner IBMCloud Oracle"
+OVF SmartOS Scaleway Hetzner IBMCloud Oracle Exoscale"
DI_DSLIST=""
DI_MODE=""
DI_ON_FOUND=""
@@ -553,6 +553,11 @@ dscheck_CloudStack() {
return $DS_NOT_FOUND
}
+dscheck_Exoscale() {
+ dmi_product_name_matches "Exoscale*" && return $DS_FOUND
+ return $DS_NOT_FOUND
+}
+
dscheck_CloudSigma() {
# http://paste.ubuntu.com/23624795/
dmi_product_name_matches "CloudSigma" && return $DS_FOUND