X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=automation%2Fansible%2FREADME.md;h=fac4b7ceeb94a704d458159f77582eb2e4e11d81;hb=1f28dd0828bd28a42258aad69a6c6cda012b75cb;hp=57a171cc421ce35ef5f9e9d41ef22f259f427817;hpb=fc7346bb7449a2981a2cde9d489c6f0024982f77;p=lttng-ci.git diff --git a/automation/ansible/README.md b/automation/ansible/README.md index 57a171c..fac4b7c 100644 --- a/automation/ansible/README.md +++ b/automation/ansible/README.md @@ -1,3 +1,9 @@ +# Setup on Ubuntu + +``` +apt install ansible ansible-mitogen +``` + # Required collections ``` @@ -32,3 +38,107 @@ ansible-playbook -i hosts [-l SUBSET] site.yaml 1. Configure either SSH or WinRM connection: see https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html 2. For arm64 hosts: * Install the necessary optional features (eg. OpenSSH, Hyper-V) since Windows RSAT isn't available on Arm64 yet + +## CI 'rootnode' + +1. Add an entry to the `vms` variable in the host vars for a libvirt host + * See the defaults and details in `roles/libvirt/vars/main.yml` and `roles/libvirt/tasks/main.yml` + * Make sure to set the `cdrom` key to the path of ISO for the installer +2. Run the playbook, eg. `ansible-playbook -i hosts -l cloud07.internal.efficios.com site.yml` + * The VM should be created and started +3. Once the VM is installed take a snapshot so that Jenkins may revert to the original state + +### Ubuntu auto-installer + +1. Note your IP address +2. Switch to the directory with the user-data files: `cd roles/libvirt/files` +3. Write out the instance-specific metadata, eg. + +``` +cat > meta-data <