Skip to content

Commit 10176c1

Browse files
committed
replace tofu by terraform
1 parent 572db03 commit 10176c1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

use-cases/wordpress-k8s-mysql/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We will divide the project into two layers. The first layer is used to deploy th
1111
## Requirements
1212

1313
You need the following:
14-
* [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/) installed
14+
* [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/) installed. In the instructions below, we are using the former. If you use the latter, you will need to update the commands accordingly !
1515
* an [OVHcloud Public cloud project](https://www.ovhcloud.com/en/public-cloud/)
1616
* OVHcloud API credentials
1717
* [EU](https://www.ovh.com/auth/?onsuccess=https%3A%2F%2Fwww.ovh.com%2Fauth%2FcreateToken%2F%3F)
@@ -95,28 +95,28 @@ Customize the values if needed.
9595

9696
```bash
9797
cd 01-kube
98-
tofu init
99-
tofu plan -var-file=../variables_01.tfvars
98+
terraform init
99+
terraform plan -var-file=../variables_01.tfvars
100100
```
101101

102102
### Create the cluster and the nodes-pool - 01-kube
103103

104104
```bash
105-
tofu apply -var-file=../variables_01.tfvars -auto-approve
105+
terraform apply -var-file=../variables_01.tfvars -auto-approve
106106
```
107107

108108
### Validate the configuration - 02-db-wordpress
109109

110110
```bash
111111
cd ../02-db-wordpress
112-
tofu init
113-
tofu plan -var-file=../variables_02.tfvars
112+
terraform init
113+
terraform plan -var-file=../variables_02.tfvars
114114
```
115115

116116
### Create the DB, website - 02-db-wordpress
117117

118118
```bash
119-
tofu apply -var-file=../variables_02.tfvars -auto-approve
119+
terraform apply -var-file=../variables_02.tfvars -auto-approve
120120
```
121121

122122
### Login into Wordpress
@@ -137,7 +137,7 @@ kubectl --kubeconfig=./kubeconfig.yml get secret -n default wordpress -o jsonpat
137137

138138
```bash
139139
cd 02-db-wordpress
140-
tofu destroy -var-file=../variables_02.tfvars -auto-approve
140+
terraform destroy -var-file=../variables_02.tfvars -auto-approve
141141
cd ../01-kube
142-
tofu destroy -var-file=../variables_01.tfvars -auto-approve
142+
terraform destroy -var-file=../variables_01.tfvars -auto-approve
143143
```

0 commit comments

Comments
 (0)