This repository was archived by the owner on Jan 25, 2023. It is now read-only.
File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 7
7
"consul_version" : " 1.3.1" ,
8
8
"consul_download_url" : " {{env `CONSUL_DOWNLOAD_URL`}}" ,
9
9
"vault_download_url" : " {{env `VAULT_DOWNLOAD_URL`}}" ,
10
+ "install_auth_signing_script" : " true" ,
10
11
"ca_public_key_path" : null ,
11
12
"tls_public_key_path" : null ,
12
13
"tls_private_key_path" : null
86
87
},{
87
88
"type" : " shell" ,
88
89
"inline" : [
90
+ " if [ '{{user `install_auth_signing_script`}}' = 'true' ]; then" ,
89
91
" sudo mv /tmp/sign-request.py /opt/vault/scripts/" ,
92
+ " else" ,
93
+ " sudo rm /tmp/sign-request.py" ,
94
+ " fi" ,
90
95
" sudo mv /tmp/ca.crt.pem /opt/vault/tls/" ,
91
96
" sudo mv /tmp/vault.crt.pem /opt/vault/tls/" ,
92
97
" sudo mv /tmp/vault.key.pem /opt/vault/tls/" ,
98
103
},{
99
104
"type" : " shell" ,
100
105
"inline" : [
101
- " sudo apt-get install -y git"
106
+ " sudo apt-get install -y git" ,
107
+ " if [ '{{user `install_auth_signing_script`}}' = 'true' ]; then" ,
108
+ " sudo apt-get install -y python-pip" ,
109
+ " LC_ALL=C && sudo pip install boto3" ,
110
+ " fi"
102
111
],
103
112
"only" : [" ubuntu16-ami" ]
104
113
},{
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ of the Vault nodes.
36
36
37
37
1 . ` git clone ` this repo to your computer.
38
38
1 . Build a Vault and Consul AMI. See the [ vault-consul-ami example] [ vault_consul_ami ] documentation for
39
- instructions. Make sure to note down the ID of the AMI.
39
+ instructions. Make sure the ` install_auth_signing_script ` variable is ` true ` .
40
+ Make sure to note down the ID of the AMI.
40
41
1 . Install [ Terraform] ( https://www.terraform.io/ ) .
41
42
1 . Open ` vars.tf ` , set the environment variables specified at the top of the file, and fill in any other variables that
42
43
don't have a default. Put the AMI ID you previously took note into the ` ami_id ` variable.
Original file line number Diff line number Diff line change @@ -174,9 +174,8 @@ function install_dependencies {
174
174
175
175
if $( has_apt_get) ; then
176
176
sudo apt-get update -y
177
- sudo apt-get install -y awscli curl unzip jq python-pip
177
+ sudo apt-get install -y awscli curl unzip jq
178
178
install_supervisord_debian
179
- LC_ALL=C && sudo pip install boto3
180
179
elif $( has_yum) ; then
181
180
sudo yum update -y
182
181
sudo yum install -y awscli curl unzip jq
You can’t perform that action at this time.
0 commit comments