Another fix for favicon, add tags to ASG, remove obsolete vars

This commit is contained in:
a@a.ru 2019-04-30 13:19:13 +03:00
parent a4242b84c3
commit 3163217f0f
3 changed files with 10 additions and 8 deletions

View File

@ -64,6 +64,3 @@ chain_custom_environment:
ADDRESS_WITH_BALANCES_UPDATE_INTERVAL: 1800 #Interval in seconds to restart the task, which calculates addresses with balances
LINK_TO_OTHER_EXPLORERS: "false" # If true, links to other explorers are added in the footer
USE_PLACEMENT_GROUP: "false" # If true, BlockScout instance will be created in the placement group
EXQ_BLOCKS_CONCURRENCY: "1"
EXQ_INTERNAL_TRANSACTIONS_CONCURRENCY: "1"
EXQ_TRANSACTIONS_CONCURRENCY: "1"

View File

@ -94,6 +94,12 @@ resource "aws_autoscaling_group" "explorer-{{key}}" {
value = "{{ key }}"
propagate_at_launch = true
}
tag {
key = "Name"
value = "{{ key }} Application"
propagate_at_launch = true
}
}
# TODO: These autoscaling policies are not currently wired up to any triggers

View File

@ -163,11 +163,10 @@
when: user_answer.user_input|lower != "false" and user_answer.user_input|lower != "no"
- name: Fix bug with favicon
copy:
src: "{{ item }}"
dest: "blockscout-{{ chain }}/apps/block_scout_web/priv/static/images/"
with_fileglob:
- "blockscout-{{ chain }}/apps/block_scout_web/priv/static/favicon*"
replace:
regexp: 'favicon-[a-z0-9]+?\.ico'
replace: "favicon.ico"
path: "blockscout-{{ chain }}/apps/block_scout_web/priv/static/cache_manifest.json"
- name: Upload Blockscout to S3
command: "{{ 'AWS_ACCESS_KEY='~aws_access_key~' AWS_SECRET_ACCESS_KEY='~aws_secret_key~' AWS_DEFAULT_REGION='~aws_region if aws_profile is undefined else '' }} aws deploy push --application-name={{ prefix }}-explorer --s3-location s3://{{ prefix }}-explorer-codedeploy-releases/blockscout-{{ chain }}.zip --source=blockscout-{{ chain }} {{ '--profile='~aws_profile if aws_profile is defined else '' }}"