Merge "[tripleo-podman] Install specific version of buildah"

This commit is contained in:
Zuul 2020-08-21 15:24:23 +00:00 committed by Gerrit Code Review
commit 7b319c736f
3 changed files with 17 additions and 2 deletions

View File

@ -24,6 +24,7 @@ tripleo_container_registry_insecure_registries: []
tripleo_container_registry_login: false
tripleo_container_registry_logins: {}
tripleo_podman_packages: "{{ _tripleo_podman_packages | default([]) }}"
tripleo_buildah_packages: "{{ _tripleo_buildah_packages | default([]) }}"
tripleo_podman_purge_packages: "{{ _tripleo_podman_purge_packages | default([]) }}"
tripleo_podman_tls_verify: true
tripleo_podman_unqualified_search_registries:

View File

@ -14,12 +14,23 @@
# License for the specific language governing permissions and limitations
# under the License.
- name: Gather variables for each operating system for installing buildah
include_vars: "{{ item }}"
with_first_found:
- skip: true
files:
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
- "{{ ansible_os_family | lower }}.yml"
- name: ensure buildah is installed
become: true
package:
name: "buildah"
state: latest
name: "{{ tripleo_buildah_packages }}"
state: present
- name: Perform container registry login(s) with buildah
become: true

View File

@ -18,6 +18,9 @@
_tripleo_podman_packages:
- podman-1.6.4
_tripleo_buildah_packages:
- buildah-1.11.6
_tripleo_podman_purge_packages:
- docker
- docker-ce