stackhpc.mlnx-neo
Mellanox NEO SDN 控制器
这个角色用于配置在 Docker 容器中运行的 Mellanox NEO SDN 控制器。
构建兼容容器镜像的工具可在 Github <https://github.com/stackhpc/docker-mlnx-neo> 找到。
要求
执行该角色的主机需要满足以下要求:
- Docker 引擎
- Python
docker >= 2.0.0
角色变量
mlnx_neo_action:要执行的操作。可以是build、deploy、destroy、pull、reconfigure、upgrade中的一个。默认为deploy。mlnx_neo_enabled:是否启用 NEO。默认为true。mlnx_neo_image:Docker 镜像名称。必填。mlnx_neo_tag:Docker 镜像标签。默认为latest。mlnx_neo_image_full:完整的 Docker 镜像规格。mlnx_neo_restart_policy:NEO 容器的 Docker 重启策略。默认为unless-stopped。mlnx_neo_restart_retries:Docker 重启次数。默认为 10。mlnx_neo_startup_config_path:本地主机上包含启动配置的脚本模板路径。默认是/etc/mlnx-neo/mlnx-neo-configure。mlnx_neo_config_path:在远程主机上存储配置的目录路径。默认是/etc/mlnx-neo。
以下变量仅在 mlnx_neo_action 为 build 时相关:
mlnx_neo_repo_url:包含镜像的 git 仓库 URL。默认是https://github.com/stackhpc/docker-mlnx-neo。mlnx_neo_repo_version:要检查的 git 仓库中的镜像版本。默认是master。mlnx_neo_repo_checkout_path:用来检出 git 仓库的目录路径。默认是/tmp。mlnx_neo_tarball_url:NEO 软件包的 URL。此项必须设置以构建镜像。mlnx_neo_push:构建镜像后是否推送。默认是false。mlnx_neo_force_rebuild:即使同名和同标签的镜像已存在,是否强制构建镜像。默认是false。
依赖
无
示例剧本
以下剧本配置 Mellanox NEO。
---
- hosts: mlnx-neo
roles:
- role: mlnx-neo
作者信息
- Mark Goddard (mark@stackhpc.com)
关于项目
Role to deploy Mellanox NEO SDN controller in a Docker container.
安装
ansible-galaxy install stackhpc.mlnx-neo许可证
apache-2.0
下载
436
拥有者
StackHPC develops OpenStack capabilities for research computing use cases. Through extensive experience, we understand HPC and cloud.
