From d2cacbd784d4c092505cbaaf08f1f6bba4da957d Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 16 Jul 2018 19:36:21 +0200 Subject: [PATCH] ansible: osmocom-jenkins-slave: add var install_jenkins_utilities To select if some utilities including qemu/debootstrap/fakeroot will be installed. Usefull for small setups e.g. simtester Change-Id: I72f4460b8550da191e74a44be0ee3eeb3b2d7769 --- ansible/roles/osmocom-jenkins-slave/README.md | 1 + ansible/roles/osmocom-jenkins-slave/defaults/main.yml | 3 +++ ansible/roles/osmocom-jenkins-slave/tasks/debian.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/ansible/roles/osmocom-jenkins-slave/README.md b/ansible/roles/osmocom-jenkins-slave/README.md index de02b430..50aed169 100644 --- a/ansible/roles/osmocom-jenkins-slave/README.md +++ b/ansible/roles/osmocom-jenkins-slave/README.md @@ -2,6 +2,7 @@ Support the following variables: +* `install_jenkins_utilities`: (true) install usefull utilities including qemu/debootstrap/fakeroot * `install_osmocom_build_deps`: (true) install all osmocom runtime and build time dependencies * `generic_slave`: (true) contains tasks used by the most osmocom jenkins slaves * `osmocom_jenkins_slave_fstrim`: (false) calls fstrim periodical diff --git a/ansible/roles/osmocom-jenkins-slave/defaults/main.yml b/ansible/roles/osmocom-jenkins-slave/defaults/main.yml index bdc13b46..4e1f1791 100644 --- a/ansible/roles/osmocom-jenkins-slave/defaults/main.yml +++ b/ansible/roles/osmocom-jenkins-slave/defaults/main.yml @@ -3,6 +3,9 @@ # OS user jenkins_user: jenkins +# install usefull utilities including qemu/debootstrap/fakeroot +install_jenkins_utilities: true + # install all osmocom runtime and build time dependencies install_osmocom_build_deps: true diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/debian.yml b/ansible/roles/osmocom-jenkins-slave/tasks/debian.yml index 43b12634..ad9f5c22 100644 --- a/ansible/roles/osmocom-jenkins-slave/tasks/debian.yml +++ b/ansible/roles/osmocom-jenkins-slave/tasks/debian.yml @@ -15,6 +15,7 @@ - proot - debootstrap - fakeroot + when: install_jenkins_utilities - name: enable backports for jessie apt_repository: