Skip to content

Commit 835b10d

Browse files
authored
[DOC] Update hierarchical terraform example (#65)
Signed-off-by: costimuraru <[email protected]>
1 parent 86d50b0 commit 835b10d

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
compositions_order:
3-
terraform:
4-
- account
5-
- network
6-
- cluster
7-
- spinnaker
8-
helmfile:
9-
- helmfiles
2+
compositions:
3+
order:
4+
terraform:
5+
- account
6+
- network
7+
- cluster
8+
- spinnaker
9+
helmfile:
10+
- helmfiles

examples/features/terraform-hierarchical/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Note that you need the `.opsconfig.yaml` file (which is already present in this folder) for this to work.
2+
13
1. Run 'terraform plan' for all compositions for a given cluster:
24
```sh
35
# generates config and runs terraform
@@ -12,4 +14,9 @@ ops config/env=dev/cluster=cluster1 terraform apply --skip-plan
1214
3. Run a single composition:
1315
```sh
1416
ops config/env=dev/cluster=cluster1/composition=network terraform apply --skip-plan
15-
```
17+
```
18+
19+
4. If you only want to generate and view the config you can run:
20+
```sh
21+
ops config/env=dev/cluster=cluster1/composition=network config
22+
```

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ hvac==0.9.3
1414
passgen
1515
inflection==0.3.1
1616
kubernetes==9.0.0
17-
himl==0.2.1
17+
himl==0.2.2
1818
six

0 commit comments

Comments
 (0)