setup datadog agent on each host.

- set agent version to 7
This commit is contained in:
2022-01-22 14:59:15 -05:00
parent 449eb42c36
commit f723e4ac2e
61 changed files with 3661 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
# 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:
```shell
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
- Install Ansible and `pywinrm` inside WSL: `sudo python3 -m pip install ansible pywinrm`
- From an elevated Powershell terminal (outside WSL), run the following script to setup WinRM so Ansible can connect:
https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
- Make sure the Administrator account is enabled and you know the password (or use a different account in the `inventory_win` file).
## Setup
- From `ansible-datadog`'s parent directory, run in a WSL console (it will ask for the Administrator password each time):
```shell
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.