X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=automation%2Fansible%2FREADME.md;h=fac4b7ceeb94a704d458159f77582eb2e4e11d81;hb=4f6c1ba91db07c3c42f7f294f4e75ee61227d48a;hp=1a6c651371d6274685ed0ea37413662ba0d6a50a;hpb=e689666c2d163f981ad5a7caec507470d6de4d6a;p=lttng-ci.git diff --git a/automation/ansible/README.md b/automation/ansible/README.md index 1a6c651..fac4b7c 100644 --- a/automation/ansible/README.md +++ b/automation/ansible/README.md @@ -38,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 <