Merge "Support installing packages in IPA images"
This commit is contained in:
commit
27138f3a2f
@ -49,6 +49,9 @@ ipa_build_dib_env: >
|
||||
# stackhpc.os-images role for usage.
|
||||
ipa_build_dib_git_elements: []
|
||||
|
||||
# List of DIB packages to install. Default is none.
|
||||
ipa_build_dib_packages: []
|
||||
|
||||
###############################################################################
|
||||
# Ironic Python Agent (IPA) images configuration.
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
- name: "{{ ipa_image_name }}"
|
||||
elements: "{{ ipa_build_dib_elements }}"
|
||||
env: "{{ ipa_build_dib_env }}"
|
||||
packages: "{{ ipa_build_dib_packages }}"
|
||||
# Avoid needing to install qemu-img for qcow2 image.
|
||||
type: raw
|
||||
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
|
||||
|
@ -27,6 +27,7 @@
|
||||
- name: "{{ ipa_image_name }}"
|
||||
elements: "{{ ipa_build_dib_elements }}"
|
||||
env: "{{ ipa_build_dib_env }}"
|
||||
packages: "{{ ipa_build_dib_packages }}"
|
||||
# Avoid needing to install qemu-img for qcow2 image.
|
||||
type: raw
|
||||
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
|
||||
|
@ -167,6 +167,20 @@ Alternatively, the :diskimage-builder-doc:`dynamic-login element
|
||||
<elements/dynamic-login/README>` can be used to authorize SSH keys by appending
|
||||
them to the kernel arguments.
|
||||
|
||||
Example: Installing a package
|
||||
-----------------------------
|
||||
|
||||
It can be necessary to install additional packages in the root disk image.
|
||||
Rather than needing to write a custom DIB element, we can use the
|
||||
``kolla_bifrost_dib_packages`` variable. For example, to install the
|
||||
``biosdevname`` package:
|
||||
|
||||
.. code-block:: yaml
|
||||
:caption: ``ipa.yml``
|
||||
|
||||
kolla_bifrost_dib_packages:
|
||||
- "biosdevname"
|
||||
|
||||
Ironic configuration
|
||||
====================
|
||||
|
||||
|
@ -66,6 +66,8 @@ image build``.
|
||||
List of git repositories containing Diskimage Builder (DIB) elements. See
|
||||
`stackhpc.os-images <https://galaxy.ansible.com/stackhpc/os-images>`__ role
|
||||
for usage. Default is none.
|
||||
``ipa_build_dib_packages``
|
||||
List of DIB packages to install. Default is none.
|
||||
|
||||
Example: Building IPA images locally
|
||||
------------------------------------
|
||||
@ -156,6 +158,20 @@ In this example the ``master`` branch of
|
||||
https://git.example.com/custom-dib-elements would have a top level ``elements``
|
||||
directory, containing a ``my-element`` directory for the element.
|
||||
|
||||
Example: Installing a package
|
||||
-----------------------------
|
||||
|
||||
It can be necessary to install additional packages in the IPA image. Rather
|
||||
than needing to write a custom DIB element, we can use the
|
||||
``ipa_build_dib_packages`` variable. For example, to install the
|
||||
``biosdevname`` package:
|
||||
|
||||
.. code-block:: yaml
|
||||
:caption: ``ipa.yml``
|
||||
|
||||
ipa_build_dib_packages:
|
||||
- "biosdevname"
|
||||
|
||||
Ironic Python Agent (IPA) images configuration
|
||||
==============================================
|
||||
|
||||
|
@ -40,6 +40,9 @@
|
||||
# stackhpc.os-images role for usage.
|
||||
#ipa_build_dib_git_elements:
|
||||
|
||||
# List of DIB packages to install. Default is none.
|
||||
#ipa_build_dib_packages:
|
||||
|
||||
###############################################################################
|
||||
# Ironic Python Agent (IPA) images configuration.
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds support for installing packages in locally built Ironic Python Agent
|
||||
(IPA) images via the ``ipa_build_dib_packages`` variable. See `story
|
||||
2006855 <https://storyboard.openstack.org/#!/story/2006855>`__ for details.
|
@ -30,7 +30,7 @@
|
||||
- src: stackhpc.mellanox-switch
|
||||
version: v1.0.0
|
||||
- src: stackhpc.os-images
|
||||
version: v1.4.0
|
||||
version: v1.6.0
|
||||
- src: stackhpc.os-ironic-state
|
||||
version: v1.2.0
|
||||
- src: stackhpc.os-networks
|
||||
|
Loading…
Reference in New Issue
Block a user