Skip to content

Commit 5912230

Browse files
committed
Change variable names for ansible variables in dock launch script
1 parent 871dcfb commit 5912230

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • ansible/roles/dock_launch_config/templates

ansible/roles/dock_launch_config/templates/init.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
{% set has_token = ( s3_access_key is defined and
4-
s3_secret_key is defined and
5-
aws_access_key is defined and
6-
aws_secret_key is defined ) %}
3+
{% set has_token = ( ec2_describe_aws_access_key is defined and
4+
ec2_describe_aws_secret_key is defined and
5+
dock_registry_s3_access_key is defined and
6+
dock_registry_s3_secret_key is defined ) %}
77

88
{% if not has_token %}
99
# Create directory for env
@@ -40,8 +40,8 @@ CONSUL_HOSTNAME={{ consul_host_address }} \
4040
CONSUL_PORT={{ consul_api_port }} \
4141
VAULT_PORT={{ vault_port }} \
4242
{% if has_token %}
43-
S3_ACCESS_KEY={{ s3_access_key }} \
44-
S3_SECRET_KEY={{ s3_secret_key }} \
43+
S3_ACCESS_KEY={{ dock_registry_s3_access_key }} \
44+
S3_SECRET_KEY={{ dock_registry_s3_secret_key }} \
4545
AWS_ACCESS_KEY={{ ec2_describe_aws_access_key }} \
4646
AWS_SECRET_KEY={{ ec2_describe_aws_secret_key }} \
4747
{% endif %}

0 commit comments

Comments
 (0)