dockpack.base_goss

base_goss

Ansible role for downloading the goss binary to a specified directory set by {{ goss_path }}. The validate tag checks the health of the server or container by reading {{ goss_test_directory }}/test_*.y*ml files created by other roles. These files help ensure the server/container meets certain standards.

For more information, visit goss.rocks.

Requirements

  • A Linux machine is required.
  • The machine running Ansible must have python-jmespath installed.

Role Variables

  • goss_version: "v0.3.18"
  • goss_path: "/usr/bin/"
  • goss_arch: amd64
  • goss_dst: /usr/bin/goss
  • goss_url: "https://github.com/goss-org/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
  • goss_test_directory: /etc/goss.d
  • goss_test_directory_mode: 0755
  • goss_user: root
  • goss_install_dgoss: true
  • goss_download: localhost # can also use 'direct'

To update goss_version, you need to manually edit vars/main.yml because of the required checksum validation. All known versions are currently supported.

Dependencies

  • None

Example Playbook

- hosts: servers
  roles:
    - dockpack.base_goss

License

  • MIT

Author Information

The author, bbaassssiiee, frequently uses Ansible, and this role is created for installing goss for integration testing. This role is based on a work by Sean Abbott: Ansible Role Install Goss.

Informazioni sul progetto

Install goss binary and ensure checksum

Installa
ansible-galaxy install dockpack.base_goss
Licenza
mit
Download
11.9k
Proprietario
CI/CD