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

8 lines
141 B
Bash
Executable File

#!/bin/bash
export TOKEN_DIR=/etc/consul.d/tokens
consul acl bootstrap --format json | tee -a "${TOKEN_DIR}/token-bootstrap.json"
exit $?