Module to provide Palo Alto compatibility to Salt
codeauthor: | Spencer Ervin <[email protected]> |
---|---|
maturity: | new |
depends: | none |
platform: | unix |
New in version 2018.3.0.
This module accepts connection configuration details either as parameters, or as configuration settings in pillar as a Salt proxy. Options passed into opts will be ignored if options are passed into pillar.
See also
This execution module was designed to handle connections to a Palo Alto based firewall. This module adds support to send connections directly to the device through the XML API or through a brokered connection to Panorama.
Prevent other users from changing configuration until the lock is released.
CLI Example:
salt '*' panos.add_config_lock
Get anti-virus information from PaloAlto Networks server
CLI Example:
salt '*' panos.check_antivirus
Get software information from PaloAlto Networks server.
CLI Example:
salt '*' panos.check_software
Clear all commit tasks.
CLI Example:
salt '*' panos.clear_commit_tasks
Commits the candidate configuration to the running configuration.
CLI Example:
salt '*' panos.commit
Deactivates an installed license. Required version 7.0.0 or greater.
key_name(str): The file name of the license key installed.
CLI Example:
salt '*' panos.deactivate_license key_name=License_File_Name.key
Remove license keys on disk.
key_name(str): The file name of the license key to be deleted.
CLI Example:
salt '*' panos.delete_license key_name=License_File_Name.key
Download the most recent anti-virus package.
CLI Example:
salt '*' panos.download_antivirus
Download software packages by filename.
Parameters: |
---|
CLI Example:
salt '*' panos.download_software_file PanOS_5000-8.0.0 salt '*' panos.download_software_file PanOS_5000-8.0.0 True
Download software packages by version number.
Parameters: |
---|
CLI Example:
salt '*' panos.download_software_version 8.0.0 salt '*' panos.download_software_version 8.0.0 True
Get new license(s) using from the Palo Alto Network Server.
CLI Example:
salt '*' panos.fetch_license salt '*' panos.fetch_license auth_code=foobar
Get the candidate configuration for the specified get_address object. This will not return address objects that are marked as pre-defined objects.
address(str): The name of the address object.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_address myhost salt '*' panos.get_address myhost 3
Get the candidate configuration for the specified address group. This will not return address groups that are marked as pre-defined objects.
addressgroup(str): The name of the address group.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_address_group foobar salt '*' panos.get_address_group foobar 3
Show active administrators.
CLI Example:
salt '*' panos.get_admins_active
Show all administrators.
CLI Example:
salt '*' panos.get_admins_all
Show information about available anti-virus packages.
CLI Example:
salt '*' panos.get_antivirus_info
Show ARP information.
CLI Example:
salt '*' panos.get_arp
Show timeout information for this administrative session.
CLI Example:
salt '*' panos.get_cli_idle_timeout
Show cli administrative permissions.
CLI Example:
salt '*' panos.get_cli_permissions
Report filesystem disk space usage.
CLI Example:
salt '*' panos.get_disk_usage
Get the DNS server configuration from the candidate configuration.
CLI Example:
salt '*' panos.get_dns_server_config
Get the domain name configuration from the candidate configuration.
CLI Example:
salt '*' panos.get_domain_config
Show the DoS block-ip table.
CLI Example:
salt '*' panos.get_dos_blocks
Print FQDNs used in rules and their IPs.
CLI Example:
salt '*' panos.get_fqdn_cache
Get the high availability configuration.
CLI Example:
salt '*' panos.get_ha_config
Show high-availability link-monitoring state.
CLI Example:
salt '*' panos.get_ha_link
Show high-availability path-monitoring state.
CLI Example:
salt '*' panos.get_ha_path
Show high-availability state information.
CLI Example:
salt '*' panos.get_ha_state
Show high-availability transition statistic information.
CLI Example:
salt '*' panos.get_ha_transitions
Get the hostname of the device.
CLI Example:
salt '*' panos.get_hostname
Get the counter statistics for interfaces.
Parameters: | name (str) -- The name of the interface to view. By default, all interface statistics are viewed. |
---|
CLI Example:
salt '*' panos.get_interface_counters salt '*' panos.get_interface_counters ethernet1/1
Show interface information.
Parameters: | name (str) -- The name of the interface to view. By default, all interface statistics are viewed. |
---|
CLI Example:
salt '*' panos.get_interfaces salt '*' panos.get_interfaces ethernet1/1
List all a single job by ID.
CLI Example:
salt '*' panos.get_job jid=15
List all jobs on the device.
CLI Example:
salt '*' panos.get_jobs salt '*' panos.get_jobs state=pending
Show LACP state.
CLI Example:
salt '*' panos.get_lacp
Show information about owned license(s).
CLI Example:
salt '*' panos.get_license_info
Show license token files for manual license deactivation.
CLI Example:
salt '*' panos.get_license_tokens
Show lldp config for interfaces.
CLI Example:
salt '*' panos.get_lldp_config
Show lldp counters for interfaces.
CLI Example:
salt '*' panos.get_lldp_counters
Show lldp local info for interfaces.
CLI Example:
salt '*' panos.get_lldp_local
Show lldp neighbors info for interfaces.
CLI Example:
salt '*' panos.get_lldp_neighbors
Show all local administrator accounts.
CLI Example:
salt '*' panos.get_local_admins
Report the logdb quotas.
CLI Example:
salt '*' panos.get_logdb_quota
Get the master key properties.
CLI Example:
salt '*' panos.get_master_key
Get the NTP configuration from the candidate configuration.
CLI Example:
salt '*' panos.get_ntp_config
Get list of configured NTP servers.
CLI Example:
salt '*' panos.get_ntp_servers
Show device operational mode setting.
CLI Example:
salt '*' panos.get_operational_mode
Show panorama connection status.
CLI Example:
salt '*' panos.get_panorama_status
Get the IP addresses that are permitted to establish management connections to the device.
CLI Example:
salt '*' panos.get_permitted_ips
Get the platform model information and limitations.
CLI Example:
salt '*' panos.get_platform
Get the configuration for the specified pre-defined application object. This will only return pre-defined application objects.
application(str): The name of the pre-defined application object.
CLI Example:
salt '*' panos.get_predefined_application saltstack
Get the candidate configuration for the specified security rule.
rulename(str): The name of the security rule.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_security_rule rule01 salt '*' panos.get_security_rule rule01 3
Get the candidate configuration for the specified service object. This will not return services that are marked as pre-defined objects.
service(str): The name of the service object.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_service tcp-443 salt '*' panos.get_service tcp-443 3
Get the candidate configuration for the specified service group. This will not return service groups that are marked as pre-defined objects.
servicegroup(str): The name of the service group.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_service_group foobar salt '*' panos.get_service_group foobar 3
Show device session statistics.
CLI Example:
salt '*' panos.get_session_info
Get the SNMP configuration from the device.
CLI Example:
salt '*' panos.get_snmp_config
Show information about available software packages.
CLI Example:
salt '*' panos.get_software_info
Get the system date/time.
CLI Example:
salt '*' panos.get_system_date_time
List important files in the system.
CLI Example:
salt '*' panos.get_system_files
Get the system information.
CLI Example:
salt '*' panos.get_system_info
Show system services.
CLI Example:
salt '*' panos.get_system_services
Show the system state variables.
CLI Example:
salt '*' panos.get_system_state salt '*' panos.get_system_state mask=cfg.ha.config.enabled salt '*' panos.get_system_state mask=cfg.ha.*
Retrieve a list of all uncommitted changes on the device. Requires PANOS version 8.0.0 or greater.
CLI Example:
salt '*' panos.get_uncommitted_changes
Get the local administrative user account configuration.
CLI Example:
salt '*' panos.get_users_config
Show all VLAN information.
CLI Example:
salt '*' panos.get_vlans
Retrieve a specified xpath from the candidate configuration.
xpath(str): The specified xpath in the candidate configuration.
CLI Example:
salt '*' panos.get_xpath /config/shared/service
Get the candidate configuration for the specified zone.
zone(str): The name of the zone.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_zone trust salt '*' panos.get_zone trust 2
Get all the zones in the candidate configuration.
vsys(str): The string representation of the VSYS ID.
CLI Example:
salt '*' panos.get_zones salt '*' panos.get_zones 2
Install anti-virus packages.
Parameters: |
|
---|
CLI Example:
salt '*' panos.install_antivirus 8.0.0
Install the license key(s).
CLI Example:
salt '*' panos.install_license
Upgrade to a software package by version.
Parameters: | version (str) -- The version of the PANOS file to install. |
---|
CLI Example:
salt '*' panos.install_license 8.0.0
Reboot a running system.
CLI Example:
salt '*' panos.reboot
Force refreshes all FQDNs used in rules.
CLI Example:
salt '*' panos.refresh_fqdn_cache salt '*' panos.refresh_fqdn_cache force=True
Release config lock previously held.
CLI Example:
salt '*' panos.remove_config_lock
Resolve address to ip address. Required version 7.0.0 or greater.
CLI Example:
salt '*' panos.resolve_address foo.bar.com salt '*' panos.resolve_address foo.bar.com vsys=2
Save device configuration to a named file.
CLI Example:
salt '*' panos.save_device_config foo.xml
Save files needed to restore device to local disk.
CLI Example:
salt '*' panos.save_device_state
Set the authentication profile of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Parameters: |
---|
salt '*' panos.set_authentication_profile foo salt '*' panos.set_authentication_profile foo deploy=True
Set the hostname of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Parameters: |
---|
salt '*' panos.set_hostname newhostname salt '*' panos.set_hostname newhostname deploy=True
Enables or disables the HTTP management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_http salt '*' panos.set_management_http enabled=False deploy=True
Enables or disables the HTTPS management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_https salt '*' panos.set_management_https enabled=False deploy=True
Enables or disables the ICMP management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_icmp salt '*' panos.set_management_icmp enabled=False deploy=True
Enables or disables the HTTP OCSP management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_ocsp salt '*' panos.set_management_ocsp enabled=False deploy=True
Enables or disables the SNMP management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_snmp salt '*' panos.set_management_snmp enabled=False deploy=True
Enables or disables the SSH management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_ssh salt '*' panos.set_management_ssh enabled=False deploy=True
Enables or disables the Telnet management service on the device.
CLI Example:
Parameters: |
---|
salt '*' panos.set_management_telnet salt '*' panos.set_management_telnet enabled=False deploy=True
Set the NTP authentication of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Parameters: |
|
---|
salt '*' ntp.set_authentication target=both authentication_type=autokey salt '*' ntp.set_authentication target=primary authentication_type=none salt '*' ntp.set_authentication target=both authentication_type=symmetric key_id=15 authentication_key=mykey algorithm=md5 salt '*' ntp.set_authentication target=both authentication_type=symmetric key_id=15 authentication_key=mykey algorithm=md5 deploy=True
Set the NTP servers of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Parameters: |
---|
salt '*' ntp.set_servers 0.pool.ntp.org 1.pool.ntp.org salt '*' ntp.set_servers primary_server=0.pool.ntp.org secondary_server=1.pool.ntp.org salt '*' ntp.ser_servers 0.pool.ntp.org 1.pool.ntp.org deploy=True
Add an IPv4 address or network to the permitted IP list.
CLI Example:
Parameters: |
---|
salt '*' panos.set_permitted_ip 10.0.0.1 salt '*' panos.set_permitted_ip 10.0.0.0/24 salt '*' panos.set_permitted_ip 10.0.0.1 deploy=True
Set the timezone of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Parameters: |
---|
salt '*' panos.set_timezone UTC salt '*' panos.set_timezone UTC deploy=True
Shutdown a running system.
CLI Example:
salt '*' panos.shutdown
Perform a route lookup within active route table (fib).
ip (str): The destination IP address to test.
vr (str): The name of the virtual router to test.
CLI Example:
salt '*' panos.test_fib_route 4.2.2.2 salt '*' panos.test_fib_route 4.2.2.2 my-vr
Checks which security policy as connection will match on the device.
sourcezone (str): The source zone matched against the connection.
destinationzone (str): The destination zone matched against the connection.
source (str): The source address. This must be a single IP address.
destination (str): The destination address. This must be a single IP address.
protocol (int): The protocol number for the connection. This is the numerical representation of the protocol.
port (int): The port number for the connection.
application (str): The application that should be matched.
category (str): The category that should be matched.
vsys (int): The numerical representation of the VSYS ID.
allrules (bool): Show all potential match rules until first allow rule.
CLI Example:
salt '*' panos.test_security_policy sourcezone=trust destinationzone=untrust protocol=6 port=22 salt '*' panos.test_security_policy sourcezone=trust destinationzone=untrust protocol=6 port=22 vsys=2
Unlocks a locked administrator account.
CLI Example:
salt '*' panos.unlock_admin username=bob
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.panos.html