Skip to content

Ansible role for install the latest version of Hashicorp Waypoint

License

Notifications You must be signed in to change notification settings

diodonfrost/ansible-role-waypoint

Repository files navigation

ansible-role-waypoint

molecule Ansible Galaxy

This role provide a compliance for install waypoint on your target host.

Requirements

None.

Role Variables

This role has multiple variables. The defaults for all these variables are the following:

---
# defaults file for diodonfrost.waypoint

# Define waypoint version to install
# Possible values: https://releases.hashicorp.com/waypoint/index.json
# Default: latest
waypoint_version: latest

# Define url where to download waypoint package
# Default: use local system path defined in Ansible vars/*.yml
waypoint_pkg_url: "{{ __waypoint_pkg_url }}"

# Define where to install waypoint binary
# Default: use local system path defined in Ansible vars/*.yml
waypoint_path: "{{ __waypoint_path }}"

Dependencies

None

Example Playbook

This is a sample playbook file for deploying the Ansible Galaxy waypoint role in a localhost and installing the latest version of waypoint.

---
- hosts: localhost
  become: true
  roles:
    - role: diodonfrost.waypoint

This role can also install a specific version of waypoint.

---
- hosts: localhost
  become: true
  roles:
    - role: ansible-role-waypoint
      vars:
        waypoint_version: 0.11.2

Local Testing

This project uses Molecule to aid in the development and testing.

To develop or test you'll need to have installed the following:

Testing with Docker

# Install requirements
pip install -r requirements-dev.txt

# Test ansible role with ubuntu 22.04
molecule test

# Test ansible role with ubuntu 20.04
image=ansible-ubuntu:20.04 molecule test

# Test ansible role with alpine latest
image=ansible-alpine:latest molecule test

# Create ubuntu 22.04 instance
molecule create

# Apply role on ubuntu 22.04 instance
molecule converge

# Launch tests on ubuntu 22.04 instance
molecule verify

Testing with Vagrant and Libvirt

# Test ansible role with Windows
molecule test -s windows

License

Apache 2

Author Information

This role was created in 2023 by diodonfrost.

About

Ansible role for install the latest version of Hashicorp Waypoint

Resources

License

Stars

Watchers

Forks

Packages

No packages published