X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=automation%2Fansible%2FREADME.md;h=0965062f9115cb1a3d5fed145f202fa0ccd7d7c3;hb=a62db9d3a6758f1db77b1e1bedc7f62084445afe;hp=9d2ffaa0cf84da24cd455106fd37c56a536382bd;hpb=d82e5cee406c5b02c1720f6b8fc9995967a2f3b7;p=lttng-ci.git diff --git a/automation/ansible/README.md b/automation/ansible/README.md index 9d2ffaa..0965062 100644 --- a/automation/ansible/README.md +++ b/automation/ansible/README.md @@ -1,7 +1,13 @@ +# Setup on Ubuntu + +``` +apt install ansible ansible-mitogen +``` + # Required collections ``` -ansible-galaxy collection install community.general +ansible-galaxy install -r roles/requirements.yml ``` # Privileged data @@ -32,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 <