hashipi

Raspberry Pi Test Cluster for HashiCorp Vault, Nomad and Consul
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | README

commit f5093116ada7e6a7b5b30bd3373970bbf550c0f4
parent 3bf72195a1ee61813d39e68f6562625a2e7d1475
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 20 Jul 2023 21:43:53 +0200

feat: improve templating

Diffstat:
Mnomad.sh | 5++---
Mvault.sh | 4++--
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/nomad.sh b/nomad.sh @@ -45,9 +45,8 @@ vault { $(if [[ "$NOMAD_SERVER" = true ]]; then # Only servers create further Tokens for clients from the Token role # https://developer.hashicorp.com/nomad/docs/configuration/vault#nomad-client - echo " create_from_role = \"nomad-cluster\"" -fi) -} + echo -e " create_from_role = \"nomad-cluster\"\n\r" +fi)} EOF diff --git a/vault.sh b/vault.sh @@ -87,8 +87,8 @@ $(if [[ "$NOMAD_CLIENT" = false ]]; then # This nodes TLS certificate cannot be updated by Nomad jobs, # because it serves as Nomad server exclusively. Don't expose # it to the load balancer by disabling Consul service discovery. - echo " disable_registration = true" -fi) + echo -e " disable_registration = true\n\r" +fi)} } seal "transit" {