From b57cd65121f61114432b07c04106fc4b8609440e Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 9 Dec 2017 18:20:16 +0100 Subject: deploy.sh: Factor out pkg deps into yaml files Instead of hardcoding the packages to install on the jumphost at deploy time in `ci/deploy.sh`, move the requirements list to a dedicated yaml file, so it is decoupled from actual code. While at it, add missing deps: - ipxe-qemu (AArch64 Ubuntu only); Change-Id: I9ee5c0796b70f9d29427d608b6415333c8841e1e Signed-off-by: Alexandru Avadanii --- mcp/scripts/requirements_deb.yaml | 36 ++++++++++++++++++++++++++++++++++++ mcp/scripts/requirements_rpm.yaml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100755 mcp/scripts/requirements_deb.yaml create mode 100755 mcp/scripts/requirements_rpm.yaml (limited to 'mcp') diff --git a/mcp/scripts/requirements_deb.yaml b/mcp/scripts/requirements_deb.yaml new file mode 100755 index 000000000..84b75ee65 --- /dev/null +++ b/mcp/scripts/requirements_deb.yaml @@ -0,0 +1,36 @@ +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +requirements_pkg: + # Common pkgs required for all deploys, no matter the type, arch etc. + common: + - cloud-guest-utils + - cpu-checker + - curl + - e2fsprogs + - git + - kpartx + - libvirt-bin + - make + - mkisofs + - qemu-kvm + - rsync + - uuid-runtime + - virtinst + # Optional, arch-specific requirements, matched by key name = $(uname -m) + aarch64: + # AArch64 VMs use AAVMF (guest UEFI) + - ipxe-qemu + - qemu-efi + # Optional, deploy-type-specific requirements + baremetal: + # For baremetal, python is indirectly required for PDF parsing + - python + - python-ipaddress + - python-jinja2 + - python-yaml diff --git a/mcp/scripts/requirements_rpm.yaml b/mcp/scripts/requirements_rpm.yaml new file mode 100755 index 000000000..7a6ec38b9 --- /dev/null +++ b/mcp/scripts/requirements_rpm.yaml @@ -0,0 +1,34 @@ +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +requirements_pkg: + # Common pkgs required for all deploys, no matter the type, arch etc. + common: + - cloud-utils-growpart + - curl + - e2fsprogs + - genisoimage + - git + - kpartx + - libvirt + - make + - qemu-kvm + - rsync + - util-linux + - virt-install + # Optional, arch-specific requirements, matched by key name = $(uname -m) + aarch64: + # AArch64 VMs use AAVMF (guest UEFI) + - AAVMF + # Optional, deploy-type-specific requirements + baremetal: + # For baremetal, python is indirectly required for PDF parsing + - python + - python-ipaddress + - python-jinja2 + - python-yaml -- cgit 1.2.3-korg