paloaltonetworks.panos.panos_ha module – Manage High Availability on PAN-OS
Note
This module is part of the paloaltonetworks.panos collection (version 2.21.2).
To install it, use: ansible-galaxy collection install paloaltonetworks.panos
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: paloaltonetworks.panos.panos_ha
.
New in paloaltonetworks.panos 1.0.0
Synopsis
Manage High Availability on PAN-OS in A/S and A/A modes including all HA interface configuration. Assumes physical interfaces are of type HA already using panos_interface. This module has the following limitations due to no support in pandevice - * No peer_backup_ip, this prevents full configuration of ha1_backup links * Speed and Duplex of ports was intentially skipped
Requirements
The below requirements are needed on the host that executes this module.
pan-python can be obtained from PyPI https://pypi.python.org/pypi/pan-python
pandevice can be obtained from PyPI https://pypi.python.org/pypi/pandevice
currently requires specific pandevice release 0.13
Parameters
Parameter |
Comments |
---|---|
Deprecated Use provider to specify PAN-OS connectivity instead. The API key to use instead of generating it using username / password. |
|
Deprecated Please use paloaltonetworks.panos.panos_commit_firewall, paloaltonetworks.panos.panos_commit_panorama, paloaltonetworks.panos.panos_commit_push instead. Commit changes after creating object. If ip_address is a Panorama device, and device_group or template are also set, perform a commit to Panorama and a commit-all to the device group/template. Choices: |
|
Default gateway of the HA1 interface |
|
IP of the HA1 interface |
|
Netmask of the HA1 interface |
|
Interface to use for this HA1 interface (eg. ethernet1/5) |
|
Default gateway of the HA1Backup interface |
|
IP of the HA1Backup interface |
|
Netmask of the HA1Backup interface |
|
Interface to use for this HA1Backup interface (eg. ethernet1/5) |
|
Default gateway of the HA2 interface |
|
IP of the HA2 interface |
|
Netmask of the HA2 interface |
|
Interface to use for this HA2 interface (eg. ethernet1/5) Default: :ansible-option-default:`"ha2-a"` |
|
Default gateway of the HA2Backup interface |
|
IP of the HA2Backup interface |
|
Netmask of the HA2Backup interface |
|
Interface to use for this HA2Backup interface (eg. ethernet1/5) |
|
Interface to use for this HA3 interface (eg. ethernet1/5, ae1) |
|
Enabled configuration synchronization Choices: |
|
Enable HA Choices: |
|
The group identifier Default: :ansible-option-default:`1` |
|
Enable HA2 keepalives Choices: |
|
HA2 keepalive action |
|
HA2 keepalive threshold |
|
active-active hash key used by ip-hash algorithm Choices: |
|
Mode of HA Choices: |
|
Passive link state Choices: |
|
HA Peer HA1 IP address |
|
HA Peer HA1 Backup IP address |
|
active-active session owner mode Choices: |
|
active-active session setup mode Choices: |
|
Enabled state synchronization Choices: |
|
active-active network sync qos Choices: |
|
active-active network sync virtual router Choices: |
|
active-active tentative hold timer |
|
Deprecated Use provider to specify PAN-OS connectivity instead. The IP address or hostname of the PAN-OS device being configured. |
|
Deprecated Use provider to specify PAN-OS connectivity instead. The password to use for authentication. This is ignored if api_key is specified. |
|
Deprecated Use provider to specify PAN-OS connectivity instead. The port number to connect to the PAN-OS device on. Default: :ansible-option-default:`443` |
|
A dict object containing connection details. |
|
The API key to use instead of generating it using username / password. |
|
The IP address or hostname of the PAN-OS device being configured. |
|
The password to use for authentication. This is ignored if api_key is specified. |
|
The port number to connect to the PAN-OS device on. Default: :ansible-option-default:`443` |
|
The serial number of a firewall to use for targeted commands. If ip_address is not a Panorama PAN-OS device, then this param is ignored. |
|
The username to use for authentication. This is ignored if api_key is specified. Default: :ansible-option-default:`"admin"` |
|
The state. Choices: |
|
(Panorama only) The template this operation should target. Mutually exclusive with template_stack. |
|
(Panorama only) The template stack this operation should target. Mutually exclusive with template. |
|
Deprecated Use provider to specify PAN-OS connectivity instead. The username to use for authentication. This is ignored if api_key is specified. Default: :ansible-option-default:`"admin"` |
|
The vsys this object should be imported into. Objects that are imported include interfaces, virtual routers, virtual wires, and VLANs. Interfaces are typically imported into vsys1 if no vsys is specified. |
Notes
Note
Checkmode is supported.
Panorama is supported.
PAN-OS connectivity should be specified using provider or the classic PAN-OS connectivity params (ip_address, username, password, api_key, and port). If both are present, then the classic params are ignored.
If the PAN-OS to be configured is Panorama, either template or template_stack must be specified.
Examples
- name: set ports to HA mode
paloaltonetworks.panos.panos_interface:
provider: '{{ provider }}'
if_name: "{{ item }}"
mode: "ha"
enable_dhcp: false
with_items:
- ethernet1/1
- ethernet1/2
- ethernet1/3
- ethernet1/4
- ethernet1/5
- name: Configure Active/Standby HA
paloaltonetworks.panos.panos_ha:
provider: '{{ provider }}'
state: present
ha_peer_ip: "192.168.50.1"
ha1_ip_address: "192.168.50.2"
ha1_netmask: "255.255.255.252"
ha1_port: "ethernet1/1"
ha2_port: "ethernet1/3"
- name: Configure Active/Active HA
paloaltonetworks.panos.panos_ha:
provider: "{{ provider }}"
state: present
ha_mode: "active-active"
ha_device_id: 0
ha_session_owner_selection: "first-packet"
ha_session_setup: "first-packet"
ha_peer_ip: "192.168.50.1"
ha_peer_ip_backup: "192.168.50.5"
ha1_port: "ethernet1/1"
ha1_ip_address: "192.168.50.2"
ha1_netmask: "255.255.255.252"
ha1b_port: "ethernet1/2"
ha1b_ip_address: "192.168.50.6"
ha1b_netmask: "255.255.255.252"
ha2_port: "ethernet1/3"
ha2b_port: "ethernet1/4"
ha3_port: "ethernet1/5"