Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 291ea54

Browse files
committed
Removing reference to Master in favor of seed
1 parent 01e69b0 commit 291ea54

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

scripts/vault-upstart.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
description "Vault"
2-
1+
\description "Vault"
32
start on runlevel [2345]
43
stop on runlevel [!2345]
54

@@ -8,15 +7,7 @@ respawn
87
console log
98

109
script
11-
if [ -f "/etc/service/vault" ]; then
12-
. /etc/service/vault
13-
fi
14-
1510
# Make sure to use all our CPUs, because Vault can block a scheduler thread
1611
export GOMAXPROCS=`nproc`
17-
18-
exec /usr/local/bin/vault server \
19-
-config="/etc/vault.d/vault.hcl" \
20-
\$${VAULT_FLAGS} \
21-
>>/var/log/vault.log 2>&1
12+
vault server -config /etc/vault.d/vault.hcl
2213
end script

scripts/vault.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
backend "consul" {
2-
address = "__CONSULMASTER__:8500"
2+
address = "__CONSULSEED__:8500"
33
path = "vault/"
44
}
55

templates/quickstart-hashicorp-vault-master.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"AWSTemplateFormatVersion": "2010-09-09",
3-
"Description": "Hashicorp Consul+Vault template master, License: Apache 2.0 (Please do not remove) Oct,27,2016",
3+
"Description": "Hashicorp Consul+Vault template seed, License: Apache 2.0 (Please do not remove) Oct,27,2016",
44
"Metadata": {
55
"AWS::CloudFormation::Interface": {
66
"ParameterGroups": [{
@@ -499,10 +499,10 @@
499499
"Outputs.VPCID"
500500
]
501501
},
502-
"ConsulMasterPrivateIP": {
502+
"ConsulSeedPrivateIP": {
503503
"Fn::GetAtt": [
504504
"HashiCorpConsulStack",
505-
"Outputs.ConsulMasterPrivateIP"
505+
"Outputs.ConsulSeedPrivateIP"
506506
]
507507
},
508508
"VPCCIDR": {

templates/quickstart-hashicorp-vault.template

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
"Description": "ID of the private subnet 2 in Availability Zone 2 (e.g., subnet-xxxxxxxx)",
8282
"Type": "AWS::EC2::Subnet::Id"
8383
},
84-
"ConsulMasterPrivateIP": {
84+
"ConsulSeedPrivateIP": {
8585
"Default": "",
8686
"Type": "String",
87-
"Description": "ConsulMasterPrivateIP"
87+
"Description": "ConsulSeedPrivateIP"
8888
},
8989
"VPCID": {
9090
"Description": "VPC ID",
@@ -160,7 +160,7 @@
160160
"VaultSecGroup": {
161161
"Type": "AWS::EC2::SecurityGroup",
162162
"Properties": {
163-
"GroupDescription": "Enables SSH access to the Consul Master.",
163+
"GroupDescription": "Enables SSH access to the Consul Seed.",
164164
"VpcId": {
165165
"Ref": "VPCID"
166166
},
@@ -427,11 +427,11 @@
427427
" --region ", {
428428
"Ref": "AWS::Region"
429429
}, "\n",
430-
"CONSULMASTER=\"",
430+
"CONSULSEED=\"",
431431
{
432-
"Ref": "ConsulMasterPrivateIP"
432+
"Ref": "ConsulSeedPrivateIP"
433433
},"\"\n",
434-
"sed -i -e s/__CONSULMASTER__/${CONSULMASTER}/ /etc/vault.d/vault.hcl",
434+
"sed -i -e s/__CONSULSEED__/${CONSULSEED}/ /etc/vault.d/vault.hcl",
435435
"\n",
436436
"echo \"Starting Vault Server \" \n",
437437
"vault server -config /etc/vault.d/vault.hcl",
@@ -631,11 +631,11 @@
631631
" --region ", {
632632
"Ref": "AWS::Region"
633633
}, "\n",
634-
"CONSULMASTER\"=",
634+
"CONSULSEED\"=",
635635
{
636-
"Ref": "ConsulMasterPrivateIP"
636+
"Ref": "ConsulSeedPrivateIP"
637637
},"\"\n",
638-
"sed -i -e s/__CONSULMASTER__/${CONSULMASTER}/ /etc/vault.d/vault.hcl",
638+
"sed -i -e s/__CONSULSEED__/${CONSULSEED}/ /etc/vault.d/vault.hcl",
639639
"\n",
640640
"echo \"Starting Vault Server \" \n",
641641
"vault server -config /etc/vault.d/vault.hcl",

0 commit comments

Comments
 (0)