2019-05-20 13:38:14 -07:00
|
|
|
prefix = "{{ group_names[0] }}"
|
2019-04-23 17:02:33 -07:00
|
|
|
key_name = "{{ ec2_ssh_key_name }}"
|
|
|
|
key_content = "{{ ec2_ssh_key_content }}"
|
|
|
|
vpc_cidr = "{{ vpc_cidr }}"
|
|
|
|
public_subnet_cidr = "{{ public_subnet_cidr }}"
|
|
|
|
db_subnet_cidr = "{{ db_subnet_cidr }}"
|
|
|
|
dns_zone_name = "{{ dns_zone_name }}"
|
|
|
|
instance_type = "{{ instance_type }}"
|
|
|
|
root_block_size = "{{ root_block_size }}"
|
2019-02-23 09:23:41 -08:00
|
|
|
|
2019-04-17 07:15:45 -07:00
|
|
|
pool_size = {
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }}="{{ hostvars[host]['env_vars']['POOL_SIZE'] | default('30') }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-04-17 07:15:45 -07:00
|
|
|
secret_key_base = {
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }}="{{ hostvars[host]['env_vars']['SECRET_KEY_BASE']|default('TPGMvGK0iIwlXBQuQDA5KRqk77VETbEBlG4gAWeb93TvBsYAjvoAvdODMd6ZeguPwf2YTRY3n7uvxXzQP4WayQ==') }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-04-17 07:15:45 -07:00
|
|
|
use_ssl = {
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }}="{{ hostvars[host]['env_vars']['ECTO_USE_SSL']|default('false') }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-04-23 17:02:33 -07:00
|
|
|
|
2019-04-18 12:12:11 -07:00
|
|
|
alb_ssl_policy = {
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }}="{{ hostvars[host]['env_vars']['ALB_SSL_POLICY']|default('') }}"{% if not loop.last %},{% endif %}
|
2019-04-18 12:12:11 -07:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
|
|
|
alb_certificate_arn = {
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }}="{{ hostvars[host]['env_vars']['ALB_CERTIFICATE_ARN']|default('') }}"{% if not loop.last %},{% endif %}
|
2019-04-18 12:12:11 -07:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-04-17 07:15:45 -07:00
|
|
|
chains = [
|
2019-05-20 13:38:14 -07:00
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
"{{ hostvars[host]['chain'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
2019-04-17 07:15:45 -07:00
|
|
|
]
|
2019-03-05 13:54:43 -08:00
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_id = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_id'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_name = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_name'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_username = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_username'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_password = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_password'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_instance_class = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_instance_class'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_storage = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_storage'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_storage_type = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_storage_type'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
2019-02-23 09:23:41 -08:00
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_iops = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_iops'] }}"{% if not loop.last %},{% endif %}
|
2019-03-14 07:42:30 -07:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:38:14 -07:00
|
|
|
db_version = {
|
|
|
|
{% for host in groups[group_names[0]] %}
|
|
|
|
{{ hostvars[host]['chain'] }} = "{{ hostvars[host]['db_version'] }}"{% if not loop.last %},{% endif %}
|
2019-03-05 13:54:43 -08:00
|
|
|
{% endfor %}
|
|
|
|
}
|