layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_serviceendpoint_openshift |
Manages an Openshift service endpoint within Azure DevOps organization. |
Manages an Openshift service endpoint within Azure DevOps organization. Using this service endpoint requires you to first install the OpenShift Extension.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_openshift" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Openshift"
server_url = "https://example.server"
certificate_authority_file = "/opt/file"
accept_untrusted_certs = true
auth_basic {
username = "username"
password = "password"
}
}
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_openshift" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Openshift"
server_url = "https://example.server"
certificate_authority_file = "/opt/file"
accept_untrusted_certs = true
auth_token {
token = "username"
}
}
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_openshift" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Openshift"
server_url = "https://example.server"
auth_none {
kube_config = "config"
}
}
The following arguments are supported:
-
project_id
- (Required) The ID of the project. -
service_endpoint_name
- (Required) The Service Endpoint name.
-
server_url
- (Optional) The URL for the OpenShift cluster to connect to. -
accept_untrusted_certs
- (Optional) Set this option to allow clients to accept a self-signed certificate. Available when usingauth_basic
orauth_token
authorization. -
certificate_authority_file
- (Optional) The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when usingauth_basic
orauth_token
authorization. -
auth_basic
- (Optional) Anauth_basic
block as documented below. -
auth_token
- (Optional) Anauth_token
block as documented below. -
auth_none
- (Optional) Anauth_none
block as documented below. -
description
- (Optional) The Service Endpoint description. Defaults toManaged by Terraform
.
auth_basic
block supports the following:
-
username
- (Required) The name of the user. -
password
- (Required) The password of the user.
auth_token
block supports the following:
token
- (Required) The API token.
auth_none
block supports the following:
kube_config
- (Optional) The kubectl config
The following attributes are exported:
id
- The ID of the service endpoint.project_id
- The ID of the project.service_endpoint_name
- The Service Endpoint name.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 2 minutes) Used when creating the Openshift Service Endpoint.read
- (Defaults to 1 minute) Used when retrieving the Openshift Service Endpoint.update
- (Defaults to 2 minutes) Used when updating the Openshift Service Endpoint.delete
- (Defaults to 2 minutes) Used when deleting the Openshift Service Endpoint.
Azure DevOps Openshift Service Endpoint can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID
terraform import azuredevops_serviceendpoint_openshift.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000