-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from stackhpc/packages
Handle additional dependencies
- Loading branch information
Showing
7 changed files
with
58 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
namespace: stackhpc | ||
name: openstack | ||
version: 0.2.2 | ||
version: 0.2.3 | ||
readme: README.md | ||
authors: | ||
- StackHPC Ltd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
# Here a quick check for the presence of Docker (or an alias for Podman) | ||
# Display a warning if not found | ||
- name: Check if container engine is installed | ||
ansible.builtin.command: which docker | ||
changed_when: false | ||
ignore_errors: true | ||
register: result | ||
|
||
- name: Display warning message about the container engine | ||
ansible.builtin.assert: | ||
that: | ||
- result.rc = 0 | ||
fail_msg: > | ||
Container runtime engine could not be found - make sure it is installed. | ||
Elements that depend on it will likely fail when building. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- name: Include OS family-specific variables | ||
ansible.builtin.include_vars: "{{ ansible_facts.os_family }}.yml" | ||
|
||
- name: Ensure required packages are installed | ||
ansible.builtin.package: | ||
name: "{{ (os_images_package_dependencies + os_images_package_dependencies_extra) | select | list }}" | ||
state: present | ||
become: true | ||
|
||
# The rpm-distro element executes 'semanage' during its cleanup phase. | ||
- name: Ensure diskimage-builder SELinux dependencies are installed | ||
vars: | ||
package_name: python3-policycoreutils | ||
ansible.builtin.package: | ||
name: "{{ package_name }}" | ||
state: present | ||
when: | ||
- ansible_facts.selinux | ||
- ansible_facts.selinux.status != 'disabled' | ||
- ansible_facts.os_family == "RedHat" | ||
become: true | ||
|
||
- name: Ensure download cache dir exists | ||
ansible.builtin.file: | ||
path: "{{ os_images_cache }}" | ||
owner: "{{ ansible_facts.user_uid }}" | ||
group: "{{ ansible_facts.user_gid }}" | ||
state: directory | ||
mode: "0755" | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
--- | ||
# List of package dependencies. | ||
os_images_package_dependencies: | ||
- debootstrap | ||
- dosfstools | ||
- gdisk | ||
- "{% if os_images_git_elements | length > 0 %}git{% endif %}" | ||
- kpartx | ||
- lvm2 | ||
- python3-venv | ||
- qemu-utils | ||
- squashfs-tools | ||
- xz-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
--- | ||
# List of package dependencies. | ||
os_images_package_dependencies: | ||
- debootstrap | ||
- dosfstools | ||
- gdisk | ||
- "{% if os_images_git_elements | length > 0 %}git{% endif %}" | ||
- kpartx | ||
- lvm2 | ||
- python3-devel | ||
- qemu-img | ||
- squashfs-tools | ||
- xz |