2.4. 设置 container-tools 版本
将 container-tools 模块设置为 2.0 版本,以确保在所有节点上使用正确的软件包版本。
流程
-
以
stack用户的身份登录 undercloud。 Source
stackrc文件:$ source ~/stackrc创建 overcloud 的静态清单文件:
$ tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yaml如果您使用与默认
overcloud名称不同的 overcloud 名称,请使用--plan选项设置 overcloud 的名称。创建一个包含将
container-tools模块设置为所有节点上的版本2.0的 playbook:$ cat > ~/container-tools.yaml <<'EOF' - hosts: all gather_facts: false tasks: - name: disable default dnf module for container-tools command: dnf module reset -y container-tools become: true - name: set dnf module for container-tools:2.0 command: dnf module enable -y container-tools:2.0 become: true EOF针对所有节点运行
container-tools.yamlplaybook:$ ansible-playbook -i ~/inventory.yaml -f 25 ~/container-tools.yaml