Member
Use the nios_member
module to create, update, or remove Infoblox NIOS members from a NIOS Grid.
The following table describes the parameters you can define in the nios_member
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the host name of the member to either add, update, or remove from the NIOS instance.
|
| *Optional | Specifies the network settings for the Grid member.
|
| *Optional | Specifies the IPv6 settings for the Grid member.
|
| Optional | Specifies the IP address type as |
| Optional | Enables HA if set to |
| Optional | Specifies the identifier of a virtual router. Provide this ID if |
| Optional | Enables the LAN2 port as an independent port when set to |
| Optional | Specifies settings for the LAN2 port of the Grid member when set to
|
| Optional | Specifies the hardware platform. The default value is INFOBLOX. |
| Optional | Specifies the node information list with a detailed report of statuses of operations performed on the Grid member.
|
| Optional | Specifies settings for the member MGMT port.
|
| Optional | Specifies the name of the upgrade group to which this Grid member belongs. |
| Optional | Specifies whether to use the syslog proxy setting. The default value is |
| Optional | Specifies whether external syslog servers are enabled. |
| Optional | Specifies the list of external syslog servers.
|
| Optional | Specifies the pre-provisioning information.
|
| Optional | Specifies the flag for initiating a create token request for pre-provisioned members. |
| Optional | Determines whether a member must be set as Grid Master Candidate. Set one of the following values:
|
| Optional | Specifies extensible attributes for the member object. |
| Optional | Specifies the state of the member instance on the NIOS server.
|
| Optional | Describes the Member object. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Note
*When creating a member instance, you must specify either the vip_setting
or the ipv6_setting
parameter.
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: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
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: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: update host name of a 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
comment: Created with Ansible
extattrs: {'Site':'HQ'}
state: present
provider: nios_provider:
host: 10.34.10.724
username: admin
password: cloudadmin
connection: local