Skip to content

Commit e5f544c

Browse files
author
Paul
committed
Extend README explaning handling of vault encrypted vars.
1 parent bca69df commit e5f544c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,23 @@ that can be set for this role.
6363
addresses:
6464
- 10.11.12.99/24
6565
```
66+
## Using vaulted variables
67+
Vault encrypted variables need to be defined outside the `netplan_configuration` variable to be evaluated.
68+
69+
```yaml
70+
netplan_configuration:
71+
network:
72+
version: 2
73+
tunnels:
74+
wg_test:
75+
mode: wireguard
76+
key: "{{ my_wireguard_private_key }}"
77+
....
78+
79+
my_wireguard_private_key: !vault |
80+
31366530666465373834386563636465636135323562303866363333333865376330303130363162
81+
....
82+
```
6683

6784
## License
6885

0 commit comments

Comments
 (0)