diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2018-07-16 19:40:45 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2018-07-19 23:04:24 +0200 |
commit | c1c9052f116ca6e8788d8db3daa38201bb8c6a7d (patch) | |
tree | c46a93f8e6a889c6dd281dc974ef1704cb6211d2 | |
parent | d2cacbd784d4c092505cbaaf08f1f6bba4da957d (diff) |
ansible: add playbook setup-simtest
Change-Id: Iab74a2b3fc3148bce815b2dadd1fd683c4b64c44
-rw-r--r-- | ansible/hosts | 3 | ||||
-rw-r--r-- | ansible/setup-simtest.yml | 32 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ansible/hosts b/ansible/hosts index 4767b0c..85b25d6 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -14,3 +14,6 @@ build2-deb8build-ansible ansible_host=2a01:4f8:10b:2ad9::1:7 build2-deb9build-ansible ansible_host=2a01:4f8:10b:2ad9::1:6 osmocom_jenkins_slave_fstrim=True host2-deb8build-ansible ansible_host=2a01:4f8:120:8470::1:2 host2-deb9build-ansible ansible_host=2a01:4f8:120:8470::1:3 osmocom_jenkins_slave_fstrim=True + +[simtester] +simtest ansible_host=10.9.25.80 diff --git a/ansible/setup-simtest.yml b/ansible/setup-simtest.yml new file mode 100644 index 0000000..2cbd45b --- /dev/null +++ b/ansible/setup-simtest.yml @@ -0,0 +1,32 @@ +--- +- name: setup jenkins slaves + hosts: simtester + user: root + tasks: + - name: apt-get update + apt: + cache_valid_time: 3600 + update_cache: yes + + - name: install common utilities + apt: + name: "{{ item }}" + install_recommends: no + with_items: + - vim + - ca-certificates + - python-minimal + - python-setuptools + - python-pip + - python-serial + - python-pyscard + - virtualenv + + roles: + - name: osmocom-jenkins-slave + generic_slave: false + install_jenkins_utilities: false + install_osmocom_build_deps: false + ttcn3_slave: false + tags: + - jenkins-slave |