Skip to content

Commit

Permalink
added copyToHost for CACERT
Browse files Browse the repository at this point in the history
* added copyToHost for CACERT copy to host in nomad-consul-secure scenario

* added copyToHost for CACERT copy to host in vault-consul-storage && vault-integrated-storage scenario

* updated Vault CACERTS to be copied on host from guests

* updated Indentations and Vault CACERTS to be copied on host from guests

* corrected Indents in secure secenario && corrected vault certs on both vault scenarios

---------

Co-authored-by: Amit Chahal <amit.chahal@amit.chahal-NV99KTYQ4F>
  • Loading branch information
amitchahalgits and Amit Chahal authored Jul 12, 2024
1 parent e6d2544 commit 08f5f34
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scenarios/nomad-consul-secure/hashibox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ provision:
#!/bin/sh
nomad -autocomplete-install
consul -autocomplete-install
copyToHost:
- guest: "/etc/nomad.d/certs/nomad-agent-ca.pem"
host: "{{.Dir}}/copied-from-guest/nomad-agent-ca.pem"
- guest: "/etc/consul.d/certs/consul-agent-ca.pem"
host: "{{.Dir}}/copied-from-guest/consul-agent-ca.pem"
networks:
- lima: shared
vmType: qemu
Expand Down
6 changes: 6 additions & 0 deletions scenarios/vault-consul-storage/hashibox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ provision:
touch /shikari-bootstrapped
copyToHost:
- guest: "/etc/consul.d/certs/consul-agent-ca.pem"
host: "{{.Dir}}/copied-from-guest/consul-agent-ca.pem"
- guest: "/etc/vault.d/certs/vault-agent-ca.pem"
host: "{{.Dir}}/copied-from-guest/vault-agent-ca.pem"

networks:
- lima: shared
vmType: qemu
Expand Down
4 changes: 4 additions & 0 deletions scenarios/vault-integrated-storage/hashibox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ provision:
touch /shikari-bootstrapped
copyToHost:
- guest: "/etc/vault.d/certs/vault-agent-ca.pem"
host: "{{.Dir}}/copied-from-guest/vault-agent-ca.pem"

networks:
- lima: shared
vmType: qemu
Expand Down

0 comments on commit 08f5f34

Please sign in to comment.