Skip to content

daBONDi/ansible-ruckus-vszh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-ruckus-vszh

Ansible module for managing Ruckus Virtual Smartzone

Usage

  • Ensure files in module_utils is in your environment module_utils folder
    • Project Tree Subfolder 'module_utils' configured on ansible.cfg
    • Environment Variable ANSIBLE_MODULE_UTILS
  • Ensure files in library is in your environment library folder
    • Project Tree Subfolder 'library' configured on ansible.cfg
    • Environment Variable ANSIBLE_LIBRARY

ruckus_vszh_get_wlan

Query the WSZ for wlans with regex and return it under the object 'wlans'

Parameters

Parameter Description Required Default
vsz_server FQDN or IP Address of the Ruckus VSZ Server Yes
vsz_server_port TCP Port no 8443
vsz_user API User yes
vsz_password Password yes
use_ssl Use HTTPS for API Access no True
ignore_ssl_validation Ignore SSL Certificate Validateion no False
domain Regex - VSZ Domain Name no
zone Regex - VSZ Zone Name no
wlan Regex - VSZ WLAN Name no

Response

{ 
    "wlans": [
        {
            "wlan_id": "<Value>",
            "wlan_name": "<Value>",
            "zone_id": "<Value>",
            "zone_name": "<Value>",
            "domain_id": "<Value>",
            "domain_name": "<Value>"
        }
    ]
}

Example

- ruckus_vszh_get_wlan:
    vsz_server: 10.0.0.23
    vsz_server_port: 8443
    vsz_user: mysecretuser
    vsz_password: mysecretpassword
    ignore_ssl_validation: yes
    
    # Lets get all wlans 
    # - for domain "customer1*" 
    # - with zone "guest*" 
    # - and wlans with '*guest*'
    domain: ^customer
    zone: ^guest
    wlan: guest
    register: result

- debug:
    msg: "{{ item.domain_name }} {{ item.zone_name }} {{ item.wlan_name }}"
    with_items: result.wlans

ruckus_vszh_wlan_passphrase

Ensure wlan passphrase(PSK) for a specified wLAN

Parameters

Parameter Description Required Default
vsz_server FQDN or IP Address of the Ruckus VSZ Server Yes
vsz_server_port TCP Port no 8443
vsz_user API User yes
vsz_password Password yes
use_ssl Use HTTPS for API Access no True
ignore_ssl_validation Ignore SSL Certificate Validateion no False
domain VSZ Domain Name yes
zone VSZ Zone Name yes
wlan VSZ WLAN Name yes
passphrase VSZ WLAN Passphrase(PSK) yes

Example

- ruckus_vszh_wlan_passphrase:
    vsz_server: 10.0.0.23
    vsz_user: myadminuser
    vsz_password: mysecretpassword
    ignore_ssl_validation: yes
    domain: customer1
    zone: customer1-zone1
    wlan: customer1-wlan2
    passphrase: start3456#

About

Ansible Module for managing Ruckus Smartzone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages