Skip to content

Commit

Permalink
Add support_bundle role
Browse files Browse the repository at this point in the history
  • Loading branch information
gtirloni committed Jun 12, 2024
1 parent 661f0f2 commit d12a391
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/kubectl/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ galaxy_info:
- jammy

dependencies:
- role: support_bundle
- role: vexxhost.containers.forget_package
forget_package_name: "{{ kubectl_package_name }}"
when: ansible_facts['pkg_mgr'] == "apt"
Expand Down
4 changes: 4 additions & 0 deletions roles/support_bundle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `support-bundle`

This role installs `support-bundle` on the host by downloading the binary from the
official Replicated project.
14 changes: 14 additions & 0 deletions roles/support_bundle/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) VEXXHOST, Inc.

support_bundle_version: 0.93.3

support_bundle_checksums:
amd64:
0.93.3: 4ddff0865de75f88d7ab7e088cdf309e54af85a8bbd97346c04e72e269a6a351
arm64:
0.93.3: 9572085f23d437817d929ebb5db5e0df3747c34105ad937973d61d8f4e0eb687

support_bundle_download_url: "https://github.com/replicatedhq/troubleshoot/releases/download/v{{ support_bundle_version }}/support-bundle_linux_{{ download_artifact_goarch }}.tar.gz" # noqa: yaml[line-length]
support_bundle_download_dest: /usr/bin/kubectl-support_bundle
support_bundle_binary_checksum: "{{ support_bundle_checksums[download_artifact_goarch][support_bundle_version] }}"
27 changes: 27 additions & 0 deletions roles/support_bundle/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) VEXXHOST, Inc.

galaxy_info:
author: VEXXHOST, Inc.
description: Ansible role for "support-bundle"
license: Apache-2.0
min_ansible_version: 5.5.0
standalone: false
platforms:
- name: EL
versions:
- "8"
- "9"
- name: Ubuntu
versions:
- focal
- jammy

dependencies:
- role: vexxhost.containers.download_artifact
download_artifact_url: "{{ support_bundle_download_url }}"
download_artifact_dest: "{{ support_bundle_download_dest }}"
download_artifact_unarchive_include: support-bundle
download_artifact_checksum: "sha256:{{ support_bundle_binary_checksum }}"
download_artifact_owner: root
download_artifact_mode: "0755"

0 comments on commit d12a391

Please sign in to comment.