nertwork.cumulus-switch

角色名称

NCLU 角色用于配置 Cumulus 交换机版本 3.2 及以上。

要求

至少需要 Ansible 2.3 和 Cumulus Linux 3.2 版本。

角色变量

变量 描述 类型 默认值
cl_license Cumulus 许可证(字符串格式) 字符串 ``
commands 要在所有 nclu 设备上运行的命令 数组 []
group_commands 在所有 nclu 设备上运行的组命令 数组 []
switchd_commands 会重启 nclu 设备 switchd 的命令 数组 []
switchd_group_commands 用于在组变量中重启 nclu 设备 switchd 的命令 数组 []

依赖

示例剧本

提供一个使用此角色的示例(例如,作为参数传递变量)对用户很有帮助:

- hosts: 服务器
  roles:
     - cumulus-nclu
  vars:
     - cumulus_nclu:
         switchd_commands:
           - 添加接口 swp49 分解 4x
         commands:
           - 添加主机名 {{ ansible_hostname }}
           - 添加接口 swp1 的 IP 地址 192.168.0.1/24
         cl_license: 'rocketturtle:102u309uofewauj'
         cumulus_license_file: /var/tmp/cl_license

许可证

BSD

作者信息

可选部分,供角色作者包含联系信息或网站(不允许使用 HTML)。

关于项目

This configures Cumulus Linux 3.2 and above

安装
ansible-galaxy install nertwork.cumulus-switch
许可证
Unknown
下载
462
拥有者