page_title | subcategory | description |
---|---|---|
xenorchestra Provider |
The Xen Orchestra provider is used to interact with the resources supported by Xen Orchestra. The provider needs to be configured with the proper credentials before it can be used.
- Terraform 0.12+
- Xen Orchestra 5.50.1
# Instruct terraform to download the provider on `terraform init`
terraform {
required_providers {
xenorchestra = {
source = "vatesfr/xenorchestra"
}
xenorchestra_token_auth = {
source = "vatesfr/xenorchestra"
}
}
}
# Configure the XenServer Provider
provider "xenorchestra" {
# Must be ws or wss
url = "ws://hostname-of-server" # Or set XOA_URL environment variable
username = "<username>" # Or set XOA_USER environment variable
password = "<password>" # Or set XOA_PASSWORD environment variable
# This is false by default and
# will disable ssl verification if true.
# This is useful if your deployment uses
# a self signed certificate but should be
# used sparingly!
insecure = <false|true> # Or set XOA_INSECURE environment variable to any value
}
provider "xenorchestra_token_auth" {
# XOA_USER and XOA_PASSWORD cannot be set, nor can their arguments
token = "<token from XO>" # or set XOA_TOKEN environment variable
}
url
(String) Hostname of the xoa router. Can be set via the XOA_URL environment variable.
insecure
(Boolean) Whether SSL should be verified or not. Can be set via the XOA_INSECURE environment variable.password
(String) Password for xoa api. Can be set via the XOA_PASSWORD environment variable.retry_max_time
(String) Ifretry_mode
is set, this specifies the duration for which the backoff method will continue retries. Can be set via theXOA_RETRY_MAX_TIME
environment variableretry_mode
(String) Specifies if retries should be attempted for requests that require eventual . Can be set via the XOA_RETRY_MODE environment variable.token
(String) Password for xoa api. Can be set via the XOA_TOKEN environment variable.username
(String) User account for xoa api. Can be set via the XOA_USER environment variable.