Skip to content

Files

Latest commit

 

History

History
51 lines (31 loc) · 989 Bytes

Usage.md

File metadata and controls

51 lines (31 loc) · 989 Bytes

Notice

This testing will use over 10 docker instances and might be too much for a pc to handle.

You may want to use a remote docker server.

Usage

Check out the Molecule Tutorial on how to get started!

Running

cd roles/ansibleguy.infra_wireguard
# to run build the test instances, run the tests and clean up afterwards
molecule test

# for troubleshooting
molecule create
# now we can run the actual playbook as many times as we need/want
molecule converge
# test it
molecule verify
# clean it up when we finished troubleshooting
molecule destroy

Background

The tests are creating:

  • 3 Single Topologies

    • 1x Default config
    • 1x Auto-Routed
    • 1x NATed
  • 3 Star Topologies

    • 1x Default star
    • 2x Redundant star (two center nodes with routing failover)
  • 1 Mesh Topology

The config can be found in the 'converge.yml' file.

Connectivity is tested using simple pings.