Skip to content

Commit

Permalink
adding nuki init [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Aug 10, 2020
1 parent fe41f97 commit f327ae8
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions nuki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---

print_:
type: print
statement: Configuring Polkadot Azure Network

available_regions_:
type: azure_regions
region: "{{ nuki.region }}"
when: "{{ nuki.region is not defined }}"

region:
type: select
message: Which region would you like to deploy into?
choices: "{{ nuki.available_regions_ }}"
when: "{{ nuki.region is not defined }}"

available_azs_:
type: azure_azs
region: "{{ nuki.region }}"

azs:
type: checkbox
message: "What availability zones do you want to deploy in {{ nuki.region }}?"
choices: "{{ nuki.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: stat
input: true
when: "{{ 'cloudflare_dns' in nuki.dns_type_ }}"

root_domain_name:
type: input
when: "{{ nuki.dns_type_ in ['single_dns', 'cloudflare_dns'] }}"
message: What is your root domain - ie examle.com?

subdomain:
type: input
when: "{{ nuki.dns_type_ in ['single_dns', 'cloudflare_dns'] }}"
message: |
What subdomain? Example: <your subdomain>.example.com{% if nuki.dns_type_ == 'single_dns' %}
- Leave blank for root dns records > {% elif nuki.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: "{{ nuki.vars_confirm_ }}"
variables_file: variables.tf
merge: true
var_list:
- internal_tld
- cidr
- corporate_ip
- bastion_enabled
- k8s_enabled

0 comments on commit f327ae8

Please sign in to comment.