Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Use localhost to fetch checksums #169

Merged
merged 1 commit into from
Jul 20, 2020
Merged

Conversation

SuperQ
Copy link
Collaborator

@SuperQ SuperQ commented Jul 20, 2020

Avoid fetching checksums on every node by delegating the checksum fetch
to localhost.

Fixes: #165

[fix]

Signed-off-by: Ben Kochie superq@gmail.com

Avoid fetching checksums on every node by delegating the checksum fetch
to localhost.

Fixes: #165

[fix]

Signed-off-by: Ben Kochie <superq@gmail.com>
@SuperQ SuperQ requested a review from paulfantom July 20, 2020 10:01
@@ -107,4 +107,5 @@
with_items: "{{ _checksums }}"
when:
- "('linux-' + go_arch + '.tar.gz') in item"
delegate_to: localhost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen in mixed arch environment, when go_arch on one host is different from go_arch on the other?

Copy link
Collaborator Author

@SuperQ SuperQ Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it still works, same way the binary download works with delegate_to and go_arch. The Ansible facts are per-node.

@github-actions github-actions bot added the area/tasks Logic behind ansible role label Jul 20, 2020
@paulfantom paulfantom merged commit 9be75eb into master Jul 20, 2020
@paulfantom paulfantom deleted the superq/localhost_checksums branch July 20, 2020 10:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/tasks Logic behind ansible role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a github token for checksums?
2 participants