mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Persistent connection timer changes (#27272)
* Add command_timeout timer that defines the amount of time to wait for a command or RPC call before timing out. * Remove connect_retries and connect_interval configuration varaible and replace it with connect_retry_timeout to control the timeout value of connection to local scoket. * Make required changes to netowrk action plugins and relevant network files in module_utils. * Required documentation changes.
This commit is contained in:
parent
4dd8f281d6
commit
70ce394840
23 changed files with 154 additions and 73 deletions
|
@ -1323,15 +1323,6 @@ PARAMIKO_RECORD_HOST_KEYS:
|
|||
value_type: boolean
|
||||
vars: []
|
||||
yaml: {key: paramiko_connection.record_host_keys}
|
||||
PERSISTENT_CONNECT_INTERVAL:
|
||||
default: 1
|
||||
desc: 'TODO: write it'
|
||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_INTERVAL}]
|
||||
ini:
|
||||
- {key: connect_interval, section: persistent_connection}
|
||||
value_type: integer
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.connect_interval}
|
||||
PERSISTENT_CONTROL_PATH_DIR:
|
||||
default: ~/.ansible/pc
|
||||
desc: 'TODO: write it'
|
||||
|
@ -1340,15 +1331,6 @@ PERSISTENT_CONTROL_PATH_DIR:
|
|||
- {key: control_path_dir, section: persistent_connection}
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.control_path_dir}
|
||||
PERSISTENT_CONNECT_RETRIES:
|
||||
default: 30
|
||||
desc: 'TODO: write it'
|
||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_RETRIES}]
|
||||
ini:
|
||||
- {key: connect_retries, section: persistent_connection}
|
||||
value_type: integer
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.connect_retries}
|
||||
PERSISTENT_CONNECT_TIMEOUT:
|
||||
default: 30
|
||||
desc: 'TODO: write it'
|
||||
|
@ -1358,6 +1340,24 @@ PERSISTENT_CONNECT_TIMEOUT:
|
|||
value_type: integer
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.connect_timeout}
|
||||
PERSISTENT_CONNECT_RETRY_TIMEOUT:
|
||||
default: 15
|
||||
desc: 'TODO: write it'
|
||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_RETRY_TIMEOUT}]
|
||||
ini:
|
||||
- {key: connect_retry_timeout, section: persistent_connection}
|
||||
value_type: integer
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.connect_retry_timeout}
|
||||
PERSISTENT_COMMAND_TIMEOUT:
|
||||
default: 10
|
||||
desc: 'TODO: write it'
|
||||
env: [{name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT}]
|
||||
ini:
|
||||
- {key: command_timeout, section: persistent_connection}
|
||||
value_type: integer
|
||||
vars: []
|
||||
yaml: {key: persistent_connection.command_timeout}
|
||||
RETRY_FILES_ENABLED:
|
||||
default: True
|
||||
desc: This controls whether a failed Ansible playbook should create a .retry file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue