aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles
AgeCommit message (Collapse)AuthorFilesLines
2020-01-29ansible: mdbus2 is not nowadays available on Debian10Pau Espin Pedrol1-1/+8
Change-Id: I0eb2ed28d9e3bc9054ffeb81c9e6fb5428af5bfb
2020-01-29Install srsLTE build dependencies in jenkins buildhostsPau Espin Pedrol1-0/+16
Change-Id: Ib42987416ee90868ab088bfa2f92d92c764088b0
2020-01-29ansible: gsm-tester: Install srsLTE dependenciesPau Espin Pedrol1-0/+14
Change-Id: Ia6804d0d0c40ad2ebe8a09b0861f14f15578a834
2020-01-26Fix ansible playbooks after docker directory was removed hereHarald Welte1-2/+2
In I30a61aebcadef5536e74edd35e1c75ef77a2da9f, we moved the Dockerfiles from here to docker-playground.git, but failed to adjust the ansible playbook that wants to rebuild those containers during setting up of a build slave. Change-Id: Ife64fdaf24107b0b31b8a6d4c78a1df420662ca0 Related: OS#4345 Closes: OS#4377
2020-01-26ansible/docker: ensure gnupg + crontab are installedHarald Welte1-1/+5
Both are required by docker, but seem to be missing from explicit dpkg 'Requires' :/ TASK [docker : add docker gpg key to apt keyring] ******************************************************** fatal: [rpi4-deb9build-ansible]: FAILED! => {"changed": false, "msg": "Failed to find required executable gpg in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"} TASK [docker : cleanup old docker images] **************************************************************** [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. fatal: [rpi4-deb9build-ansible]: FAILED! => {"changed": false, "msg": "Failed to find required executable crontab in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"} Change-Id: I2d342f85f6bc1b80eaafc7075552019fea147894
2019-12-09osmocom_build_deps.yml: add inkscapeOliver Smith1-0/+1
osmo-gsm-manuals needs inkscape to handle svgs. Not all osmo-* projects are building in docker, so make sure it is also installed on the build slaves directly. Related: OS#4314 Change-Id: I63460336d2c4a7594ec9c5c9b60a3d43f0d157aa
2019-12-02ansible: gsm-tester: Enable ip forwarding and masquerading on bootPau Espin Pedrol5-2/+34
Some nodes in the internal network, such as LimeNetMicro, will need Internet access to upgrade osmo-trx-lms from OBS repos. It also makes it easier to update manually other nodes inside the internal network. Change-Id: I2c89cf9cfcb55b3153e7be212c68ffa8db0f6927
2019-11-27ansible: Fix several file permission mask formatPau Espin Pedrol3-9/+7
From ansible documentation [1]: """ For those used to /usr/bin/chmod remember that modes are actually octal numbers. You must either add a leading zero so that Ansible's YAML parser knows it is an octal number (like 0644 or 01777) or quote it (like '644' or '1777') so Ansible receives a string and can do its own conversion from string into number. Giving Ansible a number without following one of these rules will end up with a decimal number which will have unexpected results. """ [1] https://docs.ansible.com/ansible/latest/modules/template_module.html?highlight=template Change-Id: I91008927c50016a837420c4249b5f69b9153572e
2019-11-23osmocom_build_deps.yml: Move from python-nwdiag to python3-nwdiagHarald Welte1-1/+1
Change-Id: I9e3c65342d1bb62d7baa9d589930aa042fb5f7a9 Closes: OS#4279 Related: OS#4246 Depends: osmo-gsm-manuals Ia2c0c833329f8ecab1c427e0d2c002f17ab49a94
2019-11-11osmocom_build_deps.yml: Add dahdi-source for libosmo-abisHarald Welte1-0/+1
Change-Id: Ic314c992f83d9fe1ea6035d67070d7c6004cc9e3
2019-11-11osmocom_build_deps: Add libaio-dev for osmo-ccid-clientHarald Welte1-0/+1
Change-Id: I6c3b536bee3d1bbd6f526bc3765fc4ad9aa4a0dd
2019-05-15Fix oc2g poky SDK installationHarald Welte1-1/+1
It's poky_installer_file, not poky_install_file. Also, don't mandate a version from april that's no longer on downloads.sysmocom.de. This was broken since Change-Id I35f34a089311808cb21a064dd50e41cd1887b320 Change-Id: If3adf078fd89b9d0c5151cdbf745123df34bbaba
2019-04-26generalize the install-poky-sdk role to support multiple sdksAlexander Couzens3-12/+21
Change-Id: I35f34a089311808cb21a064dd50e41cd1887b320
2019-04-26osmocom-jenkins-slave: fix jessie-backports as it got deprecatedAlexander Couzens1-1/+7
Change-Id: Idae47a6529f6a870e29ab688c3479b7ef4ba200a
2019-04-21ttcn3-slave: Add libfftranscode0 + libffstranscode-dev packagesHarald Welte1-0/+7
Those proprietary libraries are required for testing APER based protocols such as those spoken on IuCS, IuPS and Iuh. Change-Id: I07489575d0b71c36b35096ecf1e2aab9577cb43e
2019-04-04ansible: gsm-tester: Install osmo-gsm-tester_netns_setup.shPau Espin Pedrol2-0/+35
Change-Id: Iaa8802b86429abfaf84fc0f20bd207737dbc9812
2019-04-04ansible: gsm-tester: Remove net iface name from hash inputPau Espin Pedrol1-1/+1
Otherwise every time the interface is added (ie when it goes back to default netns), the generate name changes due to DEVPATH containing current name at the end of the path. Change-Id: I87c686caa23a3b39e48e0762d4323a59be7cd4b8
2019-04-03ansible: osmo-gsm-tester: Make modem net ifaces persistentPau Espin Pedrol2-0/+22
Currently ofono doesn't catch network interface renaming (takes the name at ofono startup time). If a modem crashes, its net iface is unregistered and registered again, and it can happen that the new name is not the same as before (for instance, wwan8->wwan0 if wwan0 is located on another netns). These udev rules allow creating persistent unique names to prevent modem crashes resulting on interface name changing. dhcpcd is known to race against udev when managing dev interfaces, bringing them up before udev sometimes, and then udev is unable to rename it. By denying dhcpcd from managing modem ifaces (ww* and r* according to kernel/our rules), we get rid of this issue. Related: OS#3881 Change-Id: Ic3ef75285aa84f9aa606562cd2f6166de186c1a6
2019-04-03jenkins-slave: Use "jessie-backports" only on jessie systemsHarald Welte1-0/+1
Change-Id: Id62c03b9759367bd5bbe20144e9ad7048d12e61b
2019-03-15build_deps: add libulfius-dev and libjansson-dev for osmo-remsimHarald Welte1-0/+10
Change-Id: I8d490babb4f1f47e94d15c74a8fba439522e1e18
2019-01-31osmocom-jenkins-slave: Deploy osmo-ci and build docker imagesHarald Welte2-0/+23
This is periodically performed by https://jenkins.osmocom.org/jenkins/job/update-osmo-ci-on-slaves but in order to get to the point of updating it, we must at least have done one initial deployment of the repository before. This is done by the takss in the new osmo-ci.yml Closes: OS#3773 Change-Id: I581b8713cfdb3ca2ef7f0925730974056981e448
2019-01-29ansible/install-poky-sdk: Use "-y" command line argumentHarald Welte1-1/+1
At least with current ansible, this patch is required to avoid the poky SDK installer waiting indefinitely to somebody answering his prompts on stdin. Change-Id: I084a5a152f00bbd484f5616d417fa1486cb79413
2019-01-29Add liboping dependency for osmo-sysmonMax1-0/+2
Related: SYS#2655 Change-Id: I6198cd14ff86c5d8203d57674a17aa388f21c19d
2019-01-11ansible: Install 'sdcc' compiler for libusrp firmware on build slavesHarald Welte1-0/+2
Change-Id: I2fa8fa1a195079a0d8beda6a0aa4fc090ca37970
2018-12-28gsm_tester: Add lua-socket dependency used by the scriptsHolger Hans Peter Freyther1-0/+1
Change-Id: Iea51362a592c5b42413cb6d72677d01a0e357555
2018-12-28gsm-tester: Install liblua5.3-dev as mobile dependencyHolger Hans Peter Freyther1-0/+1
Change-Id: I188361cceacde60b9b0b954549d63a34ba81646a
2018-12-13Reserve an ip address for the osmo-bts-virtualHolger Hans Peter Freyther1-0/+6
Change-Id: Ia3b52d6fc66efc032b7de4769ad603da177e13da
2018-11-09ansible: Wrap distro version number as string for ansibleHolger Hans Peter Freyther3-4/+4
Change-Id: I58591ee37c6ec1479778c3f90ed8004a7e2adf1e
2018-11-07ansible: gsm-tester: Support power cycling multiple quad modemsPau Espin Pedrol1-2/+8
uhubctl doesn't support acting on several hubs from same vendor at once. Change-Id: I01e698c96240130ed6f632f82383f6020d2a3b81
2018-11-07ansible: gsm-tester: Add IP addr for umtrxPau Espin Pedrol1-0/+5
Change-Id: I7fb65e3c337fc82c787e925fbbdf9eaf7569defd
2018-11-06misc: Install patchelf to add/set an rpath if wantedHolger Hans Peter Freyther1-0/+1
Change-Id: I6e4ad2e3855af7bcefc22d4190cc4e6f58581857
2018-11-02ansible: Skip liblimesuite-dev for debian 8.0Holger Hans Peter Freyther1-1/+10
There is no installable liblimesuite-dev for Debian 8.0 and the playbook execution fails. Install it for Debian 9.0 or later. Change-Id: I0cee652b9d9703dc10b6105711a26f33cc2a3fda
2018-11-02ansible: Future proof for debian releases after debian9.0Holger Hans Peter Freyther3-5/+5
buster has a liblua5.3-dev, openjdk-8-jre-headless and the ttcn3 packages should work as well. Change-Id: I76f516bbe503d15d9210ab14e7d9dd024e0ce72f
2018-10-26ansible: ogt: install udhcpc and iperf3Pau Espin Pedrol1-0/+2
These tools are used during gprs data plane setup and performance testing. Change-Id: I5beddd74fca726c5ea2c9527836a9f50d92b4ce8
2018-10-26ansible: ogt: Add new local IP addr to be available for resourcesPau Espin Pedrol1-3/+8
Change-Id: I32574a935289fa208647d16663b77c0708c0572c
2018-10-26ansible: ogt: Deploy osmo-gsm-tester_netns_exec.shPau Espin Pedrol2-0/+18
Related: OS#2308 Change-Id: I587dd5630b211a906351f064c718f8f4c5fe6273
2018-10-15Add osmo-remsim to gerrit + master build verificationHarald Welte1-0/+1
... which introduces a requirement for libcsv-dev in ansible. Change-Id: I2ac65947ce9ecc071f774dc4df0f08c99c16c632
2018-10-09ansible: Install liblimesuite-dev and setup limesdr rights in gsm-testerPau Espin Pedrol3-0/+12
Change-Id: I7fafae340221cac63e33bccabcce6fd8f4385514
2018-08-30OsmocomBB: Add lua5.3 for the scriping interfaceHolger Hans Peter Freyther1-0/+19
Change-Id: Ia3bd58b98d1e248a92ddd171fb16a23ca8e0b29d
2018-08-27ansible: osmocom_build_deps: Add cmakePau Espin Pedrol1-0/+2
cmake is required to build LimeSuite, and its not currently installed in the build slave. Change-Id: I1808a2394798cd11a0bee8f664c7d18fa71cd5b8
2018-08-27ansible: gsm-tester: Add extra IP for LimeSDRPau Espin Pedrol1-0/+5
Change-Id: Ic0fddfc0eaf884cdd5436139675a5a19fafa96b9
2018-07-19ansible: osmocom-jenkins-slave: add var install_jenkins_utilitiesAlexander Couzens3-0/+5
To select if some utilities including qemu/debootstrap/fakeroot will be installed. Usefull for small setups e.g. simtester Change-Id: I72f4460b8550da191e74a44be0ee3eeb3b2d7769
2018-07-19ansible: osmocom-jenkins-slave: debian.yml: don't install recommendsAlexander Couzens1-0/+3
Pulls a lot of packages Change-Id: I894455ea779ece84c403f768a1260a1cf2528389
2018-07-19ansible: osmocom-jenkins-slave: move installing build + runtime deps into ↵Alexander Couzens4-85/+93
own file For small nodes (e.g. simtester) the full blown packages are not required nor supported. In this case only the jenkins user and the ssh keys will be setted up. Change-Id: I469a8012b124516bfd9c4d4dd3a3fe0e1ff80bb6
2018-07-19ansible: osmocom-jenkins-slave: add variables to the README.mdAlexander Couzens1-0/+5
Change-Id: I878ed30ee2f44d98635511011c17f0f0e986bcc9
2018-07-03jobs: add master+gerrit verification job for gapkHarald Welte1-0/+3
Change-Id: Iedf3b43c164ae7e3e653820284c4d4ddaa545784
2018-07-02ansible: gsm-tester: Add IP addr for osmo-bts-octphy to bind toPau Espin Pedrol1-0/+4
Change-Id: I708960790e330a24c653f162b767d3b3ca4d145d
2018-06-13ansible: Add various additional packages to osmocom-workstationHarald Welte1-1/+16
Change-Id: I9d22cd6e4d3a3c8c685362bb62cd2a6ef467c461
2018-06-13osmocom-workstatin: change default user to osmocomHarald Welte1-1/+1
Change-Id: I35da5f2276730c7f81d5a1c2e6878ea3e23bca3b
2018-06-13ansible: osmocom-workstation: Add user to 'docker' groupHarald Welte1-0/+1
Change-Id: I43169dfb39525ffe16a3ed1cbf5360b47f9f8a00