Packer
Oxide
@oxidecomputer
The Oxide Packer plugin is a multi-component plugin for building Oxide images.
- Community
Updated 3 weeks ago
- GitHub(opens in new tab)
Oxide Image
Type: oxide-image
This data source fetches the image ID for an Oxide image using its name. The image can be a project image or silo image.
Configuration
The configuration arguments for this data source component. Arguments can either be required or optional.
Required
host
(string) - Oxide API URL (e.g.,https://oxide.sys.example.com
). If not specified, this defaults to the value of theOXIDE_HOST
environment variable.token
(string) - Oxide API token. If not specified, this defaults to the value of theOXIDE_TOKEN
environment variable.name
(string) - Name of the image to fetch.
Optional
project
(string) - Name or ID of the project containing the image to fetch. Leave blank to fetch a silo image instead of a project image.
Outputs
image_id
(string) - ID of the image that was fetched.
Examples
Fetch a project image.
data "oxide-image" "example" {
name = "ubuntu"
project = "oxide"
}
Fetch a silo image.
data "oxide-image" "example" {
name = "ubuntu"
}