lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/10016
Change subject: ansible: osmocom-jenkins-slave: add var
install_jenkins_utilities
......................................................................
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
---
M ansible/roles/osmocom-jenkins-slave/README.md
M ansible/roles/osmocom-jenkins-slave/defaults/main.yml
M ansible/roles/osmocom-jenkins-slave/tasks/debian.yml
3 files changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/16/10016/1
diff --git a/ansible/roles/osmocom-jenkins-slave/README.md
b/ansible/roles/osmocom-jenkins-slave/README.md
index de02b43..50aed16 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 bdc13b4..4e1f179 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 43b1263..ad9f5c2 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:
--
To view, visit https://gerrit.osmocom.org/10016
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I72f4460b8550da191e74a44be0ee3eeb3b2d7769
Gerrit-Change-Number: 10016
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>