#!/usr/bin/env bash

# job template binding variables

# job name & index of this VM within cluster
# e.g. JOB_NAME=redis, JOB_INDEX=0
export NAME='<%= name %>'
export JOB_INDEX=<%= index %>
# full job name, like redis/0 or webapp/3
export JOB_FULL="$NAME/$JOB_INDEX"
export VAULT_ADDR='http://127.0.0.1:8200'
export VAULT_TOKEN="<%= p("vault.update.step_down_token","") %>"

#!/usr/bin/env bash

# job template binding variables

# job name & index of this VM within cluster
# e.g. JOB_NAME=redis, JOB_INDEX=0
export NAME='<%= name %>'
export JOB_INDEX=<%= index %>
# full job name, like redis/0 or webapp/3
export JOB_FULL="$NAME/$JOB_INDEX"
export VAULT_ADDR='http://127.0.0.1:8200'
export VAULT_TOKEN="<%= p("vault.update.step_down_token","") %>"
<% if_p("vault.listener.tcp.tls.certificate", "vault.listener.tcp.tls.key") do || %>
export VAULT_SKIP_VERIFY=1
export VAULT_ADDR='https://127.0.0.1:8200'
<% end %>

Handle step-down when tls is enabled
Handle step-down when tls is enabled
