Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change vm name #62

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example-pipelines/environments/dev/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
bucket = "jtd-project-335815-tfstate"
prefix = "env/dev"
}
}
21 changes: 21 additions & 0 deletions example-pipelines/environments/dev/backend.tf.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
prefix = "env/dev"
}
}
2 changes: 1 addition & 1 deletion example-pipelines/environments/dev/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_id = "PROJECT_ID"
project_id = "jtd-project-335815"
environment = "dev"
subnet1_region = "us-central1"
subnet1_zone = "us-central1-a"
Expand Down
5 changes: 5 additions & 0 deletions example-pipelines/environments/dev/terraform.tfvars.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project_id = "PROJECT_ID"
environment = "dev"
subnet1_region = "us-central1"
subnet1_zone = "us-central1-a"
subnet1_cidr = "10.10.0.0/16"
2 changes: 1 addition & 1 deletion example-pipelines/environments/prod/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
bucket = "jtd-project-335815-tfstate"
prefix = "env/prod"
}
}
21 changes: 21 additions & 0 deletions example-pipelines/environments/prod/backend.tf.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
prefix = "env/prod"
}
}
2 changes: 1 addition & 1 deletion example-pipelines/environments/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_id = "PROJECT_ID"
project_id = "jtd-project-335815"
environment = "prod"
subnet1_region = "us-central1"
subnet1_zone = "us-central1-a"
Expand Down
5 changes: 5 additions & 0 deletions example-pipelines/environments/prod/terraform.tfvars.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project_id = "PROJECT_ID"
environment = "prod"
subnet1_region = "us-central1"
subnet1_zone = "us-central1-a"
subnet1_cidr = "10.20.0.0/16"
2 changes: 1 addition & 1 deletion example-pipelines/example-create/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*****************************************/
locals {
vpc_network_name = "example-vpc-${var.environment}"
vm_name = "example-vm-${var.environment}-001"
vm_name = "example-vm-${var.environment}-new"
}

/*****************************************
Expand Down
2 changes: 1 addition & 1 deletion jenkins-gke/tf-gke/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
bucket = "jtd-project-335815-tfstate"
prefix = "jenkins"
}
}
22 changes: 22 additions & 0 deletions jenkins-gke/tf-gke/backend.tf.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

terraform {
backend "gcs" {
bucket = "PROJECT_ID-tfstate"
prefix = "jenkins"
}
}
4 changes: 2 additions & 2 deletions jenkins-gke/tf-gke/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


project_id = "PROJECT_ID"
tfstate_gcs_backend = "PROJECT_ID-tfstate"
project_id = "jtd-project-335815"
tfstate_gcs_backend = "jtd-project-335815-tfstate"
region = "us-east4"
zones = ["us-east4-a"]
ip_range_pods_name = "ip-range-pods"
Expand Down
12 changes: 12 additions & 0 deletions jenkins-gke/tf-gke/terraform.tfvars.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


project_id = "PROJECT_ID"
tfstate_gcs_backend = "PROJECT_ID-tfstate"
region = "us-east4"
zones = ["us-east4-a"]
ip_range_pods_name = "ip-range-pods"
ip_range_services_name = "ip-range-scv"
network_name = "jenkins-network"
subnet_ip = "10.10.10.0/24"
subnet_name = "jenkins-subnet"
jenkins_k8s_config = "jenkins-k8s-config"