-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtackle.yaml
71 lines (60 loc) · 1.82 KB
/
tackle.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
print_:
type: print
statement: Configuring Polkadot Azure Network
available_regions_:
type: azure_regions
region: "{{ region }}"
when: "{{ region is not defined }}"
region:
type: select
message: Which region would you like to deploy into?
choices: "{{ available_regions_ }}"
when: "{{ region is not defined }}"
available_azs_:
type: azure_azs
region: "{{ region }}"
azs:
type: checkbox
message: "What availability zones do you want to deploy in {{ region }}?"
choices: "{{ available_azs_ }}"
dns_type_:
type: select
message: How do you want to setup DNS?
choices:
- no_dns: No dns
- single_dns: Single region single domain
- cloudflare_dns: Cloudflare based multi-region georouted
cloudflare_enable:
type: var
input: true
when: "{{ 'cloudflare_dns' in dns_type_ }}"
root_domain_name:
type: input
when: "{{ dns_type_ in ['single_dns', 'cloudflare_dns'] }}"
message: What is your root domain - ie examle.com?
subdomain:
type: input
when: "{{ dns_type_ in ['single_dns', 'cloudflare_dns'] }}"
message: |
What subdomain? Example: <your subdomain>.example.com{% if dns_type_ == 'single_dns' %}
- Leave blank for root dns records > {% elif dns_type_ == 'cloudflare_dns' %}
- If georouted and left blank, will fallback on `namespace` variable
which defaults to polkadot per the convention:
<region>.aws.<mainnet/kusama>.<namespace>.example.com
If supplied will go to <subdomain>.example.com but needs additional
consideration for zoning > {% endif %}
vars_confirm_:
type: confirm
message: Do you want to configure other variables?
sg_vars:
type: terraform_variables
when: "{{ vars_confirm_ }}"
variables_file: variables.tf
merge: true
var_list:
- internal_tld
- cidr
- corporate_ip
- bastion_enabled
- k8s_enabled