mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Enabling validation-modules for web_infrastructure modules (#1200)
* fixed validation-modules for apache2_mod_proxy.py * fixed validation-modules for apache2_module.py * fixed validation-modules for deploy_helper.py The ignore lines were put back in place because add_file_common_args=True is used and the module inherits a number of options that do not show up in the documentation (nor should they). * fixed validation-modules for ejabberd_user.py * fixed validation-modules for gunicorn.py * fixed validation-modules for htpasswd.py * fixed validation-modules for jenkins_job.py * fixed validation-modules for jenkins_job_info.py * fixed validation-modules for jenkins_plugin.py * fixed validation-modules for jenkins_script.py * fixed validation-modules for jira.py * fixed validation-modules for nginx_status_facts.py * fixed validation-modules for rundeck_acl_policy.py * fixed validation-modules for rundeck_project.py * fixed validation-modules for supervisorctl.py * fixed validation-modules for taiga_issue.py * fixed pylint mistake in plugins/modules/web_infrastructure/jenkins_job_info.py * removed ignore lines for almost-all web_infrastructure modules * rolled back ignore lines for nested sophos_utm modules that were not adjusted * Removed doc-missing-type from ignore-2.11.txt for deploy_helper and jenkins_plugin * When adding lines back to ignore files, we added more than it was before. Removing. * Rolled back deprecation line in ignore-2.9.txt for nginx_status_facts * Rolled back yet another line in ignore-2.9.txt for nginx_status_facts * Fixed argument_spec and docs for crypt_scheme parameter in htpasswd, per PR * Added extends_documentation_fragment:files to deploy_helper and jenkins_plugin * Removed long-deprecated option params from jenkins_plugin, removed validate-modules lines from ignore files for that module * Update plugins/modules/web_infrastructure/htpasswd.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
20ca01e486
commit
85371e7b6d
19 changed files with 180 additions and 166 deletions
|
@ -18,49 +18,62 @@ description:
|
|||
- This module implements the creation or deletion of issues (not the update).
|
||||
options:
|
||||
taiga_host:
|
||||
type: str
|
||||
description:
|
||||
- The hostname of the Taiga instance.
|
||||
default: https://api.taiga.io
|
||||
project:
|
||||
type: str
|
||||
description:
|
||||
- Name of the project containing the issue. Must exist previously.
|
||||
required: True
|
||||
subject:
|
||||
type: str
|
||||
description:
|
||||
- The issue subject.
|
||||
required: True
|
||||
issue_type:
|
||||
type: str
|
||||
description:
|
||||
- The issue type. Must exist previously.
|
||||
required: True
|
||||
priority:
|
||||
type: str
|
||||
description:
|
||||
- The issue priority. Must exist previously.
|
||||
default: Normal
|
||||
status:
|
||||
type: str
|
||||
description:
|
||||
- The issue status. Must exist previously.
|
||||
default: New
|
||||
severity:
|
||||
type: str
|
||||
description:
|
||||
- The issue severity. Must exist previously.
|
||||
default: Normal
|
||||
description:
|
||||
type: str
|
||||
description:
|
||||
- The issue description.
|
||||
default: ""
|
||||
attachment:
|
||||
type: path
|
||||
description:
|
||||
- Path to a file to be attached to the issue.
|
||||
attachment_description:
|
||||
type: str
|
||||
description:
|
||||
- A string describing the file to be attached to the issue.
|
||||
default: ""
|
||||
tags:
|
||||
type: list
|
||||
elements: str
|
||||
description:
|
||||
- A lists of tags to be assigned to the issue.
|
||||
default: []
|
||||
state:
|
||||
type: str
|
||||
description:
|
||||
- Whether the issue should be present or not.
|
||||
choices: ["present", "absent"]
|
||||
|
@ -233,18 +246,18 @@ def manage_issue(module, taiga_host, project_name, issue_subject, issue_priority
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
taiga_host=dict(required=False, default="https://api.taiga.io"),
|
||||
project=dict(required=True),
|
||||
subject=dict(required=True),
|
||||
issue_type=dict(required=True),
|
||||
priority=dict(required=False, default="Normal"),
|
||||
status=dict(required=False, default="New"),
|
||||
severity=dict(required=False, default="Normal"),
|
||||
description=dict(required=False, default=""),
|
||||
attachment=dict(required=False, default=None),
|
||||
attachment_description=dict(required=False, default=""),
|
||||
tags=dict(required=False, default=[], type='list'),
|
||||
state=dict(required=False, choices=['present', 'absent'],
|
||||
taiga_host=dict(type='str', required=False, default="https://api.taiga.io"),
|
||||
project=dict(type='str', required=True),
|
||||
subject=dict(type='str', required=True),
|
||||
issue_type=dict(type='str', required=True),
|
||||
priority=dict(type='str', required=False, default="Normal"),
|
||||
status=dict(type='str', required=False, default="New"),
|
||||
severity=dict(type='str', required=False, default="Normal"),
|
||||
description=dict(type='str', required=False, default=""),
|
||||
attachment=dict(type='path', required=False, default=None),
|
||||
attachment_description=dict(type='str', required=False, default=""),
|
||||
tags=dict(required=False, default=[], type='list', elements='str'),
|
||||
state=dict(type='str', required=False, choices=['present', 'absent'],
|
||||
default='present'),
|
||||
),
|
||||
supports_check_mode=True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue