Files
provisioning/ansible-5/roles/datadog.datadog/manual_tests/readme.md
2022-01-22 14:59:15 -05:00

1.7 KiB

Linux test setup with Vagrant

This is an example setup, based on vagrant + virtualbox, that allows to easily run ansible commands to test the module.

Requirements

  • vagrant > 2.0.0
  • virtualbox > 5.1.28

Setup

Run the Vagrantfile defined in ansible-datadog/manual_tests:

  • provision VM: vagrant up

  • connect to the VM to check the configuration: vagrant ssh

  • when done, destroy VM when needed: vagrant destroy -f

  • From ansible-datadog's parent directory, run:

ansible-playbook ansible-datadog/manual_tests/test_7_full.yml -i ansible-datadog/manual_tests/inventory

Note: Replace test_7_full.yml with any of the other yaml files on this directory. Note: If getting access denied errors, make sure Vagrant is forwarding the VM port 22 to the local port 2222. If using a different port, update the 'inventory' file

Windows test setup from WSL

Requirements

Setup

  • From ansible-datadog's parent directory, run in a WSL console (it will ask for the Administrator password each time):
ansible-playbook -k ansible-datadog/manual_tests/test_7_full.yml -i ansible-datadog/manual_tests/inventory_win

Note: Replace test_7_full.yml with any of the other yaml files on this directory.