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