Start `Consul` after `Vault` generates the jwt token.
``` --- a/cookbooks/consul/files/etc/systemd/system/consul.service +++ b/cookbooks/consul/files/etc/systemd/system/consul.service @@ -2,7 +2,7 @@ Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ Requires=network-online.target -After=network-online.target +After=network-online.target vault-agent-consul-jwt.target ConditionFileNotEmpty=/etc/consul.d/consul.hcl [Service] ```
This commit is contained in:
parent
94489f71d5
commit
c15c2f3de8
|
@ -2,7 +2,7 @@
|
||||||
Description="HashiCorp Consul - A service mesh solution"
|
Description="HashiCorp Consul - A service mesh solution"
|
||||||
Documentation=https://www.consul.io/
|
Documentation=https://www.consul.io/
|
||||||
Requires=network-online.target
|
Requires=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target vault-agent-consul-jwt.target
|
||||||
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
|
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
Loading…
Reference in New Issue