Skip to content

Commit

Permalink
move to tf-infra-test project
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook committed Jun 26, 2023
1 parent 01b1357 commit 252d4c0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions magnum.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ variable "image_name" {

# T333874
resource "openstack_containerinfra_cluster_v1" "k8s_123" {
name = "testlabs-123"
name = "tf-infra-test-123"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_123.id
master_count = 1
node_count = 1
}

resource "openstack_containerinfra_clustertemplate_v1" "template_123" {
name = "testlabs-123"
name = "tf-infra-test-123"
coe = "kubernetes"
dns_nameserver = "8.8.8.8"
docker_storage_driver = "overlay2"
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ terraform {

provider "openstack" {
auth_url = var.auth-url[var.datacenter]
tenant_id = "testlabs"
tenant_id = "tf-infra-test"
application_credential_id = var.application_credential_id[var.datacenter]
application_credential_secret = var.application_credential_secret[var.datacenter]
}

provider "cloudvps" {
os_auth_url = var.auth-url[var.datacenter]
os_project_id = "testlabs"
os_project_id = "tf-infra-test"
os_application_credential_id = var.application_credential_id[var.datacenter]
os_application_credential_secret = var.application_credential_secret[var.datacenter]
}
Binary file modified secrets.tf
Binary file not shown.
6 changes: 3 additions & 3 deletions trove.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "openstack_db_instance_v1" "postgresql" {
}

user {
name = "testlabs"
name = "infra"
host = "%"
password = "notapassword"
databases = ["tf-postgresql"]
Expand All @@ -65,7 +65,7 @@ resource "openstack_db_instance_v1" "mysql" {
}

user {
name = "testlabs"
name = "infra"
host = "%"
password = "notapassword"
databases = ["tf-mysql"]
Expand All @@ -92,7 +92,7 @@ resource "openstack_db_instance_v1" "mariadb" {
}

user {
name = "testlabs"
name = "infra"
host = "%"
password = "notapassword"
databases = ["tf-mariadb"]
Expand Down
2 changes: 1 addition & 1 deletion vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ variable "application_credential_id" {
type = map(any)
default = {
"codfw1dev" = "<needed>"
"eqiad1" = "ab79da04abd64da3ae563926eee7e66b"
"eqiad1" = "53e844d312eb40fb9c837d9bcc469b27"
}
}
2 changes: 1 addition & 1 deletion vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data "openstack_images_image_v2" "debian" {
}

resource "openstack_compute_instance_v2" "vm" {
name = "testlabs-tf"
name = "tf-infra-test"
image_id = data.openstack_images_image_v2.debian.id
flavor_id = "bb8bee7e-d8f9-460b-8344-74f745c139b9" # update to lookup?
security_groups = ["${openstack_compute_secgroup_v2.secgroup.name}"]
Expand Down
2 changes: 1 addition & 1 deletion web-proxy.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "cloudvps_web_proxy" "web_proxy" {
hostname = "testlabs-tf"
hostname = "tf-infra-test"
backends = ["http://${resource.openstack_compute_instance_v2.vm.access_ip_v4}:8888"]
}

0 comments on commit 252d4c0

Please sign in to comment.