Skip to content

Commit

Permalink
providers/ovh-baremetal: add first implementation
Browse files Browse the repository at this point in the history
This provider uses openstack settings.
  • Loading branch information
spnngl committed Mar 31, 2023
1 parent 36b3331 commit 8e7608a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nav_order: 9

### Features

- Add OVH Baremetal provider

### Changes

Expand Down
2 changes: 2 additions & 0 deletions docs/supported-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Ignition is currently only supported for the following platforms:
* [VMware] (`vmware`) - Use the VMware Guestinfo variables `ignition.config.data` and `ignition.config.data.encoding` to provide the config and its encoding to the virtual machine. Valid encodings are "", "base64", and "gzip+base64". Guestinfo variables can be provided directly or via an OVF environment, with priority given to variables specified directly.
* [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.

Ignition is under active development, so this list may grow over time.

Expand All @@ -52,5 +53,6 @@ For most cloud providers, cloud SSH keys and custom network configuration are ha
[VMware]: https://www.vmware.com/
[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/

[Afterburn]: https://coreos.github.io/afterburn/
5 changes: 5 additions & 0 deletions internal/providers/openstack/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ func init() {
Name: "brightbox",
Fetch: fetchConfig,
})
// the ovh-baremetal platform ID just uses the OpenStack provider code
platform.Register(platform.Provider{
Name: "ovh-baremetal",
Fetch: fetchConfig,
})
}

func fetchConfig(f *resource.Fetcher) (types.Config, report.Report, error) {
Expand Down

0 comments on commit 8e7608a

Please sign in to comment.