mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
uvw*: style adjustments (#9515)
* uvw*: style adjustments * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * adjustments from review * Update plugins/modules/utm_proxy_frontend.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/utm_proxy_frontend_info.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
7c54c70301
commit
d2078be247
22 changed files with 173 additions and 158 deletions
|
@ -14,8 +14,9 @@ module: vertica_schema
|
|||
short_description: Adds or removes Vertica database schema and roles
|
||||
description:
|
||||
- Adds or removes Vertica database schema and, optionally, roles with schema access privileges.
|
||||
- A schema will not be removed until all the objects have been dropped.
|
||||
- In such a situation, if the module tries to remove the schema it will fail and only remove roles created for the schema if they have no dependencies.
|
||||
- A schema is not removed until all the objects have been dropped.
|
||||
- In such a situation, if the module tries to remove the schema it fails and only remove roles created for the schema if
|
||||
they have no dependencies.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
|
@ -75,11 +76,11 @@ options:
|
|||
type: str
|
||||
notes:
|
||||
- The default authentication assumes that you are either logging in as or sudo'ing to the C(dbadmin) account on the host.
|
||||
- This module uses C(pyodbc), a Python ODBC database adapter. You must ensure that C(unixODBC) and C(pyodbc) is installed on the host and properly
|
||||
configured.
|
||||
- Configuring C(unixODBC) for Vertica requires C(Driver = /opt/vertica/lib64/libverticaodbc.so) to be added to the C(Vertica) section of either
|
||||
C(/etc/odbcinst.ini) or C($HOME/.odbcinst.ini) and both C(ErrorMessagesPath = /opt/vertica/lib64) and C(DriverManagerEncoding = UTF-16) to
|
||||
be added to the C(Driver) section of either C(/etc/vertica.ini) or C($HOME/.vertica.ini).
|
||||
- This module uses C(pyodbc), a Python ODBC database adapter. You must ensure that C(unixODBC) and C(pyodbc) is installed
|
||||
on the host and properly configured.
|
||||
- Configuring C(unixODBC) for Vertica requires C(Driver = /opt/vertica/lib64/libverticaodbc.so) to be added to the C(Vertica)
|
||||
section of either C(/etc/odbcinst.ini) or C($HOME/.odbcinst.ini) and both C(ErrorMessagesPath = /opt/vertica/lib64) and
|
||||
C(DriverManagerEncoding = UTF-16) to be added to the C(Driver) section of either C(/etc/vertica.ini) or C($HOME/.vertica.ini).
|
||||
requirements: ['unixODBC', 'pyodbc']
|
||||
author: "Dariusz Owczarek (@dareko)"
|
||||
"""
|
||||
|
@ -92,7 +93,8 @@ EXAMPLES = r"""
|
|||
community.general.vertica_schema: name=schema_name owner=dbowner db=db_name state=present
|
||||
|
||||
- name: Creating a new schema with roles
|
||||
community.general.vertica_schema: name=schema_name create_roles=schema_name_all usage_roles=schema_name_ro,schema_name_rw db=db_name state=present
|
||||
community.general.vertica_schema: name=schema_name create_roles=schema_name_all usage_roles=schema_name_ro,schema_name_rw
|
||||
db=db_name state=present
|
||||
"""
|
||||
import traceback
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue