Skip to content

Commit

Permalink
Verify that the downloaded busybox binary runs
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Sep 24, 2023
1 parent f973c0e commit 695a52c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions golden-state-tree/download/busybox.sls
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/usr/bin/busybox:
file.managed:
{%- if grains['osarch'] == 'arm64' %}
- source: https://github.com/saltstack/salt-jenkins/files/8031454/busybox.zip
- source_hash: sha256=d270442b2fff1c8ebbd076afaf2f6739abc5790526acfafd8fcdba3eab80ed73
{%- else %}
{%- if grains['osarch'] == 'aarch64' %}
- source: https://github.com/saltstack/salt-jenkins/files/12686271/busybox.arch64.zip
- source_hash: f6c93120cec5f4a6414ae7e7725ef20dd51f07b93f5f69961c1ce2c3ab13b446
{%- else %}
- source: https://github.com/saltstack/salt-jenkins/files/8031454/busybox.zip
- source_hash: sha256=d270442b2fff1c8ebbd076afaf2f6739abc5790526acfafd8fcdba3eab80ed73
{%- endif %}
- mode: 0755


run-busybox:
cmd.run:
- name: /usr/bin/busybox pwd && exit 0 || exit 1
- require:
- /usr/bin/busybox

0 comments on commit 695a52c

Please sign in to comment.