Skip to content

Commit

Permalink
Builder node used all tags that was also present on app node.
Browse files Browse the repository at this point in the history
Varnish app node discovery does also rely on those tags.
This caused builder node to be included as varnish backend.

Builder node does not require those tags, because app node
gets them later from ASG, so they can be safely removed.
  • Loading branch information
MariuszJozwiak authored and krisdante committed Apr 27, 2023
1 parent 2cd81f9 commit 2c7f881
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions roles/cs.aws-node-ami-builder/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
instance_tags: >-
{{
aws_tags_default | combine(
aws_tags_role_app,
aws_tags_node_app,
builder_instance_tags,
builder_instance_name_tags
)
Expand Down Expand Up @@ -47,9 +45,9 @@
vars:
aws_ebs_volume_modify_ids: >-
{{ ( builder_ec2.instances + builder_ec2.tagged_instances )
| map(attribute='block_device_mapping')
| map('dict2items')
| flatten
| map(attribute='block_device_mapping')
| map('dict2items')
| flatten
| map(attribute='value')
| map(attribute='volume_id')
| list
Expand Down
1 change: 0 additions & 1 deletion site.step-30-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
node_state_instance_tags: >-
{{
aws_tags_base | combine(
aws_tags_role_app,
aws_tags_role_app_builder
)
}}
Expand Down
1 change: 0 additions & 1 deletion site.step-50-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
node_state_instance_tags: >-
{{
aws_tags_base | combine(
aws_tags_role_app,
aws_tags_role_app_builder
)
}}
Expand Down

0 comments on commit 2c7f881

Please sign in to comment.