10.0.0: remove deprecated features (#8918)

* Remove pool option from redhat_subscription.

* Remove proxmox_default_behavior option from proxmox_kvm.

* Remove the logging option from ejabberd_user.

* Remove the ack_params_state_absent option from consul.

* irc: change defaults of use_tls and validate_certs to true.

* rhsm_repository: remove states present and absent.

* Re-add 'using'.

* Fix typo.
This commit is contained in:
Felix Fontein 2024-09-28 08:11:21 +03:00 committed by GitHub
parent 84e0190eee
commit fe18b05f08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 29 additions and 368 deletions

View file

@ -41,12 +41,6 @@ options:
description:
- the password to assign to the username
required: false
logging:
description:
- enables or disables the local syslog facility for this module
required: false
default: false
type: bool
state:
type: str
description:
@ -75,8 +69,6 @@ EXAMPLES = '''
state: absent
'''
import syslog
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner, cmd_runner_fmt
@ -91,7 +83,6 @@ class EjabberdUser(object):
def __init__(self, module):
self.module = module
self.logging = module.params.get('logging')
self.state = module.params.get('state')
self.host = module.params.get('host')
self.user = module.params.get('username')
@ -125,10 +116,8 @@ class EjabberdUser(object):
return self.run_command('check_account', 'user host', (lambda rc, out, err: not bool(rc)))
def log(self, entry):
""" This method will log information to the local syslog facility """
if self.logging:
syslog.openlog('ansible-%s' % self.module._name)
syslog.syslog(syslog.LOG_NOTICE, entry)
""" This method does nothing """
pass
def run_command(self, cmd, options, process=None):
""" This method will run the any command specified and return the
@ -169,7 +158,6 @@ def main():
username=dict(required=True, type='str'),
password=dict(type='str', no_log=True),
state=dict(default='present', choices=['present', 'absent']),
logging=dict(default=False, type='bool', removed_in_version='10.0.0', removed_from_collection='community.general'),
),
required_if=[
('state', 'present', ['password']),