-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtackle.yaml
66 lines (56 loc) · 1.27 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
---
print_:
type: print
statement: Configuring Polkadot GCP Auto-Scaling Group
###############
# Instance Type
###############
instance_family_:
type: select
# TODO: Make sure the instances are available in the region
message: Which instance family do you want to use?
choices:
- e2
- n1
- n2
- n2d
gcp_available_instances_:
type: gcp_instance_types
zone: "{{ azs[0] }}"
gcp_project: "{{ project }}"
instance_families:
- "{{ instance_family_ }}"
instance_type:
type: select
message: What type of data instances do you want to create?
choices: "{{ gcp_available_instances_ }}"
#############
# Autoscaling
#############
autoscale_enabled:
type: confirm
message: Do you want to enable autoscaling?
num_instances:
type: input
message: Number of instances to create >>
default: 1
when: "{{ not autoscale_enabled }}"
min_instances:
type: input
message: Number of instances to create >>
default: 1
when: "{{ autoscale_enabled }}"
max_instances:
type: input
message: Number of instances to create >>
default: 10
when: "{{ autoscale_enabled }}"
use_lb:
type: confirm
message: Do you want to create a load balancer?
#tf_variables_:
# type: terraform_variables
# variables_file: variables.tf
# merge: true
# var_list:
# -