arubanetworks.aos_wlan_role
aos-wlan-ansible-role
这个 Ansible 网络角色提供了一组针对 ArubaOS (AOS) 移动控制器和独立控制器的特定平台配置管理模块。
要求
- Python 2.7 或 3.5+
- Ansible 2.8.1 或更高版本
- 最低支持的 AOS 固件版本为 8.0
安装
通过 Github,使用以下命令。使用 -f
选项覆盖当前角色版本:
ansible-galaxy install git+https://github.com/aruba/aos-wlan-ansible-role.git
通过 Galaxy:
ansible-galaxy install arubanetworks.aos_wlan_role
库存变量
应在 AOS 主机的库存中定义的变量:
ansible_host
: 控制器的 IP 地址,格式为A.B.C.D
ansible_user
: 控制器的用户名,使用plaintext
格式ansible_password
: 控制器的密码,使用plaintext
格式ansible_connection
: 必须始终设置为httpapi
ansible_network_os
: 必须始终设置为aos
ansible_httpapi_port
: 必须始终设置为4343
ansible_httpapi_use_ssl
: 设置为True
,因为 AOS 使用4343端口进行 RESTansible_httpapi_validate_certs
: 根据 Ansible 是否应尝试验证证书,设置为True
或False
示例库存:
示例 inventory.yml
:
all:
hosts:
controller:
ansible_host: 10.1.1.1
ansible_user: admin
ansible_password: password
ansible_connection: httpapi
ansible_network_os: aos
ansible_httpapi_port: 4343
ansible_httpapi_validate_certs: True
ansible_httpapi_use_ssl: True
示例 inventory.ini
:
aos_1 ansible_host=10.1.1.1 ansible_user=admin ansible_password=password ansible_connection=httpapi ansible_network_os=aos ansible_httpapi_port=4343 ansible_httpapi_validate_certs=True ansible_httpapi_use_ssl=True
示例剧本
如果通过 Github 安装角色,将角色设置为 aos-wlan-ansible-role
:
---
- hosts: all
roles:
- role: aos-wlan-ansible-role
tasks:
- name: 创建一个 radius 服务器
aos_api_config:
method: POST
config_path: /md/SLR
data:
- rad_server:
- rad_server_name: test-dot1x
rad_host:
host: 1.1.1.1
如果通过 Galaxy 安装角色,将角色设置为 arubanetworks.aos_wlan_role
:
---
- hosts: all
roles:
- role: arubanetworks.aos_wlan_role
tasks:
- name: 创建一个 radius 服务器
aos_api_config:
method: POST
config_path: /md/SLR
data:
- rad_server:
- rad_server_name: test-dot1x
rad_host:
host: 1.1.1.1
您还可以在 GitHub 仓库的 sample_playbooks 目录中找到预先编写的剧本以供参考。这些剧本涵盖了在移动控制器上执行的各种用例/任务,使用了该角色提供的不同模块。您可以选择适合的剧本,来构建自己的剧本。
贡献
在 Aruba Networks,我们致力于确保产品的质量。如果您发现任何问题,请在我们的 Github 上提出问题,我们将及时回复!
许可证
Apache 2.0
作者信息
Jay Pathak (jayp193)
Karthikeyan Dhandapani (kdhandapani)
关于项目
Ansible modules for configuring AOS Mobility Master and Standalone Controllers. (github repo - https://github.com/aruba/aos-wlan-ansible-role)
安装
ansible-galaxy install arubanetworks.aos_wlan_role
许可证
apache-2.0
下载
98.8k