Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support root containers for podman #2716

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions molecule/model/schema_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ def pre_validate_base_schema(env, keep_string):
"cgroup_manager": {"type": "string"},
"storage_opt": {"type": "string"},
"storage_driver": {"type": "string"},
"rootless": {"type": "boolean"},
},
},
}
Expand Down
1 change: 1 addition & 0 deletions molecule/provisioner/ansible/playbooks/podman/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
connection: local
gather_facts: false
no_log: "{{ molecule_no_log }}"
become: "{{ not (item.rootless|default(true)) }}"
tasks:

- name: Log into a container registry
Expand Down
1 change: 1 addition & 0 deletions molecule/provisioner/ansible/playbooks/podman/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
connection: local
gather_facts: false
no_log: "{{ molecule_no_log }}"
become: "{{ not (item.rootless|default(true)) }}"
tasks:
- name: Destroy molecule instance(s)
shell: podman container exists {{ item.name }} && podman rm -f {{ item.name }} || true
Expand Down
1 change: 1 addition & 0 deletions molecule/test/resources/playbooks/podman/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
hosts: localhost
connection: local
gather_facts: false
become: "{{ not (item.rootless|default(true)) }}"
tasks:
- name: Log into a container registry
command: >
Expand Down
1 change: 1 addition & 0 deletions molecule/test/resources/playbooks/podman/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
connection: local
gather_facts: false
no_log: "{{ molecule_no_log }}"
become: "{{ not (item.rootless|default(true)) }}"
tasks:
- name: Destroy molecule instance(s)
shell: podman container exists {{ item.name }} && podman rm -f {{ item.name }} || true
Expand Down