mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-08 11:39:02 +00:00
Implement connection plugin for podman (#47519)
* new connection plugin: podman Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * podman,conn: utilize remote_user to run commands Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * podman connection: update docs Co-Authored-By: TomasTomecek <ttomecek@redhat.com>
This commit is contained in:
parent
105d6e8c88
commit
23becece53
5 changed files with 177 additions and 0 deletions
2
test/integration/targets/connection_podman/aliases
Normal file
2
test/integration/targets/connection_podman/aliases
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
non_local
|
||||
unsupported
|
||||
1
test/integration/targets/connection_podman/posix.sh
Symbolic link
1
test/integration/targets/connection_podman/posix.sh
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../connection_posix/test.sh
|
||||
7
test/integration/targets/connection_podman/runme.sh
Executable file
7
test/integration/targets/connection_podman/runme.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
./posix.sh "$@"
|
||||
|
||||
ANSIBLE_REMOTE_TMP="/tmp" ANSIBLE_REMOTE_USER="1000" ./posix.sh "$@"
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[podman]
|
||||
podman-container
|
||||
[podman:vars]
|
||||
# 1. install podman
|
||||
# 2. create container:
|
||||
# podman pull python:3-alpine
|
||||
# podman run -d --name podman-container python:3-alpine sleep 999999
|
||||
# 3. run test:
|
||||
# ./bin/ansible-test integration connection_podman
|
||||
# 6. remove container
|
||||
# podman stop podman-container
|
||||
# podman rm podman-container
|
||||
ansible_host=podman-container
|
||||
ansible_connection=podman
|
||||
ansible_python_interpreter=/usr/local/bin/python
|
||||
Loading…
Add table
Add a link
Reference in a new issue