itamae/cookbooks/consul/files/etc/consul.d/howto/01-bootstrap.sh

8 lines
141 B
Bash
Raw Permalink Normal View History

2024-02-11 09:55:25 +00:00
#!/bin/bash
export TOKEN_DIR=/etc/consul.d/tokens
consul acl bootstrap --format json | tee -a "${TOKEN_DIR}/token-bootstrap.json"
exit $?