osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/30478
)
Change subject: ansible/podman: configure storage driver vfs
......................................................................
ansible/podman: configure storage driver vfs
Use vfs instead of the default fuse based driver so we don't need to
ensure that the host system has the fuse kernel module loaded and passes
the fuse device into the lxc, where we are running the ansible rules and
podman.
Related. OS#5365
Change-Id: Ic6e317b3eb2068c3690d174700d02158efd87b2a
Change-Id: Ifcea205dad414905a10942735a135aa3f2fb6e95
---
A ansible/roles/podman/files/storage.conf
M ansible/roles/podman/tasks/main.yml
M ansible/setup-jenkins-slave.yml
3 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/78/30478/1
diff --git a/ansible/roles/podman/files/storage.conf
b/ansible/roles/podman/files/storage.conf
new file mode 100644
index 0000000..389a25c
--- /dev/null
+++ b/ansible/roles/podman/files/storage.conf
@@ -0,0 +1,2 @@
+[storage]
+ driver = "vfs"
diff --git a/ansible/roles/podman/tasks/main.yml b/ansible/roles/podman/tasks/main.yml
index 45a712d..7f23396 100644
--- a/ansible/roles/podman/tasks/main.yml
+++ b/ansible/roles/podman/tasks/main.yml
@@ -7,3 +7,11 @@
- buildah
# Has reasonable recommends needed for dns resolving etc.
install_recommends: yes
+
+- name: "install storage.conf"
+ copy:
+ src: storage.conf
+ dest: "/home/{{ jenkins_user }}/.config/containers/"
+ mode: 0644
+ owner: "{{ jenkins_user }}"
+ group: "{{ jenkins_user }}"
diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml
index a909e13..82b8dbf 100644
--- a/ansible/setup-jenkins-slave.yml
+++ b/ansible/setup-jenkins-slave.yml
@@ -23,6 +23,7 @@
- docker
- name: podman
+ jenkins_user: osmocom-build
tags:
- podman
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/30478
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ifcea205dad414905a10942735a135aa3f2fb6e95
Gerrit-Change-Number: 30478
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange