Fix an issue when 'acl' package can be forgotten
This is folllowup on I69bf810632d09eddaa3983ae56e833debe9fd03b to avoid user accidentely forgot the 'acl' package when override the dev_tools_packages_default in their custom configuration. Also this adds an ability to customise list of packages installed in addition to the default list. Change-Id: I03a826e98a18b158774ba100cfa2987299eb6c25 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
parent
db9ce40e81
commit
5e8a8233da
@ -1,12 +1,18 @@
|
|||||||
---
|
---
|
||||||
# List of default packages to install.
|
# List of default packages to install.
|
||||||
dev_tools_packages_default:
|
dev_tools_packages_default:
|
||||||
# NOTE(mgoddard): The acl package is required for the setfacl command, used by
|
|
||||||
# become_user.
|
|
||||||
- acl
|
|
||||||
- bash-completion
|
- bash-completion
|
||||||
- tcpdump
|
- tcpdump
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
|
# List of extra packages to install.
|
||||||
|
dev_tools_packages_extra: []
|
||||||
|
|
||||||
|
# List of required packages to install.
|
||||||
|
dev_tools_packages_system:
|
||||||
|
# NOTE(mgoddard): The acl package is required for the setfacl command, used by
|
||||||
|
# become_user.
|
||||||
|
- acl
|
||||||
|
|
||||||
# List of packages to install.
|
# List of packages to install.
|
||||||
dev_tools_packages: "{{ dev_tools_packages_default }}"
|
dev_tools_packages: "{{ dev_tools_packages_default + dev_tools_packages_extra + dev_tools_packages_system }}"
|
||||||
|
@ -444,6 +444,40 @@ that is signed by the key.
|
|||||||
components: all
|
components: all
|
||||||
signed_by: example-key.asc
|
signed_by: example-key.asc
|
||||||
|
|
||||||
|
Development tools
|
||||||
|
=================
|
||||||
|
*tags:*
|
||||||
|
| ``dev-tools``
|
||||||
|
|
||||||
|
Development tools (additional OS packages) can be configured to be installed
|
||||||
|
on hosts. By default Ddvelopment tools are installed on all
|
||||||
|
``seed-hypervisor``, ``seed``, ``overcloud`` and ``infra-vms`` hosts.
|
||||||
|
|
||||||
|
The following variables can be used to set which packages to install:
|
||||||
|
|
||||||
|
* ``dev_tools_packages_default``: The list of packages installed by default.
|
||||||
|
(default is: ``bash-completion``, ``tcpdump`` and ``vim``)
|
||||||
|
* ``dev_tools_packages_extra``: The list of additional packages installed
|
||||||
|
alongside default packages. (default is an empty list)
|
||||||
|
|
||||||
|
In the following example, the list of default packages to be installed on all
|
||||||
|
hosts is modified to replace ``vim`` with ``emacs``. The ``bridge-utils``
|
||||||
|
package is added to all ``overcloud`` hosts:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:caption: ``dev-tools.yml``
|
||||||
|
|
||||||
|
dev_tools_packages_default:
|
||||||
|
- bash-completion
|
||||||
|
- emacs
|
||||||
|
- tcpdump
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:caption: ``inventory/group_vars/overcloud/dev-tools``
|
||||||
|
|
||||||
|
dev_tools_packages_extra:
|
||||||
|
- bridge-utils
|
||||||
|
|
||||||
SELinux
|
SELinux
|
||||||
=======
|
=======
|
||||||
*tags:*
|
*tags:*
|
||||||
|
Loading…
Reference in New Issue
Block a user