From 6c8ebdcf7d41c9dcd35ec6ed9bc2c37277946f20 Mon Sep 17 00:00:00 2001 From: Anthony Delannoy Date: Fri, 31 Mar 2023 12:17:34 +0200 Subject: [PATCH] providers/ovh: add first implementation This provider uses openstack settings. --- docs/release-notes.md | 1 + docs/supported-platforms.md | 2 ++ internal/providers/openstack/openstack.go | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index e46d16eae..6be3dea75 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -12,6 +12,7 @@ nav_order: 9 ### Features - Add OVH Baremetal provider +- Add OVH provider ### Changes diff --git a/docs/supported-platforms.md b/docs/supported-platforms.md index c5724fa95..742a72a33 100644 --- a/docs/supported-platforms.md +++ b/docs/supported-platforms.md @@ -28,6 +28,7 @@ Ignition is currently only supported for the following platforms: * [Vultr] (`vultr`) - Ignition will read its configuration from the instance userdata. Cloud SSH keys are handled separately. * [zVM] (`zvm`) - Ignition will read its configuration from the reader device directly. The vmur program is necessary, which requires the vmcp and vmur kernel module as prerequisite, and the corresponding z/VM virtual unit record devices (in most cases 000c as reader, 000d as punch) must be set online. * [OVH Baremetal] (`ovh-baremetal`) - Ignition will read its configuration from the instance userdata via either metadata service or config drive. Cloud SSH keys are handled separately. +* [OVH] (`ovh`) - Ignition will read its configuration from the instance userdata via either metadata service or config drive. Cloud SSH keys are handled separately. Ignition is under active development, so this list may grow over time. @@ -54,5 +55,6 @@ For most cloud providers, cloud SSH keys and custom network configuration are ha [Vultr]: https://www.vultr.com/products/cloud-compute/ [zVM]: http://www.vm.ibm.com/overview/ [OVH Baremetal]: https://www.ovhcloud.com/en-ie/bare-metal/ +[OVH]: https://www.ovhcloud.com/en-ie/public-cloud/ [Afterburn]: https://coreos.github.io/afterburn/ diff --git a/internal/providers/openstack/openstack.go b/internal/providers/openstack/openstack.go index 7c9171168..8dbd3b982 100644 --- a/internal/providers/openstack/openstack.go +++ b/internal/providers/openstack/openstack.go @@ -61,6 +61,11 @@ func init() { Name: "brightbox", Fetch: fetchConfig, }) + // the ovh platform ID just uses the OpenStack provider code + platform.Register(platform.Provider{ + Name: "ovh", + Fetch: fetchConfig, + }) // the ovh-baremetal platform ID just uses the OpenStack provider code platform.Register(platform.Provider{ Name: "ovh-baremetal",