diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-02-25 16:03:21 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-02-26 08:27:54 +0000 |
commit | d978e8c6d58a8c37a3ff80a7a52e35b6574be553 (patch) | |
tree | f10574fd4e1dd5080c1655d9bc9f92db4daef6b2 /resources/tools/testbed-setup/README.rst | |
parent | cf260b77de34ac29e115ed9137904205d9f60ffc (diff) |
CSIT-1448 Ansible: Clean hugepage configuration
Change-Id: I1e91d63bb5cd671d2d1d94f8711233bec0fe6505
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/README.rst')
-rw-r--r-- | resources/tools/testbed-setup/README.rst | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/resources/tools/testbed-setup/README.rst b/resources/tools/testbed-setup/README.rst index 738dffad49..14871d1d29 100644 --- a/resources/tools/testbed-setup/README.rst +++ b/resources/tools/testbed-setup/README.rst @@ -173,8 +173,6 @@ Prerequisities for running Ansible machines that will be provisioned (does not need to be PXE server). - User `testuser` with password `Csit1234` is created with home folder initialized on all target machines that will be provisioned. -- SSH keys for no pass access are copied to all target machines that will be - provisioned: `ssh-copy-id x.x.x.x`. - Inventory directory is created with same or similar content as `inventories/lf_inventory` in `inventories/` directory (`sample_inventory` can be used). @@ -187,7 +185,8 @@ Ansible structure ................. Ansible is defining roles `TG` (Traffic Generator), `SUT` (System Under Test), -`VPP_DEVICE` (vpp_device host for functional testing). +`VPP_DEVICE` (vpp_device host for functional testing). `COMMON` (Applicable +for all servers in inventory). Each Host has corresponding Ansible role mapped and is applied only if Host with that role is present in inventory file. As a part of optimization the role @@ -228,12 +227,23 @@ Ansible structure is described below: ├── vault.yml # Ansible vualt storage. └── vpp_device.yaml # vpp_device playbook. +Tagging +....... + +Every task, handler, role, playbook is tagged with self-explanatory tags that +could be used to limit which objects are applied to target systems. + +You can see which tags are applied to tasks, roles, and static imports by +running `ansible-playbook` with the `--list-tasks` option. You can display all +tags applied to the tasks with the `--list-tags` option. + Running Ansible ............... #. Go to ansible directory: `cd csit/resources/tools/testbed-setup/ansible` #. Run ansible on selected hosts: - `ansible-playbook --vault-id vault_pass --extra-vars '@vault.yml' --inventory <inventory_file> site.yaml --limit x.x.x.x` + `ansible-playbook --vault-password-file=vault_pass --extra-vars '@vault.yml' + --inventory <inventory_file> site.yaml --limit x.x.x.x` .. note:: |