diff --git a/src/extra/manual/beta/_sources/cdist-reference.rst.txt b/src/extra/manual/beta/_sources/cdist-reference.rst.txt index 4fa4cf0b..945baffb 100644 --- a/src/extra/manual/beta/_sources/cdist-reference.rst.txt +++ b/src/extra/manual/beta/_sources/cdist-reference.rst.txt @@ -226,6 +226,8 @@ The following types are available: - __motd (`cdist-type__motd(7) `_) - __mount (`cdist-type__mount(7) `_) - __mysql_database (`cdist-type__mysql_database(7) `_) +- __mysql_privileges (`cdist-type__mysql_privileges(7) `_) +- __mysql_user (`cdist-type__mysql_user(7) `_) - __openldap_server (`cdist-type__openldap_server(7) `_) - __package (`cdist-type__package(7) `_) - __package_apk (`cdist-type__package_apk(7) `_) diff --git a/src/extra/manual/beta/_sources/cdist-types.rst.txt b/src/extra/manual/beta/_sources/cdist-types.rst.txt index 62aa9691..6e29c7e0 100644 --- a/src/extra/manual/beta/_sources/cdist-types.rst.txt +++ b/src/extra/manual/beta/_sources/cdist-types.rst.txt @@ -94,6 +94,8 @@ cdist types __motd __mount __mysql_database + __mysql_privileges + __mysql_user __openldap_server __package __package_apk diff --git a/src/extra/manual/beta/_sources/man1/cdist.rst.txt b/src/extra/manual/beta/_sources/man1/cdist.rst.txt index 79202f79..708b3c3a 100644 --- a/src/extra/manual/beta/_sources/man1/cdist.rst.txt +++ b/src/extra/manual/beta/_sources/man1/cdist.rst.txt @@ -11,7 +11,7 @@ SYNOPSIS :: - cdist [-h] [-V] {banner,config,install,inventory,preos,shell,trigger} ... + cdist [-h] [-V] {banner,config,install,inventory,preos,shell,info,trigger} ... cdist banner [-h] [-l LOGLEVEL] [-q] [-v] @@ -87,6 +87,8 @@ SYNOPSIS cdist shell [-h] [-l LOGLEVEL] [-q] [-v] [-s SHELL] + cdist info [-h] [-a] [-c CONF_DIR] [-e] [-F] [-f] [-g CONFIG_FILE] [-t] [pattern] + cdist trigger [-h] [-l LOGLEVEL] [-q] [-v] [-b] [-g CONFIG_FILE] [-4] [-6] [-C CACHE_PATH_PATTERN] [-c CONF_DIR] [-i MANIFEST] [-j [JOBS]] [-n] [-o OUT_PATH] [-P] @@ -622,6 +624,38 @@ usage. Its primary use is for debugging type parameters. be POSIX compatible shell. +INFO +---- +Display information for cdist (global explorers, types). + +**pattern** + Glob pattern. If it contains special characters('?', '*', '[') then it is + used as specified, otherwise it is translated to `*pattern*`. + +**-h, --help** + Show help message and exit. + +**-a, --all** + Display all info. This is the default. + +**-c CONF_DIR, --conf-dir CONF_DIR** + Add configuration directory (can be repeated). + +**-e, --global-explorers** + Display info for global explorers. + +**-F, --fixed-string** + Interpret pattern as a fixed string. + +**-f, --full** + Display full details. + +**-g CONFIG_FILE, --config-file CONFIG_FILE** + Use specified custom configuration file. + +**-t, --types** + Display info for types. + TRIGGER ------- Start trigger (simple http server) that waits for connections. When host diff --git a/src/extra/manual/beta/_sources/man7/cdist-type__mysql_database.rst.txt b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_database.rst.txt index 1e245a08..b3b56b5f 100644 --- a/src/extra/manual/beta/_sources/man7/cdist-type__mysql_database.rst.txt +++ b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_database.rst.txt @@ -8,24 +8,24 @@ cdist-type__mysql_database - Manage a MySQL database DESCRIPTION ----------- -This cdist type allows you to install a MySQL database. +Create MySQL database and optionally user with all privileges. -REQUIRED PARAMETERS -------------------- -None. OPTIONAL PARAMETERS ------------------- name - The name of the database to install - defaults to the object id + Name of database. Defaults to object id. user - A user that should have access to the database + Create user and give all privileges to database. password - The password for the user who manages the database + Password for user. + +state + Defaults to present. + If absent and user is also set, both will be removed (with privileges). EXAMPLES @@ -33,17 +33,23 @@ EXAMPLES .. code-block:: sh - __mysql_database "cdist" --name "cdist" --user "myuser" --password "mypwd" + # just create database + __mysql_database foo + + # create database with respective user with all privileges to database + __mysql_database bar \ + --user name \ + --password secret AUTHORS ------- -Benedikt Koeppel +Ander Punnar COPYING ------- -Copyright \(C) 2012 Benedikt Koeppel. You can redistribute it -and/or modify it under the terms of the GNU General Public License as -published by the Free Software Foundation, either version 3 of the -License, or (at your option) any later version. +Copyright \(C) 2020 Ander Punnar. You can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) any +later version. diff --git a/src/extra/manual/beta/_sources/man7/cdist-type__mysql_privileges.rst.txt b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_privileges.rst.txt new file mode 100644 index 00000000..8208d7d4 --- /dev/null +++ b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_privileges.rst.txt @@ -0,0 +1,57 @@ +cdist-type__mysql_privileges(7) +=============================== + +NAME +---- +cdist-type__mysql_privileges - Manage MySQL privileges + + +DESCRIPTION +----------- + +Grant and revoke privileges of MySQL user. + + +REQUIRED PARAMETERS +------------------- +database + Name of database. + +User + Name of user. + + +OPTIONAL PARAMETERS +------------------- +privileges + Defaults to "all". + +table + Defaults to "*". + +host + Defaults to localhost. + +state + "present" grants and "absent" revokes. Defaults to present. + + +EXAMPLES +-------- + +.. code-block:: sh + + __mysql_privileges user-to-db --database db --user user + + +AUTHORS +------- +Ander Punnar + + +COPYING +------- +Copyright \(C) 2020 Ander Punnar. You can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) any +later version. diff --git a/src/extra/manual/beta/_sources/man7/cdist-type__mysql_user.rst.txt b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_user.rst.txt new file mode 100644 index 00000000..c2b222d5 --- /dev/null +++ b/src/extra/manual/beta/_sources/man7/cdist-type__mysql_user.rst.txt @@ -0,0 +1,48 @@ +cdist-type__mysql_user(7) +========================= + +NAME +---- +cdist-type__mysql_user - Manage a MySQL user + + +DESCRIPTION +----------- + +Create MySQL user or change password for the user. + + +OPTIONAL PARAMETERS +------------------- +name + Name of user. Defaults to object id. + +host + Host of user. Defaults to localhost. + +password + Password of user. + +state + Defaults to present. + + +EXAMPLES +-------- + +.. code-block:: sh + + __mysql_user user --password secret + + +AUTHORS +------- +Ander Punnar + + +COPYING +------- +Copyright \(C) 2020 Ander Punnar. You can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) any +later version. diff --git a/src/extra/manual/beta/cdist-best-practice.html b/src/extra/manual/beta/cdist-best-practice.html index 917fd4b3..d06522db 100644 --- a/src/extra/manual/beta/cdist-best-practice.html +++ b/src/extra/manual/beta/cdist-best-practice.html @@ -8,7 +8,7 @@ - 25. Best practice — cdist 6.3.0 documentation + 25. Best practice — cdist 6.4.0 documentation @@ -23,7 +23,7 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

16.91. cdist-type__mysql_privileges(7)

+
+

16.91.1. NAME

+

cdist-type__mysql_privileges - Manage MySQL privileges

+
+
+

16.91.2. DESCRIPTION

+

Grant and revoke privileges of MySQL user.

+
+
+

16.91.3. REQUIRED PARAMETERS

+
+
database
+
Name of database.
+
User
+
Name of user.
+
+
+
+

16.91.4. OPTIONAL PARAMETERS

+
+
privileges
+
Defaults to "all".
+
table
+
Defaults to "*".
+
host
+
Defaults to localhost.
+
state
+
"present" grants and "absent" revokes. Defaults to present.
+
+
+
+

16.91.5. EXAMPLES

+
__mysql_privileges user-to-db --database db --user user
+
+
+
+
+

16.91.6. AUTHORS

+

Ander Punnar <ander-at-kvlt-dot-ee>

+
+
+

16.91.7. COPYING

+

Copyright (C) 2020 Ander Punnar. You can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) any +later version.

+
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/src/extra/manual/beta/man7/cdist-type__mysql_user.html b/src/extra/manual/beta/man7/cdist-type__mysql_user.html new file mode 100644 index 00000000..131fed9e --- /dev/null +++ b/src/extra/manual/beta/man7/cdist-type__mysql_user.html @@ -0,0 +1,455 @@ + + + + + + + + + + + 16.92. cdist-type__mysql_user(7) — cdist 6.4.0 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

16.92. cdist-type__mysql_user(7)

+
+

16.92.1. NAME

+

cdist-type__mysql_user - Manage a MySQL user

+
+
+

16.92.2. DESCRIPTION

+

Create MySQL user or change password for the user.

+
+
+

16.92.3. OPTIONAL PARAMETERS

+
+
name
+
Name of user. Defaults to object id.
+
host
+
Host of user. Defaults to localhost.
+
password
+
Password of user.
+
state
+
Defaults to present.
+
+
+
+

16.92.4. EXAMPLES

+
__mysql_user user --password secret
+
+
+
+
+

16.92.5. AUTHORS

+

Ander Punnar <ander-at-kvlt-dot-ee>

+
+
+

16.92.6. COPYING

+

Copyright (C) 2020 Ander Punnar. You can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) any +later version.

+
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/src/extra/manual/beta/man7/cdist-type__openldap_server.html b/src/extra/manual/beta/man7/cdist-type__openldap_server.html index 9a537c27..db3e5096 100644 --- a/src/extra/manual/beta/man7/cdist-type__openldap_server.html +++ b/src/extra/manual/beta/man7/cdist-type__openldap_server.html @@ -8,7 +8,7 @@ - 16.91. cdist-type__openldap_server(7) — cdist 6.3.0 documentation + 16.93. cdist-type__openldap_server(7) — cdist 6.4.0 documentation @@ -23,7 +23,7 @@