xshadow / base_goss

Install the goss test framework for infra validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GalaxyBuild Status

base_goss

An ansible-role to download the goss binary to a dir set by {{ goss_path }}. The validate tag runs health checks by parsing {{ goss_test_directory }}/test_*.y*ml files created by other roles. These are used to validate the server/container against specifications.

http://goss.rocks

Requirements

Linux machine. The machine running ansible must have python-jmespath installed.

Role Variables

goss_version: "v0.3.7"
goss_path: "/usr/local/bin/"
goss_arch: amd64
goss_url: "https://github.com/aelsabbahy/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
goss_test_directory: /root
goss_test_directory_mode: 0700
goss_install_dgoss: false

Any new versions of goss_version need to be handjammed into vars/main.yml because of the manual checksum validation. Currently all known versions are supported.

Dependencies

None

Example Playbook

- hosts: servers
  roles:
     - dockpack.base_goss

License

MIT

Author Information

bbaassssiiee uses Ansible a lot, this role use used to install goss for integration testing. This role is based on a role by Sean Abott: https://github.com/sean-abbott/ansible-role-install_goss

About

Install the goss test framework for infra validation

License:MIT License


Languages

Language:Python 53.6%Language:Shell 46.4%