ingatesystems.fuego_modules.fuego_system – Manage system near functionality such as licenses, patches and upgrades on an Ingate SBC.
Note
This plugin is part of the ingatesystems.fuego_modules collection (version 1.1.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 ingatesystems.fuego_modules
.
To use it in a playbook, specify: ingatesystems.fuego_modules.fuego_system
.
New in version 1.0.0: of ingatesystems.fuego_modules
Synopsis
Manage system near functionality such as licenses, patches and upgrades on an Ingate SBC.
Requirements
The below requirements are needed on the host that executes this module.
ingatesdk >= 1.0.14
Parameters
Parameter |
Comments |
---|---|
A dict object containing connection details. |
|
The hostname or IP address to the unit. |
|
The password for the REST API user. |
|
Which HTTP(S) port to connect to. |
|
Which HTTP protocol to use. Choices:
|
|
The timeout (in seconds) for REST API requests. |
|
The username of the REST API user. |
|
Verify the unit’s HTTPS certificate. Choices:
|
|
REST API version. Choices:
|
|
Path to a valid Ingate patch or upgrade file. |
|
Log out all logged in admin users. Choices:
|
|
Upgrade to the latest available version. Choices:
|
|
Upgrade to the latest major level. Choices:
|
|
Upgrade to the latest minor level. Choices:
|
|
Upgrade to the latest patch level. Choices:
|
|
The license code (e.g. KRJM-Q625-FUVG). Must be set for |
|
Download and install a license. Choices:
|
|
The operational mode. Choices:
|
|
Set mode to siparator or firewall. Choices:
|
|
Password for account login on ingate.com. Must be set for |
|
Install a patch. Choices:
|
|
Reboot the unit. Choices:
|
|
Restart the SIP module and remove all state, like registrations etc. Choices:
|
|
Install a firmware upgrade. Choices:
|
|
Abort an upgrade after an upgrade has been installed. Choices:
|
|
Accept an upgrade after an upgrade has been installed. Choices:
|
|
Downgrade from a previously installed upgrade. Choices:
|
|
Download and install a firmware upgrade. The upgrade(s) will be downloaded from the Ingate Websystem. You can upgrade to the latest patch, minor or major version. You can also specify a desired version that is available in the respective level. Choices:
|
|
Username for account login on ingate.com. Must be set for |
|
The the desired version to upgrade to. |
Notes
Note
The methods
patch
andupgrade_download
assumes that the the preliminary configuration has been stored to the permanent configuration at least once (see module fuego_configstore
method).For the methods
license
andupgrade_download
the Ansible host needs Internet connectivity.When using the the
upgrade
method the unit will reboot and you need to doupgrade accept
orupgrade_abort
.When changing operational mode using
opmode
, a reboot is required in order for the change to take effect.This module requires that the Ingate Python SDK is installed on the host. To install the SDK use the pip command from your shell
pip install ingatesdk
.
Examples
# Install a license
- fuego_system:
client: "{{ stored_client_data }}"
license: true
username: myusername
password: mypassword
liccode: 2STW-2UL8-JWJD
# Install a patch
- fuego_system:
client: "{{ stored_client_data }}"
patch: true
filename: patch-6.2.1-rc2-vm2.fup
# Install an upgrade
- fuego_system:
client: "{{ stored_client_data }}"
upgrade: true
filename: fupgrade.fup.any
# Accept an upgrade
- fuego_system:
client: "{{ stored_client_data }}"
upgrade_accept: true
# Abort an upgrade
- fuego_system:
client: "{{ stored_client_data }}"
upgrade_abort: true
# Downgrade an upgrade
- fuego_system:
client: "{{ stored_client_data }}"
upgrade_downgrade: true
# Upgrade to the latest version available
- fuego_system:
client: "{{ stored_client_data }}"
upgrade_download: true
username: myusername
password: mypassword
latest: true
# Change the operational mode to Siparator
- fuego_system:
client: "{{ stored_client_data }}"
opmode: true
mode: siparator
# Reboot the unit
- fuego_system:
client: "{{ stored_client_data }}"
reboot: true
# Restart the SIP module
- fuego_system:
client: "{{ stored_client_data }}"
restart_sip: true
# Log out all logged in admin users
- fuego_system:
client: "{{ stored_client_data }}"
flush_logins: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Successfully flushed all logins.” |
|
A list of information about the installed license. Returned: when |
|
Information regarding the installed license. Returned: success Sample: “Install a Base license.” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Operational mode set to siparator.” |
|
Information about the installed patch. Returned: when |
|
Patch information. Returned: success Sample: “Installed the patch patch-6.2.0-apipatch-1.fup (Test REST API 1).” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Rebooting the unit now…” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Successfully restarted the SIP module.” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Rebooting with new version. Please contact the unit again once it has rebooted.” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “The upgrade has been removed. Rebooting..” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Made the upgrade permanent.” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Downgrade in progress (6.2.0). Rebooting…” |
|
A command status message Returned: when |
|
The command status message Returned: success Sample: “Your unit is upgraded to the latest version (6.2.2)” |