-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from wenzel-felix/feature/removeVaultCA
Feature/remove vault ca
- Loading branch information
Showing
9 changed files
with
97 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
# Finally, pull the initial ca token for the servers | ||
cd /root/ | ||
chmod 600 machines.pem | ||
ssh -i machines.pem -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" [email protected] cat connect_ca_token > /etc/consul.d/connect_ca_token | ||
|
||
# On all servers, edit the configuration file /etc/consul.d/consul.hcl and add the content | ||
cat <<EOF > /etc/consul.d/consul.hcl | ||
datacenter = "dc1" | ||
data_dir = "/opt/consul" | ||
connect { | ||
enabled = true | ||
ca_provider = "vault" | ||
ca_config { | ||
address = "http://${VAULT_IP}:8200" | ||
token = "Your_Vault_Token" | ||
root_pki_path = "connect_root" | ||
intermediate_pki_path = "connect_dc1_inter" | ||
leaf_cert_ttl = "72h" | ||
rotation_period = "2160h" | ||
intermediate_cert_ttl = "8760h" | ||
private_key_type = "rsa" | ||
private_key_bits = 2048 | ||
} | ||
} | ||
client_addr = "0.0.0.0" | ||
ui_config { | ||
|
Oops, something went wrong.