Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva authored Jan 8, 2024
1 parent 3f51a44 commit e7483c2
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

terraform module for building/cloning vsphere vms based on existing vm-templates

## USAGE
## USAGE TERRAFORM CLI

<details><summary><b>TERRAFORM MODULE CALL</b></summary>

Expand Down Expand Up @@ -74,6 +74,7 @@ variable "vm_ssh_password" {
```bash
terraform init
terraform plan

terraform apply --auto-approve \
-var "vsphere_server=<FQDN>" \
-var "vm_ssh_user=<USER>" \
Expand All @@ -92,7 +93,28 @@ terraform destroy --auto-approve

</details>

<details><summary><b>CROSSPLANE INLINE WORKSPACE</b></summary>
## USAGE CROSSPLANE

<details><summary><b>CREATE TFVARS AS SECRET</b></summary>

```bash
# CREATE terraform.tfvars
cat <<EOF > terraform.tfvars
vsphere_user = "<USER>"
vsphere_password = "<PASSWORD>"
vm_ssh_user = "<SSH_USER>"
vm_ssh_password = "<SSH_PASSWORD>"
EOF

```bash
# CREATE SECRET
kubectl create secret generic vsphere-tfvars --from-file=terraform.tfvars
```

</details>


<details><summary><b>DEFINE (INLINE) WORKSPACE</b></summary>

```yaml
apiVersion: tf.upbound.io/v1beta1
Expand Down

0 comments on commit e7483c2

Please sign in to comment.