Added consul server config
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
#+title: Consul
|
||||
* Server setup
|
||||
** Create a server keypair
|
||||
Decrypt the CA (from the agenix secrets)
|
||||
#+begin_src bash
|
||||
agenix -i ~/.ssh/id_reykjavik -d consul.d/consul-agent-ca.pem.age > ~/tmp/consul-agent-ca.pem
|
||||
agenix -i ~/.ssh/id_reykjavik -d consul.d/consul-agent-ca-key.pem.age > ~/tmp/consul-agent-ca-key.pem
|
||||
#+end_src
|
||||
Create the keypair using consul:
|
||||
#+begin_src bash
|
||||
nix-shell -p consul
|
||||
consul tls cert create -server -dc samfelag
|
||||
#+end_src
|
||||
* ACLs
|
||||
** Policies
|
||||
*** Node Policy
|
||||
|
||||
Reference in New Issue
Block a user