12.5.5. 下载安装 playbook
下载 Ansible playbook,可用于在您自己的 Red Hat OpenStack Platform(RHOSP)基础架构上安装 OpenShift Container Platform。
先决条件
- curl 命令行工具可在您的机器上找到。
流程
要将 playbook 下载到您的工作目录中,请从命令行运行以下脚本:
$ xargs -n 1 curl -O <<< ' https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/bootstrap.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/common.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/compute-nodes.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/control-plane.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/inventory.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/network.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/security-groups.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-bootstrap.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-compute-nodes.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-control-plane.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-load-balancers.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-network.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-security-groups.yaml https://raw.githubusercontent.com/openshift/installer/release-4.7/upi/openstack/down-containers.yaml'
playbook 下载到您的机器中。
重要
在安装过程中,您可以修改 playbook 来配置部署。
在集群生命周期中保留所有 playbook。您必须具有 playbook,才能从 RHOSP 中删除 OpenShift Container Platform 集群。
重要
您在 bootstrap.yaml
、compute-nodes.yaml
、control-plane.yaml
、network.yaml
和 security-groups.yaml
文件中进行的任何改变都需要与带有 down-
前缀的对应的 playbook 相匹配。例如,对 bootstrap.yaml
文件的编辑也必须反映在 down-bootstrap.yaml
文件中。如果没有编辑这两个文件,则支持的删除集群过程将失败。