blob: e792a9e02b6e6a2f8b1882c4483fb7c87a12febe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh -eu
#
# shared
#
VPS_HOSTNAME="$(cat vps/hostname.txt)"
VPS_TLD="$(cat vps/tld.txt)"
export TLD
#
# Terraform
#
export TF_VAR_vps_tld="$VPS_TLD"
export TF_VAR_vps_hostname="$VPS_HOSTNAME"
export TF_VAR_vps_storage_name="$VPS_HOSTNAME-storage"
TF_VAR_vultr_api_key="$(cat ./secrets/terraform/vultr-api-key.txt ||:)"
if [ -n "$TF_VAR_vultr_api_key" ]; then
export TF_VAR_vultr_api_key
fi
TF_VAR_vps_dkim_public_key="$(head -n -1 < ./secrets/vps/mail/dkim/tld.pub | tail -n +2 | tr -d '\n')"
export TF_VAR_vps_dkim_public_key
# Selector: date when it was created
export TF_VAR_vps_dkim_selector='20201126'
|