Merge "Remove the unnecessary "if" condition"
This commit is contained in:
commit
3abf37f769
@ -5,22 +5,11 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% import "macros.j2" as macros with context %}
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% set kubetoolbox_packages = [
|
||||||
|
'jq',
|
||||||
{% set kubetoolbox_packages = [
|
'ceph-common',
|
||||||
'jq',
|
'ipmitool'
|
||||||
'ceph-common',
|
] %}
|
||||||
'ipmitool'
|
|
||||||
] %}
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
||||||
|
|
||||||
{% set kubetoolbox_packages = [
|
|
||||||
'jq',
|
|
||||||
'ceph-common',
|
|
||||||
'ipmitool'
|
|
||||||
] %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ macros.install_packages(kubetoolbox_packages | customizable("packages")) }}
|
{{ macros.install_packages(kubetoolbox_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user