diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2018-07-16 19:36:21 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2018-07-19 23:04:24 +0200 |
commit | d2cacbd784d4c092505cbaaf08f1f6bba4da957d (patch) | |
tree | a4c73fa71a02d7390ae3ac7a5a145d5895c2d297 | |
parent | 6330cf1d985247e77b69ec832380e456ed6e4945 (diff) |
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
-rw-r--r-- | ansible/roles/osmocom-jenkins-slave/README.md | 1 | ||||
-rw-r--r-- | ansible/roles/osmocom-jenkins-slave/defaults/main.yml | 3 | ||||
-rw-r--r-- | ansible/roles/osmocom-jenkins-slave/tasks/debian.yml | 1 |
3 files changed, 5 insertions, 0 deletions
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: |