s*: style adjustments (#9517)

* s*: style adjustments

* fix quotes

* Apply suggestions from code review

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/9534/head
Alexei Znamensky 2025-01-04 10:52:09 +13:00 committed by GitHub
parent 695b1abc8d
commit 33b9ad09d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 51 additions and 40 deletions

View File

@ -108,8 +108,8 @@ options:
privacy: privacy:
description: description:
- Privacy policies define whether a container can be executed anonymously. - Privacy policies define whether a container can be executed anonymously.
- Choose V(public) to enable anonymous execution, or V(private) to protect your container with an authentication mechanism provided by the - Choose V(public) to enable anonymous execution, or V(private) to protect your container with an authentication mechanism
Scaleway API. provided by the Scaleway API.
type: str type: str
default: public default: public
choices: choices:

View File

@ -66,7 +66,7 @@ container:
description: Container used for testing scaleway_container ansible module description: Container used for testing scaleway_container ansible module
domain_name: cnansibletestgfogtjod-cn-ansible-test.functions.fnc.fr-par.scw.cloud domain_name: cnansibletestgfogtjod-cn-ansible-test.functions.fnc.fr-par.scw.cloud
environment_variables: environment_variables:
MY_VAR: my_value MY_VAR: my_value
error_message: null error_message: null
http_option: "" http_option: ""
id: c9070eb0-d7a4-48dd-9af3-4fb139890721 id: c9070eb0-d7a4-48dd-9af3-4fb139890721

View File

@ -97,7 +97,8 @@ options:
runtime: runtime:
description: description:
- Runtime of the function. - Runtime of the function.
- See U(https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-lifecycle/) for all available runtimes. - See U(https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-lifecycle/) for all available
runtimes.
type: str type: str
required: true required: true
@ -120,8 +121,8 @@ options:
privacy: privacy:
description: description:
- Privacy policies define whether a function can be executed anonymously. - Privacy policies define whether a function can be executed anonymously.
- Choose V(public) to enable anonymous execution, or V(private) to protect your function with an authentication mechanism provided by the - Choose V(public) to enable anonymous execution, or V(private) to protect your function with an authentication mechanism
Scaleway API. provided by the Scaleway API.
type: str type: str
default: public default: public
choices: choices:

View File

@ -61,12 +61,12 @@ options:
id: id:
type: str type: str
description: description:
- Id of the Scaleway IP (UUID). - ID of the Scaleway IP (UUID).
server: server:
type: str type: str
description: description:
- Id of the server you want to attach an IP to. - ID of the server you want to attach an IP to.
- To unattach an IP don't specify this option. - To unattach an IP do not specify this option.
reverse: reverse:
type: str type: str
description: description:

View File

@ -52,7 +52,7 @@ RETURN = r"""
scaleway_ip_info: scaleway_ip_info:
description: description:
- Response from Scaleway API. - Response from Scaleway API.
- 'For more details please refer to: U(https://developers.scaleway.com/en/products/instance/api/)' - 'For more details please refer to U(https://developers.scaleway.com/en/products/instance/api/).'
returned: success returned: success
type: list type: list
elements: dict elements: dict

View File

@ -113,7 +113,7 @@ EXAMPLES = r"""
region: fr-par region: fr-par
""" """
RETURNS = ''' RETURNS = """
{ {
"scaleway_lb": { "scaleway_lb": {
"backend_count": 0, "backend_count": 0,
@ -154,7 +154,7 @@ RETURNS = '''
] ]
} }
} }
''' """
import datetime import datetime
import time import time

View File

@ -52,9 +52,10 @@ options:
type: str type: str
substitute: substitute:
description: description:
- Path to use to substitute file context(s) for the specified O(target). The context labeling for the O(target) subtree is made equivalent - Path to use to substitute file context(s) for the specified O(target). The context labeling for the O(target) subtree
to this path. is made equivalent to this path.
- This is also referred to as SELinux file context equivalence and it implements the C(equal) functionality of the SELinux management tools. - This is also referred to as SELinux file context equivalence and it implements the C(equal) functionality of the SELinux
management tools.
version_added: 6.4.0 version_added: 6.4.0
type: str type: str
aliases: [equal] aliases: [equal]
@ -72,7 +73,8 @@ options:
state: state:
description: description:
- Whether the SELinux file context must be V(absent) or V(present). - Whether the SELinux file context must be V(absent) or V(present).
- Specifying V(absent) without either O(setype) or O(substitute) deletes both SELinux type or path substitution mappings that match O(target). - Specifying V(absent) without either O(setype) or O(substitute) deletes both SELinux type or path substitution mappings
that match O(target).
type: str type: str
choices: [absent, present] choices: [absent, present]
default: present default: present
@ -91,10 +93,11 @@ notes:
- The changes are persistent across reboots. - The changes are persistent across reboots.
- O(setype) and O(substitute) are mutually exclusive. - O(setype) and O(substitute) are mutually exclusive.
- If O(state=present) then one of O(setype) or O(substitute) is mandatory. - If O(state=present) then one of O(setype) or O(substitute) is mandatory.
- The M(community.general.sefcontext) module does not modify existing files to the new SELinux context(s), so it is advisable to first create - The M(community.general.sefcontext) module does not modify existing files to the new SELinux context(s), so it is advisable
the SELinux file contexts before creating files, or run C(restorecon) manually for the existing files that require the new SELinux file contexts. to first create the SELinux file contexts before creating files, or run C(restorecon) manually for the existing files
- Not applying SELinux fcontexts to existing files is a deliberate decision as it would be unclear what reported changes would entail to, and that require the new SELinux file contexts.
there is no guarantee that applying SELinux fcontext does not pick up other unrelated prior changes. - Not applying SELinux fcontexts to existing files is a deliberate decision as it would be unclear what reported changes
would entail to, and there is no guarantee that applying SELinux fcontext does not pick up other unrelated prior changes.
requirements: requirements:
- libselinux-python - libselinux-python
- policycoreutils-python - policycoreutils-python

View File

@ -15,9 +15,12 @@ short_description: Sends an email with the SendGrid API
description: description:
- Sends an email with a SendGrid account through their API, not through the SMTP service. - Sends an email with a SendGrid account through their API, not through the SMTP service.
notes: notes:
- This module is non-idempotent because it sends an email through the external API. It is idempotent only in the case that the module fails. - This module is non-idempotent because it sends an email through the external API. It is idempotent only in the case that
- Like the other notification modules, this one requires an external dependency to work. In this case, you will need an active SendGrid account. the module fails.
- In order to use O(api_key), O(cc), O(bcc), O(attachments), O(from_name), O(html_body), and O(headers) you must C(pip install sendgrid). - Like the other notification modules, this one requires an external dependency to work. In this case, you will need an
active SendGrid account.
- In order to use O(api_key), O(cc), O(bcc), O(attachments), O(from_name), O(html_body), and O(headers) you must C(pip install
sendgrid).
requirements: requirements:
- sendgrid Python library 1.6.22 or lower (Sendgrid API V2 supported) - sendgrid Python library 1.6.22 or lower (Sendgrid API V2 supported)
extends_documentation_fragment: extends_documentation_fragment:

View File

@ -15,8 +15,8 @@ short_description: Manage Sensu checks
description: description:
- Manage the checks that should be run on a machine by I(Sensu). - Manage the checks that should be run on a machine by I(Sensu).
- Most options do not have a default and will not be added to the check definition unless specified. - Most options do not have a default and will not be added to the check definition unless specified.
- All defaults except O(path), O(state), O(backup) and O(metric) are not managed by this module, - All defaults except O(path), O(state), O(backup) and O(metric) are not managed by this module, they are simply specified
they are simply specified for your convenience. for your convenience.
deprecated: deprecated:
removed_in: 13.0.0 removed_in: 13.0.0
why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20. why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20.
@ -50,8 +50,8 @@ options:
default: /etc/sensu/conf.d/checks.json default: /etc/sensu/conf.d/checks.json
backup: backup:
description: description:
- Create a backup file (if yes), including the timestamp information so - Create a backup file (if yes), including the timestamp information so you can get the original file back if you somehow
you can get the original file back if you somehow clobbered it incorrectly. clobbered it incorrectly.
type: bool type: bool
default: false default: false
command: command:
@ -128,8 +128,7 @@ options:
- Number of seconds handlers should wait before taking second action. - Number of seconds handlers should wait before taking second action.
aggregate: aggregate:
description: description:
- Classifies the check as an aggregate check, - Classifies the check as an aggregate check, making it available using the aggregate API.
making it available using the aggregate API.
- Default is V(false). - Default is V(false).
type: bool type: bool
low_flap_threshold: low_flap_threshold:

View File

@ -14,7 +14,7 @@ author: "David Moreau Simard (@dmsimard)"
short_description: Manages Sensu client configuration short_description: Manages Sensu client configuration
description: description:
- Manages Sensu client configuration. - Manages Sensu client configuration.
- 'For more information, refer to the Sensu documentation: U(https://sensuapp.org/docs/latest/reference/clients.html)' - 'For more information, refer to the L(Sensu documentation, https://sensuapp.org/docs/latest/reference/clients.html).'
deprecated: deprecated:
removed_in: 13.0.0 removed_in: 13.0.0
why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20. why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20.
@ -42,7 +42,8 @@ options:
type: str type: str
description: description:
- An address to help identify and reach the client. This is only informational, usually an IP address or hostname. - An address to help identify and reach the client. This is only informational, usually an IP address or hostname.
- If not specified it defaults to non-loopback IPv4 address as determined by Ruby Socket.ip_address_list (provided by Sensu). - If not specified it defaults to non-loopback IPv4 address as determined by Ruby C(Socket.ip_address_list) (provided by
Sensu).
subscriptions: subscriptions:
type: list type: list
elements: str elements: str
@ -52,8 +53,8 @@ options:
- The subscriptions array items must be strings. - The subscriptions array items must be strings.
safe_mode: safe_mode:
description: description:
- If safe mode is enabled for the client. Safe mode requires local check definitions in order to accept a check request and execute the - If safe mode is enabled for the client. Safe mode requires local check definitions in order to accept a check request
check. and execute the check.
type: bool type: bool
default: false default: false
redact: redact:
@ -73,7 +74,8 @@ options:
keepalive: keepalive:
type: dict type: dict
description: description:
- The keepalive definition scope, used to configure Sensu client keepalives behavior (for example keepalive thresholds and so). - The keepalive definition scope, used to configure Sensu client keepalives behavior (for example keepalive thresholds
and so).
registration: registration:
type: dict type: dict
description: description:
@ -102,7 +104,8 @@ options:
servicenow: servicenow:
type: dict type: dict
description: description:
- The servicenow definition scope, used to configure the Sensu Enterprise ServiceNow integration (Sensu Enterprise users only). - The servicenow definition scope, used to configure the Sensu Enterprise ServiceNow integration (Sensu Enterprise users
only).
""" """
EXAMPLES = r""" EXAMPLES = r"""

View File

@ -14,7 +14,7 @@ author: "David Moreau Simard (@dmsimard)"
short_description: Manages Sensu handler configuration short_description: Manages Sensu handler configuration
description: description:
- Manages Sensu handler configuration. - Manages Sensu handler configuration.
- 'For more information, refer to the Sensu documentation: U(https://sensuapp.org/docs/latest/reference/handlers.html)' - 'For more information, refer to the L(Sensu documentation, https://sensuapp.org/docs/latest/reference/handlers.html).'
deprecated: deprecated:
removed_in: 13.0.0 removed_in: 13.0.0
why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20. why: Sensu Core and Sensu Enterprise products have been End of Life since 2019/20.
@ -90,7 +90,8 @@ options:
type: dict type: dict
description: description:
- The socket definition scope, used to configure the TCP/UDP handler socket. - The socket definition scope, used to configure the TCP/UDP handler socket.
- 'NOTE: the O(socket) attribute is only required for TCP/UDP handlers (that is, handlers configured with O(type=tcp) or O(type=udp)).' - 'NOTE: the O(socket) attribute is only required for TCP/UDP handlers (that is, handlers configured with O(type=tcp)
or O(type=udp)).'
pipe: pipe:
type: dict type: dict
description: description:

View File

@ -46,7 +46,8 @@ options:
reason: reason:
type: str type: str
description: description:
- If specified, this free-form string is used to provide context or rationale for the reason this silence entry was created. - If specified, this free-form string is used to provide context or rationale for the reason this silence entry was
created.
state: state:
type: str type: str
description: description:

View File

@ -46,8 +46,8 @@ options:
default: /etc/sensu/conf.d/subscriptions.json default: /etc/sensu/conf.d/subscriptions.json
backup: backup:
description: description:
- Create a backup file (if yes), including the timestamp information so you - Create a backup file (if yes), including the timestamp information so you can get the original file back if you somehow
can get the original file back if you somehow clobbered it incorrectly. clobbered it incorrectly.
type: bool type: bool
required: false required: false
default: false default: false