:source: fortios_system_federated_upgrade.py
:orphan:
.. fortios_system_federated_upgrade:
fortios_system_federated_upgrade -- Coordinate federated upgrades within the Security Fabric in Fortinet's FortiOS and FortiGate.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and federated_upgrade category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v7.0.0 -> v7.6.6
Parameters
----------
.. raw:: html
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: false
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- system_federated_upgrade - Coordinate federated upgrades within the Security Fabric. type: dict
more...
| Supported Version Ranges |
| system_federated_upgrade |
v7.0.0 -> 7.6.6 |
- failure_device - Serial number of the node to include. type: str
more...
|
Supported Version Ranges |
| failure_device |
v7.0.2 -> 7.6.6 |
- failure_reason - Reason for upgrade failure. type: str choices: none, internal, timeout, device-type-unsupported, download-failed, device-missing, version-unavailable, staging-failed, reboot-failed, device-not-reconnected, node-not-ready, no-final-confirmation, no-confirmation-query, config-error-log-nonempty, csf-tree-not-supported, firmware-changed, node-failed, image-missing
more...
|
Supported Version Ranges |
| failure_reason |
v7.0.2 -> 7.6.6 |
| [none] |
v7.0.2 -> 7.6.6 |
| [internal] |
v7.0.2 -> 7.6.6 |
| [timeout] |
v7.0.2 -> 7.6.6 |
| [device-type-unsupported] |
v7.0.2 -> 7.6.6 |
| [download-failed] |
v7.0.2 -> 7.6.6 |
| [device-missing] |
v7.0.2 -> 7.6.6 |
| [version-unavailable] |
v7.0.2 -> 7.6.6 |
| [staging-failed] |
v7.0.2 -> 7.6.6 |
| [reboot-failed] |
v7.0.2 -> 7.6.6 |
| [device-not-reconnected] |
v7.0.2 -> 7.6.6 |
| [node-not-ready] |
v7.0.2 -> 7.6.6 |
| [no-final-confirmation] |
v7.0.2 -> 7.6.6 |
| [no-confirmation-query] |
v7.0.2 -> 7.6.6 |
| [config-error-log-nonempty] |
v7.2.4 -> 7.6.6 |
| [csf-tree-not-supported] |
v7.4.1 -> 7.6.6 |
| [firmware-changed] |
v7.6.1 -> 7.6.6 |
| [node-failed] |
v7.2.4 -> 7.6.6 |
| [image-missing] |
v7.6.4 -> 7.6.6 |
- ha_reboot_controller - Serial number of the FortiGate unit that will control the reboot process for the federated upgrade of the HA cluster. type: str
more...
|
Supported Version Ranges |
| ha_reboot_controller |
v7.4.0 -> 7.6.6 |
- ignore_signing_errors - Allow/reject use of FortiGate firmware images that are unsigned. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| ignore_signing_errors |
v7.6.0 -> 7.6.6 |
| [enable] |
v7.6.0 -> 7.6.6 |
| [disable] |
v7.6.0 -> 7.6.6 |
- initial_version - Firmware version when the upgrade was set up. type: str
more...
|
Supported Version Ranges |
| initial_version |
v7.6.1 -> 7.6.6 |
- known_ha_members - Known members of the HA cluster. If a member is missing at upgrade time, the upgrade will be cancelled. type: list member_path: known_ha_members:serial
more...
| Supported Version Ranges |
| known_ha_members |
v7.4.2 -> 7.6.6 |
- serial - Serial number of HA member type: str required: true
more...
|
Supported Version Ranges |
| serial |
v7.4.2 -> 7.6.6 |
- next_path_index - The index of the next image to upgrade to. type: int
more...
|
Supported Version Ranges |
| next_path_index |
v7.0.4 -> 7.6.6 |
- node_list - Nodes which will be included in the upgrade. type: list member_path: node_list:serial
more...
| Supported Version Ranges |
| node_list |
v7.0.0 -> 7.6.6 |
- allow_download - Enable/disable download firmware images. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| allow_download |
v7.6.4 -> 7.6.6 |
| [enable] |
v7.6.4 -> 7.6.6 |
| [disable] |
v7.6.4 -> 7.6.6 |
- coordinating_fortigate - Serial number of the FortiGate unit that controls this device. type: str
more...
|
Supported Version Ranges |
| coordinating_fortigate |
v7.0.0 -> 7.6.6 |
- device_type - Fortinet device type. type: str choices: fortigate, fortiswitch, fortiap, fortiextender
more...
|
Supported Version Ranges |
| device_type |
v7.0.0 -> 7.6.6 |
| [fortigate] |
v7.0.0 -> 7.6.6 |
| [fortiswitch] |
v7.0.0 -> 7.6.6 |
| [fortiap] |
v7.0.0 -> 7.6.6 |
| [fortiextender] |
v7.2.1 -> 7.6.6 |
- failure_reason - Upgrade failure reason. type: str choices: none, internal, timeout, device-type-unsupported, download-failed, device-missing, version-unavailable, staging-failed, reboot-failed, device-not-reconnected, node-not-ready, no-final-confirmation, no-confirmation-query, config-error-log-nonempty, csf-tree-not-supported, firmware-changed, node-failed, image-missing
more...
|
Supported Version Ranges |
| failure_reason |
v7.6.3 -> 7.6.6 |
| [none] |
v7.6.3 -> 7.6.6 |
| [internal] |
v7.6.3 -> 7.6.6 |
| [timeout] |
v7.6.3 -> 7.6.6 |
| [device-type-unsupported] |
v7.6.3 -> 7.6.6 |
| [download-failed] |
v7.6.3 -> 7.6.6 |
| [device-missing] |
v7.6.3 -> 7.6.6 |
| [version-unavailable] |
v7.6.3 -> 7.6.6 |
| [staging-failed] |
v7.6.3 -> 7.6.6 |
| [reboot-failed] |
v7.6.3 -> 7.6.6 |
| [device-not-reconnected] |
v7.6.3 -> 7.6.6 |
| [node-not-ready] |
v7.6.3 -> 7.6.6 |
| [no-final-confirmation] |
v7.6.3 -> 7.6.6 |
| [no-confirmation-query] |
v7.6.3 -> 7.6.6 |
| [config-error-log-nonempty] |
v7.6.3 -> 7.6.6 |
| [csf-tree-not-supported] |
v7.6.3 -> 7.6.6 |
| [firmware-changed] |
v7.6.3 -> 7.6.6 |
| [node-failed] |
v7.6.3 -> 7.6.6 |
| [image-missing] |
v7.6.4 -> 7.6.6 |
- maximum_minutes - Maximum number of minutes to allow for immediate upgrade preparation. type: int
more...
|
Supported Version Ranges |
| maximum_minutes |
v7.4.0 -> 7.6.6 |
- serial - Serial number of the node to include. type: str required: true
more...
|
Supported Version Ranges |
| serial |
v7.0.0 -> 7.6.6 |
- setup_time - Upgrade preparation start time in UTC (hh:mm yyyy/mm/dd UTC). type: str
more...
|
Supported Version Ranges |
| setup_time |
v7.0.0 -> 7.6.6 |
- time - Scheduled upgrade execution time in UTC (hh:mm yyyy/mm/dd UTC). type: str
more...
|
Supported Version Ranges |
| time |
v7.0.0 -> 7.6.6 |
- timing - Run immediately or at a scheduled time. type: str choices: immediate, scheduled
more...
|
Supported Version Ranges |
| timing |
v7.0.0 -> 7.6.6 |
| [immediate] |
v7.0.0 -> 7.6.6 |
| [scheduled] |
v7.0.0 -> 7.6.6 |
- upgrade_path - Fortinet OS image versions to upgrade through in major-minor-patch format, such as 7-0-4. type: str
more...
|
Supported Version Ranges |
| upgrade_path |
v7.0.0 -> 7.6.6 |
- source - Source that set up the federated upgrade config. type: str choices: user, auto-firmware-upgrade, forced-upgrade
more...
|
Supported Version Ranges |
| source |
v7.6.0 -> 7.6.6 |
| [user] |
v7.6.0 -> 7.6.6 |
| [auto-firmware-upgrade] |
v7.6.0 -> 7.6.6 |
| [forced-upgrade] |
v7.6.4 -> 7.6.6 |
- starter_admin - Admin that started the upgrade. type: str
more...
|
Supported Version Ranges |
| starter_admin |
v7.6.1 -> 7.6.6 |
- status - Current status of the upgrade. type: str choices: disabled, initialized, downloading, device-disconnected, ready, coordinating, staging, final-check, upgrade-devices, cancelled, confirmed, done, dry-run-done, failed, download-failed
more...
|
Supported Version Ranges |
| status |
v7.0.0 -> 7.6.6 |
| [disabled] |
v7.0.0 -> 7.6.6 |
| [initialized] |
v7.0.0 -> 7.6.6 |
| [downloading] |
v7.0.0 -> 7.6.6 |
| [device-disconnected] |
v7.0.0 -> 7.6.6 |
| [ready] |
v7.0.0 -> 7.6.6 |
| [coordinating] |
v7.2.4 -> 7.6.6 |
| [staging] |
v7.0.0 -> 7.6.6 |
| [final-check] |
v7.0.1 -> 7.6.6 |
| [upgrade-devices] |
v7.0.2 -> 7.6.6 |
| [cancelled] |
v7.0.0 -> 7.6.6 |
| [confirmed] |
v7.0.0 -> 7.6.6 |
| [done] |
v7.0.0 -> 7.6.6 |
| [dry-run-done] |
v7.6.0 -> 7.6.6 |
| [failed] |
v7.0.0 -> 7.6.6 |
| [download-failed] |
v7.0.0 -> v7.0.1 |
- upgrade_id - Unique identifier for this upgrade. type: int
more...
|
Supported Version Ranges |
| upgrade_id |
v7.0.0 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
- The module supports check_mode.
Examples
--------
.. code-block:: yaml+jinja
- name: Coordinate federated upgrades within the Security Fabric.
fortinet.fortios.fortios_system_federated_upgrade:
vdom: "{{ vdom }}"
system_federated_upgrade:
failure_device: ""
failure_reason: "none"
ha_reboot_controller: ""
ignore_signing_errors: "enable"
initial_version: ""
known_ha_members:
-
serial: ""
next_path_index: "0"
node_list:
-
allow_download: "enable"
coordinating_fortigate: ""
device_type: "fortigate"
failure_reason: "none"
maximum_minutes: "15"
serial: ""
setup_time: ""
time: ""
timing: "immediate"
upgrade_path: ""
source: "user"
starter_admin: ""
status: "disabled"
upgrade_id: "0"
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.