1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/module_utils
patchback[bot] 2d26fba0b9
[PR #7989/03966624 backport][stable-9] Consul implement agent service and check (#8513)
Consul implement agent service and check (#7989)

* Implement agent service and check (#7987)

* implement update of service and check

* update tests
update documentation

* update documentation

* add consul_agent_check/service to action_groups

check if unique_identifier of name is in params to get object

add suggested improvements

* update sanity

* fix sanity issues
update documentation

* fix naming

* fix naming

check if response_data has data

* fix sanity extra-docs

* add as ignore maintainer in BOTMETA.yml
update version_added to 8.4

* fix sanity

* add to maintainers

* Update plugins/modules/consul_agent_check.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/consul_agent_check.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/consul_agent_check.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* update version_added

* if create and update return no object as result we read the object again

* get_first_appearing_identifier check the params for the given identifier and return it to simplify id vs name

* add unique_identifiers as a new property and a method to decide which identifier should be used

* fix sanity

* add self to team consul
remove params with no values
add operational_attributes that inherited classes can set them
get identifier value from object

* fix sanity
fix test

* remove the possibility to add checks with consul_agent_check.
check if service has changed

* remove tests for idempotency check because for checks it is not possible

* remove unique_identifier from consul.py
change unique_identifier to unique_identifiers

* get id from params

* Revert "remove unique_identifier from consul.py"

This reverts commit a4f0d0220dd23e95871914b152c25ff352097a2c.

* update version to 8.5

* Revert "Revert "remove unique_identifier from consul.py""

This reverts commit d2c35cf04c8aaf5f0175d772f862a796e22e35d4.

* update description
update test

* fix sanity tests

* fix sanity tests

* update documentation for agent_check

* fix line length

* add documentation

* fix sanity

* simplified check for Tcp

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* check duration with regex

* fix

* update documentation

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit 03966624ba)

Co-authored-by: Ilgmi <michael.ilg@mailbox.org>
2024-06-16 10:10:45 +02:00
..
identity/keycloak Keycloak client role scope (#8252) 2024-04-21 20:10:03 +02:00
mh MH: deprecate features (#8280) 2024-04-29 17:27:06 +02:00
net_tools/pritunl Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
oracle Use isinstance() instead of type() (#7501) 2023-11-08 13:20:19 +01:00
remote_management/lxca Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
source_control Remove deprecated features, bump version to 6.0.0 (#5326) 2022-10-25 08:07:21 +02:00
storage Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
_filelock.py passwordstore plugin: vendor FileLock that was removed from ansible-core devel (#6447) 2023-04-28 12:08:45 +02:00
_mount.py Add remaining copyright statements, add licenses sanity test (#5098) 2022-08-08 23:23:08 +02:00
_stormssh.py Removes dependency on StormSSH (#6117) 2023-03-12 12:39:42 +01:00
alicloud_ecs.py multiple modules: removed unused imports (#5240) 2022-09-09 22:23:48 +02:00
btrfs.py New modules btrfs_subvolume / btrfs_info (#5832) 2023-04-20 06:35:29 +02:00
cloud.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
cmd_runner.py [PR #8479/71f96748 backport][stable-9] cmd_runner mod util: improvements (#8504) 2024-06-14 07:55:02 +02:00
consul.py [PR #7989/03966624 backport][stable-9] Consul implement agent service and check (#8513) 2024-06-16 10:10:45 +02:00
csv.py csv module utils: detect unicode BOM in content (#6662) 2023-06-15 07:19:16 +02:00
database.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
datetime.py Avoid deprecated utcnow() (#8222) 2024-04-20 09:26:08 +02:00
deps.py deps module util: fix overzealous name cropping (#6479) 2023-05-04 19:50:39 +12:00
dimensiondata.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
django.py [PR #8412/54df0c9b backport][stable-9] django_createcachetable: new module (#8449) 2024-06-01 22:54:20 +02:00
gandi_livedns_api.py feat(gandi_livedns): support personal access tokens (#8337) 2024-05-18 15:42:11 +02:00
gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner (#5545) 2022-11-15 21:02:45 +01:00
gio_mime.py New Module: gio_mime (#7271) 2023-09-20 19:29:05 +02:00
gitlab.py gitlab modules: deprecate basic auth method (#8383) 2024-05-19 20:47:54 +02:00
heroku.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
homebrew.py homebrew: Move repeated logic from homebrew modules into module_utils (#8324) 2024-05-11 16:52:43 +02:00
hwc_utils.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
ibm_sa_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ilo_redfish_utils.py Adding CheckiLORebootStatus functionality to ilo_redfish_command (#6115) 2023-04-16 13:06:12 +02:00
influxdb.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
ipa.py module_utils/ipa.py: fix regex when parsing version (#8175) 2024-04-09 07:40:10 +02:00
jenkins.py jenkins_plugin: fix sanity checks (#5565) 2022-11-17 06:55:46 +01:00
known_hosts.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ldap.py Simplify regex for identifying order number in DN (#7646) (#7697) 2024-01-29 19:08:34 +01:00
linode.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
locale_gen.py locale_gen: refactor module to use CmdRunner (#6820) 2023-07-06 21:05:34 +02:00
lxd.py plugins/inventory/lxd: add server_cert option (#7392) 2023-10-25 08:47:48 +02:00
manageiq.py manageiq_tags_info: new module (#5368) 2022-10-23 11:33:07 +02:00
memset.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
module_helper.py MH: deprecate features (#8280) 2024-04-29 17:27:06 +02:00
ocapi_utils.py Use isinstance() instead of type() (#7501) 2023-11-08 13:20:19 +01:00
oneandone.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
onepassword.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
oneview.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
online.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
opennebula.py one_vm: fix syntax error when creating VMs with a more complex template (#6294) 2023-04-16 13:22:49 +02:00
pipx.py pipx: change parameter formatter for pip_args (#7506) 2023-11-11 11:59:44 +01:00
proxmox.py [PR #8441/d2d7deb4 backport][stable-9] #8440 Allow for API Port to be specified when using proxmox_kvm (#8478) 2024-06-08 14:59:27 +02:00
puppet.py 8281: puppet waitforlock (#8282) 2024-05-04 15:26:56 +02:00
pure.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
python_runner.py PythonRunner: a command runner for python (#8289) 2024-04-29 17:26:14 +02:00
redfish_utils.py [PR #8434/961767e2 backport][stable-9] Redfish: Add options to check the availability of the service (#8457) 2024-06-03 07:15:58 +02:00
redhat.py [9.0.0] Remove deprecated modules and features (#8198) 2024-04-22 18:28:22 +02:00
redis.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
rundeck.py Added parameter to select Content-Type when accessing the Rundeck API (#7684) 2024-05-12 09:21:39 +02:00
saslprep.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
scaleway.py Avoid deprecated utcnow() (#8222) 2024-04-20 09:26:08 +02:00
snap.py snap: add param "dangerous" (#6908) 2023-07-15 12:54:39 +02:00
ssh.py ssh_config: fixed sanity (#5720) 2022-12-22 21:34:21 +01:00
univention_umc.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
utm_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
vardict.py [PR #8411/ec886203 backport][stable-9] multiple modules: use new vardict in module (#8419) 2024-05-26 14:13:46 +02:00
version.py Drop support for ansible-core 2.11 and 2.12 (#7269) 2023-10-11 16:13:14 +02:00
vexata.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
wdc_redfish_utils.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
xenserver.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
xfconf.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00