Skip to content

Commit 0f2c35f

Browse files
committed
Add .gitignore
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent 2ec33b0 commit 0f2c35f

File tree

6 files changed

+39
-10
lines changed

6 files changed

+39
-10
lines changed

infra/ibmcloud/terraform/.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Local .terraform directories
2+
**/.terraform/*
3+
4+
# Terraform lockfile
5+
.terraform.lock.hcl
6+
7+
# .tfstate files
8+
*.tfstate
9+
*.tfstate.*
10+
*.tfplan
11+
plan.out
12+
13+
# Crash log files
14+
crash.log
15+
16+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
17+
# password, private keys, and other secrets. These should not be part of version
18+
# control as they are data points which are potentially sensitive and subject
19+
# to change depending on the environment.
20+
*.tfvars
21+
22+
# Ignore override files as they are usually used to override resources locally and so
23+
# are not checked in
24+
override.tf
25+
override.tf.json
26+
*_override.tf
27+
*_override.tf.json
28+
29+
# Ignore CLI configuration files
30+
.terraformrc
31+
terraform.rc

infra/ibmcloud/terraform/k8s-infra-setup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ terraform init -reconfigure
2222
`ibmcloud_api_key` is the only required variable that you must set in order to proceed. You can set this key either by adding it to your `var.tfvars` file or by exporting it as an environment variable.
2323

2424
**Option 1:** Set in `var.tfvars` file
25-
Add the following line to the `var.tfvars` file:
25+
Create `var.tfvars` file and set the following variable in `var.tfvars` file:
2626
```
2727
ibmcloud_api_key = "<YOUR_API_KEY>"
2828
```

infra/ibmcloud/terraform/k8s-infra-setup/modules/secrets_manager/secrets_manager.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,19 @@ resource "tls_private_key" "private_key" {
4040
}
4141

4242
resource "ibm_sm_arbitrary_secret" "ssh_private_key" {
43-
name = "powervs-ssh-private-key"
43+
name = "build-cluster-ssh-private-key"
44+
description = "SSH private key for secure deployment and access to the ppc64le build cluster."
4445
instance_id = ibm_resource_instance.secrets_manager.guid
4546
region = local.secrets_manager_region
46-
labels = ["powervs-ssh-private-key"]
47+
labels = ["build-cluster-ssh-private-key"]
4748
payload = tls_private_key.private_key.private_key_openssh
4849
}
4950

5051
resource "ibm_sm_arbitrary_secret" "ssh_public_key" {
51-
name = "powervs-ssh-public-key"
52+
name = "build-cluster-ssh-public-key"
53+
description = "SSH public key for secure deployment and access to the ppc64le build cluster."
5254
instance_id = ibm_resource_instance.secrets_manager.guid
5355
region = local.secrets_manager_region
54-
labels = ["powervs-ssh-public-key"]
56+
labels = ["build-cluster-ssh-public-key"]
5557
payload = tls_private_key.private_key.public_key_openssh
5658
}

infra/ibmcloud/terraform/k8s-infra-setup/var.tfvars

Lines changed: 0 additions & 1 deletion
This file was deleted.

infra/ibmcloud/terraform/k8s-power-build-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ terraform init -reconfigure
3232
`ibmcloud_api_key`, `service_instance_id`, `secrets_manager_id` are the only required variables that you must set in order to proceed. You can set this key either by adding it to your `var.tfvars` file or by exporting it as an environment variable.
3333

3434
**Option 1:** Set in `var.tfvars` file
35-
Add the following line to the `var.tfvars` file:
35+
Create `var.tfvars` file and set the following variables in `var.tfvars` file:
3636
```
3737
ibmcloud_api_key = "<YOUR_API_KEY>"
3838
service_instance_id = "<POWERVS_SERVICE_INSTANCE_ID>"

infra/ibmcloud/terraform/k8s-power-build-cluster/var.tfvars

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)