jbpratt / teflo_podman_plugin

Teflo Podman provisioner plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

teflo podman provisioner plugin POC

The Podman provisioner will utilize the executable found or specified and provision the defined container. For executing Ansible playbooks, the ansible_params setting ansible_connection should be set to podman, which utilizes the containers.podman collection containing a podman connection. This is similar to using ssh as your connection. Remote podman requires an ssh connection to the server and Podman configured on the server machine according to the docs

Installing

pip install git@gitlab.cee.redhat.com:bpratt/teflo_podman_plugin.git

Utilizing

---
name: example
description: an example of using the podman provisioner

provision:
  - name: test_driver
    provisioner: podman
    groups:
      - test_drivers
    image: "fedora"
    network_mode: "host"
    privileged: true
    remove: true
    tty: true
    # remote:
    #   user: jbpratt
    #   identity: "{{ HOME }}/.ssh/id_rsa"
    #   uri: ssh://jbpratt@desktop/run/user/1000/podman/podman.sock
    volumes:
      - "{{ PWD }}/:/tests"
    ports:
      - "8080:80/tcp"
    ansible_params:
      ansible_connection: podman
    environment:
      - "SOMEVAR=helloworld"
ezoic increase your site revenue

About

Teflo Podman provisioner plugin

License:GNU General Public License v3.0


Languages

Language:Python 91.8%Language:Makefile 8.2%