部署 Ansible 模块
NVUE ansible 模块已通过 RedHat 认证,可在 Ansible Galaxy 此处 和 Automation Hub 此处 找到(需要登录)。
需要记住的要点
- 这些模块已在 ansible core 2.11 及以上版本中进行过测试。
- 这些模块支持 Python 3.6 及更高版本。
- 这些模块已针对 Cumulus Linux 5.4 及以上版本进行过验证。
安装模块
从 Ansible Galaxy 安装
您可以使用 Ansible Galaxy CLI 安装 NVIDIA NVUE 集合
cumulus@oob-management:~$ ansible-galaxy collection install nvidia.nvue
您还可以将 NVIDIA NVUE 集合包含在 requirements.yml
文件中,并使用 ansible-galaxy collection install -r requirements.yml
命令安装,格式如下
---
collections:
- name: nvidia.nvue
从 git 安装
您可以使用 git URL 安装 NVIDIA NVUE 集合
cumulus@oob-management:~$ ansible-galaxy collection install git+https://gitlab.com/nvidia-networking/systems-engineering/nvue.git
验证安装
您可以使用以下 ansible-galaxy 命令验证安装
cumulus@oob-management:~$ ansible-galaxy collection list
Sample Output:
# /home/ubuntu/.ansible/collections/ansible_collections
Collection Version
----------------- -------
ansible.netcommon 5.1.2
ansible.utils 2.10.3
nvidia.nvue 1.0.1
# /usr/lib/python3/dist-packages/ansible_collections
Collection Version
----------------------------- -------
amazon.aws 5.2.0
ansible.netcommon 4.1.0
ansible.posix 1.5.1
ansible.utils 2.9.0
ansible.windows 1.13.0
arista.eos 6.0.0
awx.awx 21.12.0
azure.azcollection 1.14.0
check_point.mgmt 4.0.0
chocolatey.chocolatey 1.4.0
...