Change in osmo-ci[master]: ansible: add role for 'podman'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Nov 18 19:18:11 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/21241 )


Change subject: ansible: add role for 'podman'
......................................................................

ansible: add role for 'podman'

podman has one particularly interesting feature which docker
rejected years ago: The ability to run a container in a pre-existing
namespace.  This is quite useful for some of our test setups,
particularly those that involve hdlc net-devices

Change-Id: I4b14599f39c07ec83fa4222f9d040d443caae3e6
---
A ansible/roles/podman/tasks/debian.yml
A ansible/roles/podman/tasks/main.yml
2 files changed, 38 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/41/21241/1

diff --git a/ansible/roles/podman/tasks/debian.yml b/ansible/roles/podman/tasks/debian.yml
new file mode 100644
index 0000000..eafea8f
--- /dev/null
+++ b/ansible/roles/podman/tasks/debian.yml
@@ -0,0 +1,31 @@
+---
+
+- name: add apt https support
+  apt:
+    cache_valid_time: 3600
+    update_cache: yes
+    pkg:
+      - apt-transport-https
+      - gnupg
+      - cron
+      - ca-certificates
+  when: ansible_distribution_major_version < 11
+
+- name: add docker gpg key to apt keyring
+  apt_key:
+    id: 2472D6D0D2F66AF87ABA8DA34D64390375060AA4
+    url: https://ftp.uni-stuttgart.de/opensuse/repositories/devel:/kubic:/libcontainers:/stable/Debian_{{ ansible_distribution_version }}/Release.key
+  when: ansible_distribution_major_version < 11
+
+- apt_repository:
+    repo: "deb https://ftp.uni-stuttgart.de/opensuse/repositories/devel:/kubic:/libcontainers:/stable/Debian_{{ ansible_distribution_version }}/ /"
+    state: present
+    update_cache: yes
+  when: ansible_distribution_major_version < 11
+
+- name: install podman
+  apt:
+    pkg:
+      - podman
+      - runc
+      - buildah
diff --git a/ansible/roles/podman/tasks/main.yml b/ansible/roles/podman/tasks/main.yml
new file mode 100644
index 0000000..049f5c2
--- /dev/null
+++ b/ansible/roles/podman/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+
+- name: Include tasks for Debian
+  include_tasks: debian.yml
+  when: (ansible_distribution in ['Debian', 'Raspbian'])
+
+# TODO: add other distributions below

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/21241
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4b14599f39c07ec83fa4222f9d040d443caae3e6
Gerrit-Change-Number: 21241
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201118/d6b5b4fe/attachment.htm>


More information about the gerrit-log mailing list