infoblox.nios_modules.nios_member module – Configure Infoblox NIOS members
Note
This module is part of the infoblox.nios_modules collection (version 1.5.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install infoblox.nios\_modules
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: infoblox.nios_modules.nios_member
.
New in infoblox.nios_modules 1.0.0
Synopsis
Adds and/or removes Infoblox NIOS servers. This module manages NIOS
member
objects using the Infoblox WAPI interface over REST.
Requirements
The below requirements are needed on the host that executes this module.
infoblox-client
Parameters
Parameter |
Comments |
---|---|
A descriptive comment of the Grid member. |
|
Address configuration type (IPV4/IPV6/BOTH). Default: |
|
Flag for initiating a create token request for pre-provisioned members. Choices:
|
|
If set to True, the member has two physical nodes (HA pair). Choices:
|
|
Extensible attributes associated with the object. |
|
Determines if external syslog servers should be enabled. Choices:
|
|
Specifies the host name of the member to either add or remove from the NIOS instance. Users can also update the name as it is possible to pass a dict containing new_name, old_name. See examples. |
|
Configures the IPv6 settings for the grid member. |
|
The IPv6 CIDR prefix for the Grid Member |
|
The gateway address for the Grid Member |
|
The IPv6 Address of the Grid Member |
|
When set to “true”, the LAN2 port is enabled as an independent port or as a port for failover purposes. Choices:
|
|
Settings for the Grid member LAN2 port if ‘lan2_enabled’ is set to “true”. |
|
If set to True, then it has its own IP settings. Choices:
|
|
If the ‘enable’ field is set to True, this defines IPv4 network settings for LAN2. |
|
The IPv4 Address of LAN2 |
|
The default gateway of LAN2 |
|
The subnet mask of LAN2 |
|
If the ‘enable’ field is set to True, this defines IPv6 network settings for LAN2. |
|
The IPv6 CIDR prefix of LAN2 |
|
The gateway address of LAN2 |
|
The IPv6 Address of LAN2 |
|
Configures the instance of this object to be enabled as a Grid Master Candidate or a regular member node. True enables the member as a Master Candidate Choices:
|
|
Settings for the member MGMT port. |
|
Determines if MGMT port settings should be enabled. Choices:
|
|
Determines if security access on the MGMT port is enabled or not. Choices:
|
|
Determines if VPN on the MGMT port is enabled or not. Choices:
|
|
Configures the node information list with detailed status report on the operations of the Grid Member. |
|
Physical port settings for the LAN2 interface. |
|
Enable or disalbe the auto port setting. Choices:
|
|
The port duplex; if speed is 1000, duplex must be FULL. |
|
The port speed; if speed is 1000, duplex is FULL. |
|
LAN/HA port settings for the node. |
|
HA IP address. |
|
Physical port settings for the HA interface. |
|
Enable or disalbe the auto port setting. Choices:
|
|
The port duplex; if speed is 1000, duplex must be FULL. |
|
The port speed; if speed is 1000, duplex is FULL. |
|
Physical port settings for the LAN interface. |
|
Enable or disalbe the auto port setting. Choices:
|
|
The port duplex; if speed is 1000, duplex must be FULL. |
|
The port speed; if speed is 1000, duplex is FULL. |
|
Public IPv6 address for the LAN1 interface. |
|
Public IPv4 address for the LAN1 interface. |
|
Network settings for the MGMT port of the node. |
|
The IPv4 Address of MGMT |
|
The default gateway of MGMT |
|
The subnet mask of MGMT |
|
The network settings for the IPv6 MGMT port of the node. |
|
The IPv6 CIDR prefix of MGMT |
|
The gateway address of MGMT |
|
The IPv6 Address of MGMT |
|
Configures the Hardware Platform. Default: |
|
Pre-provisioning information. |
|
An array of structures that describe the hardware being pre-provisioned. |
|
Hardware model |
|
Hardware type. |
|
An array of license types. |
|
A dict object containing connection details. |
|
Specifies the client certificate file with digest of x509 config for extra layer secure connection the remote instance of NIOS. Value can also be specified using |
|
Specifies the DNS host name or address for connecting to the remote instance of NIOS WAPI over REST Value can also be specified using |
|
Insert decription here Default: |
|
Insert description here Default: |
|
The amount of time before to wait before receiving a response Value can also be specified using Default: |
|
Specifies private key file for encryption with the certificate in order to connect with remote instance of NIOS. Value can also be specified using |
|
Specifies the maximum number of objects to be returned, if set to a negative number the appliance will return an error when the number of returned objects would exceed the setting. Value can also be specified using Default: |
|
Configures the number of attempted retries before the connection is declared usable Value can also be specified using Default: |
|
Specifies the password to use to authenticate the connection to the remote instance of NIOS. Value can also be specified using |
|
Insert description here Choices:
|
|
Configures the username to use to authenticate the connection to the remote instance of NIOS. Value can also be specified using |
|
Boolean value to enable or disable verifying SSL certificates Value can also be specified using Choices:
|
|
Specifies the version of WAPI to use Value can also be specified using Until ansible 2.8 the default WAPI was 1.4 Default: |
|
Virtual router identifier. Provide this ID if “ha_enabled” is set to “true”. This is a unique VRID number (from 1 to 255) for the local subnet. |
|
Configures the intended state of the instance of the object on the NIOS server. When this value is set to Choices:
|
|
The list of external syslog servers. |
|
The server address. |
|
The list of all syslog logging categories. |
|
The connection type for communicating with this server.(STCP/TCP?UDP) Default: |
|
The local interface through which the appliance sends syslog messages to the syslog server.(ANY/LAN/MGMT) Default: |
|
Identify the node in the syslog message. (HOSTNAME/IP_HOSTNAME/LAN/MGMT) Default: |
|
The source of syslog messages to be sent to the external syslog server. Default: |
|
The list of selected syslog logging categories. The appliance forwards syslog messages that belong to the selected categories. Choices:
|
|
The port this server listens on. Default: |
|
The severity filter. The appliance sends log messages of the specified severity and above to the external syslog server. Default: |
|
The name of the upgrade group to which this Grid member belongs. Default: |
|
Use flag for external_syslog_server_enable , syslog_servers, syslog_proxy_setting, syslog_size. Choices:
|
|
Configures the network settings for the grid member. |
|
The IPv4 Address of the Grid Member |
|
The default gateway for the Grid Member |
|
The subnet mask for the Grid Member |
Notes
Note
This module supports
check_mode
.This module must be run locally, which can be achieved by specifying
connection: local
.Please read the :ref:`nios_guide` for more detailed information on how to use Infoblox with Ansible.
Examples
- name: Add a member to the grid with IPv4 address
infoblox.nios_modules.nios_member:
host_name: member01.localdomain
vip_setting:
- address: 192.168.1.100
subnet_mask: 255.255.255.0
gateway: 192.168.1.1
config_addr_type: IPV4
platform: VNIOS
comment: "Created by Ansible"
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Add a Grid Master Candidate to the grid with IPv4 address
infoblox.nios_modules.nios_member:
host_name: member01.localdomain
master_candidate: true
vip_setting:
- address: 192.168.1.100
subnet_mask: 255.255.255.0
gateway: 192.168.1.1
config_addr_type: IPV4
platform: VNIOS
comment: "Created by Ansible"
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Update host name of member
infoblox.nios_modules.nios_member:
host_name: {old_name: block1.localdomain, new_name: member01.localdomain}
master_candidate: false
vip_setting:
- address: 120.0.0.25
subnet_mask: 255.255.255.0
gateway: 120.0.0.1
config_addr_type: IPV4
platform: VNIOS
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Add a HA member to the grid
infoblox.nios_modules.nios_member:
host_name: memberha.localdomain
vip_setting:
- address: 192.168.1.100
subnet_mask: 255.255.255.0
gateway: 192.168.1.1
config_addr_type: IPV4
platform: VNIOS
enable_ha: true
router_id: 150
node_info:
- lan_ha_port_setting:
- ha_ip_address: 192.168.1.70
mgmt_lan: 192.168.1.80
- lan_ha_port_setting:
- ha_ip_address: 192.168.1.71
mgmt_lan: 192.168.1.81
comment: "Created by Ansible"
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Update the member with pre-provisioning details specified
infoblox.nios_modules.nios_member:
name: member01.localdomain
pre_provisioning:
- hardware_info:
- hwmodel: IB-VM-820
hwtype: IB-VNIOS
licenses:
- dns
- dhcp
- enterprise
- vnios
comment: "Updated by Ansible"
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Remove the member
infoblox.nios_modules.nios_member:
name: member01.localdomain
state: absent
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local