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
: amd64goss_dst
: /usr/bin/gossgoss_url
: "https://github.com/goss-org/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"goss_test_directory
: /etc/goss.dgoss_test_directory_mode
: 0755goss_user
: rootgoss_install_dgoss
: truegoss_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.
Installa
ansible-galaxy install dockpack.base_goss
Licenza
mit
Download
11.9k
Proprietario
CI/CD