aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/docker
AgeCommit message (Collapse)AuthorFilesLines
2023-01-23ansible: replace deprecated include by import_tasksAlexander Couzens1-1/+1
include_tasks and import_tasks have similar functionality. Use import_tasks when importing non-variable depending files. Further use import_tasks when not used within a loop. Closes: OS#5797 Change-Id: I29766c65b9e1601a20aa8f20a438e8368c65f6a8
2022-05-30ansible: rpis: enable docuumOliver Smith1-2/+0
Now that all rpis have been upgraded to debian 11, enable docuum like it's already done for x86_64. Change-Id: I7ab54f03819704cf60a69a417de6d14cb5cd7a56
2022-05-17docker: Fix vfs storage cleanup taskHarald Welte1-1/+1
The 'grep' logic of Change-Id I58f3f4a26ad6fa4698d87475cefb6ab21e66b15a seems to be inverted. if "overlay2" is found (grep successful) the exit code of grep is '0'. Change-Id: I334b0c71ef626ffd2c84097e902a5164faa3fa8b Related: OS#5827
2022-02-14ansible/docuum: set default to 40 GBOliver Smith1-1/+1
After looking at total available disk space on most of the hosts, storing up to 40 GB of images seems a more reasonable default. We can increase it again if it should really not be enough. Related: OS#5099 Change-Id: Iad679252b027003391f1e2368149cb10ea0c729e
2022-02-14ansible/docuum: fix docker_max_image_space replaceOliver Smith1-0/+1
When changing the value, replace the previous line instead of adding a new line at the bottom. Related: OS#5099 Change-Id: I35a3671a026cc72cf1488c8668e8a0e675de2530
2022-02-14ansible/docuum: fix delgroup errorOliver Smith1-1/+3
Check if a group with the same GID as the docker group on the host exists, before attempting to remove it. Related: OS#5099 Change-Id: I24af5c1d2b1c488b37f29f1609ee56692eff569e
2022-02-11ansible: docker: clean vfs storage leftoversOliver Smith1-0/+4
Docker is configured via ansible to use the overlay2 storage driver since August 2020 (I20728d6017204c3978e23376baa89de6e91fed1e). Clean up an unused vfs dir if it is present on the system, as it was the case on build2-deb9build-ansible with a 190 GiB vfs dir. Related: OS#5827 Change-Id: I58f3f4a26ad6fa4698d87475cefb6ab21e66b15a
2022-02-11ansible/roles/docker: install docuumOliver Smith6-0/+134
Allow setting a max amount of space that docker images should take up, and delete the least recently used images when the amount is exceeded. Related: https://osmocom.org/projects/osmocom-servers/wiki/Docker_cache_clean_up Change-Id: I640b1e607feca87e7a578946ae4b8332ce854ab1
2021-03-08ansible: fix apt deprecation warning about loopsOliver Smith1-6/+5
Fix deprecation warnings like the following: [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['libjansson-dev', 'libulfius-dev']` and remove the loop. This feature will be removed in version 2.11. Related: OS#5055 Change-Id: I57b9ce690e8167249468954f3e62d14c7a92fcfc
2020-11-15ansible/docker: Use docker.io on architectures not supported by docker-ceHarald Welte1-1/+7
The docker company official builds are only present for amd64, but not for other architectures. Let's use the Debian docker.io package in such situations. Change-Id: Id85137fc0eb7fa5e2b31aa928c78bfdaadc281ac
2020-11-14ansible: roles/docker: Add ca-certificatesHarald Welte1-0/+1
If that package is not installed, adding the GPG key fails with SSL certificate verification, at least on a debian10 i386 lxc: TASK [add docker gpg key to apt keyring] ************************************************************* fatal: [gtp0-deb10build32-ansible]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.docker.com/linux/debian/gpg: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>"} Change-Id: I58259a99258c9c7471e1fcf03a3a7b62fa9c6a48
2020-08-03ansible/docker: set overlayfs2 and ipv6Alexander Couzens3-0/+17
overlayfs2 should be the default anyway. Enable it on all hosts, since it was enabled on older hosts. Change-Id: I20728d6017204c3978e23376baa89de6e91fed1e
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
2018-04-10ansible: docker: cleanup old docker imagesAlexander Couzens1-0/+8
Fixes: OS#3144 Change-Id: I77fe38775b3f6055691bbf654de4019916b75fd7
2018-03-16add ansible playbooksAlexander Couzens3-0/+33
Introduce playbooks to do: - setup-jenkins-slave - setup a usualy or special jenkins-slave - setup-gsm-tester - setup the gsm-tester Change-Id: I7007a4e6c38f73843390ec2b3b91133aff21e36a