update
This commit is contained in:
@@ -6,9 +6,12 @@ provider "octopusdeploy" {
|
||||
resource "octopusdeploy_tenant" "tenant" {
|
||||
name = var.GITLAB_PROJECT_NAME
|
||||
project_environment {
|
||||
environments = [
|
||||
environments = var.Development ? [
|
||||
"Environments-1",
|
||||
"Environments-2"
|
||||
] : [
|
||||
"Environments-1"
|
||||
]
|
||||
]
|
||||
project_id = "Projects-1"
|
||||
}
|
||||
tenant_tags = [
|
||||
@@ -26,7 +29,7 @@ resource "octopusdeploy_tenant_common_variable" "gitlabprojectname" {
|
||||
library_variable_set_id = "LibraryVariableSets-2"
|
||||
template_id = "f14ad0ff-d8cf-44a8-bd8d-ff23b0fdb0f4"
|
||||
tenant_id = octopusdeploy_tenant.tenant.id
|
||||
value = var.GITLAB_PROJECT_NAME
|
||||
value = octopusdeploy_tenant.tenant.name
|
||||
}
|
||||
|
||||
resource "octopusdeploy_tenant_common_variable" "gitlabrunnerid" {
|
||||
|
||||
@@ -19,3 +19,8 @@ variable "OCTOAPI" {
|
||||
variable "OCTO_TENANT_ID" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "Development" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user