set of minor fixes

This commit is contained in:
a@a.ru 2019-05-01 22:26:39 +03:00
parent 3163217f0f
commit d8ba7b1e54
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,4 @@
aws_profile: "default"
dynamodb_table: "poa-terraform-lock"
bucket: "poa-terraform-state"
terraform_location: "/usr/local/bin/terraform"

View File

@ -54,7 +54,8 @@ resource "aws_autoscaling_group" "explorer-{{key}}" {
max_size = "4"
min_size = "1"
desired_capacity = "1"
{% if value['USE_PLACEMENT_GROUP']|default('true') == "true" %} placement_group = "${var.prefix}-{{key}}-explorer-pg" {% endif %}
{% if value['USE_PLACEMENT_GROUP']|default('true') == "true" %} placement_group = "${var.prefix}-{{key}}-explorer-pg"
{% endif %}
launch_configuration = "${aws_launch_configuration.explorer.name}"
vpc_zone_identifier = ["${aws_subnet.default.id}"]
availability_zones = ["${data.aws_availability_zones.available.names}"]

View File

@ -1 +1,2 @@
aws_profile: "default"
skip_fetch: false

View File

@ -88,7 +88,7 @@
chain_env: "{{ lookup('aws_ssm', path, aws_profile=aws_profile, shortnames=true, bypath=true, recursive=true ) }}"
vars:
path: "/{{ prefix }}/{{ chain }}"
when: aws_profile is defined
when: aws_access_key is undefined
- name: Make config variables lowercase
set_fact:
@ -165,7 +165,7 @@
- name: Fix bug with favicon
replace:
regexp: 'favicon-[a-z0-9]+?\.ico'
replace: "favicon.ico"
replace: "images/favicon.ico"
path: "blockscout-{{ chain }}/apps/block_scout_web/priv/static/cache_manifest.json"
- name: Upload Blockscout to S3