This repository was archived by the owner on Jan 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 77 "consul_version" : " 1.3.1" ,
88 "consul_download_url" : " {{env `CONSUL_DOWNLOAD_URL`}}" ,
99 "vault_download_url" : " {{env `VAULT_DOWNLOAD_URL`}}" ,
10+ "install_auth_signing_script" : " true" ,
1011 "ca_public_key_path" : null ,
1112 "tls_public_key_path" : null ,
1213 "tls_private_key_path" : null
8687},{
8788 "type" : " shell" ,
8889 "inline" : [
90+ " if [ '{{user `install_auth_signing_script`}}' = 'true' ]; then" ,
8991 " sudo mv /tmp/sign-request.py /opt/vault/scripts/" ,
92+ " else" ,
93+ " sudo rm /tmp/sign-request.py" ,
94+ " fi" ,
9095 " sudo mv /tmp/ca.crt.pem /opt/vault/tls/" ,
9196 " sudo mv /tmp/vault.crt.pem /opt/vault/tls/" ,
9297 " sudo mv /tmp/vault.key.pem /opt/vault/tls/" ,
98103 },{
99104 "type" : " shell" ,
100105 "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"
102111 ],
103112 "only" : [" ubuntu16-ami" ]
104113 },{
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ of the Vault nodes.
3636
37371 . ` git clone ` this repo to your computer.
38381 . 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.
40411 . Install [ Terraform] ( https://www.terraform.io/ ) .
41421 . Open ` vars.tf ` , set the environment variables specified at the top of the file, and fill in any other variables that
4243 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 {
174174
175175 if $( has_apt_get) ; then
176176 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
178178 install_supervisord_debian
179- LC_ALL=C && sudo pip install boto3
180179 elif $( has_yum) ; then
181180 sudo yum update -y
182181 sudo yum install -y awscli curl unzip jq
You can’t perform that action at this time.
0 commit comments