Skip to content

Commit 649ea36

Browse files
committed
format dib package list
1 parent c20a7f9 commit 649ea36

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

etc/kayobe/stackhpc-overcloud-dib.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,34 @@ stackhpc_overcloud_dib_env_vars:
6464
DIB_CONTAINERFILE_BUILDOPTS: "--platform linux/{{ overcloud_dib_architecture }}"
6565

6666
# StackHPC overcloud DIB image packages.
67-
stackhpc_overcloud_dib_packages:
68-
- "ethtool"
69-
- "git"
70-
- "less"
71-
- "logrotate"
72-
- "net-tools"
73-
- "nvme-cli"
74-
- "pciutils"
75-
- "python3"
76-
- "smartmontools"
77-
- "vim"
78-
- "{% if os_distribution == 'ubuntu' %}netbase{% endif %}"
79-
- "{% if os_distribution == 'ubuntu' %}iputils-ping{% endif %}"
80-
- "{% if os_distribution == 'ubuntu' %}curl{% endif %}"
81-
- "{% if os_distribution == 'ubuntu' %}apt-utils{% endif %}"
82-
- "{% if os_distribution == 'rocky' %}NetworkManager-config-server{% endif %}"
83-
- "{% if os_distribution == 'rocky' %}linux-firmware{% endif %}"
84-
- "{% if os_distribution == 'rocky' %}cloud-utils-growpart{% endif %}"
85-
- "{% if os_distribution == 'ubuntu' %}cloud-guest-utils{% endif %}"
67+
stackhpc_overcloud_dib_packages_common:
68+
- ethtool
69+
- git
70+
- less
71+
- logrotate
72+
- net-tools
73+
- nvme-cli
74+
- pciutils
75+
- python3
76+
- smartmontools
77+
- vim
78+
79+
stackhpc_overcloud_dib_packages_ubuntu:
80+
- netbase
81+
- iputils-ping
82+
- curl
83+
- apt-utils
84+
- cloud-guest-utils
85+
86+
stackhpc_overcloud_dib_packages_rocky:
87+
- NetworkManager-config-server
88+
- linux-firmware
89+
- cloud-utils-growpart
90+
91+
stackhpc_overcloud_dib_packages: >-
92+
{{ stackhpc_overcloud_dib_packages_common +
93+
(stackhpc_overcloud_dib_packages_ubuntu if os_distribution == 'ubuntu' else []) +
94+
(stackhpc_overcloud_dib_packages_rocky if os_distribution == 'rocky' else []) }}
8695
8796
# StackHPC overcloud DIB image block device configuration.
8897
# This image layout conforms to the CIS partition benchmarks.

0 commit comments

Comments
 (0)