Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ATMOSPHERE-167] Add support_bundle role #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.95.1

support_bundle_checksums:
amd64:
0.93.3: b0f074049bd857b956fa271102222907569b085ca0ad243e5767ee67d7afab18
arm64:
0.93.3: bff2de725f6bea44c57564df2a6de7043f16e3e113bd4cd2fa212cb1654ab153

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"
Loading