From ce187bec3881f84d08d786a924d7b020f1c0cdb5 Mon Sep 17 00:00:00 2001 From: GuanqunYang193 <144971563+GuanqunYang193@users.noreply.github.com> Date: Mon, 23 Oct 2023 02:29:09 -0400 Subject: [PATCH] Remove user creation related docs (#2920) * Remove user creation related docs * remove template --- docs/ENVIRONMENT.rst | 9 --------- docs/yaml_configuration.rst | 16 ---------------- postgres0.yml | 8 -------- postgres1.yml | 8 -------- postgres2.yml | 8 -------- 5 files changed, 49 deletions(-) diff --git a/docs/ENVIRONMENT.rst b/docs/ENVIRONMENT.rst index f859649d..bd928af9 100644 --- a/docs/ENVIRONMENT.rst +++ b/docs/ENVIRONMENT.rst @@ -24,15 +24,6 @@ Log - **PATRONI\_LOG\_FILE\_SIZE**: Size of patroni.log file (in bytes) that triggers a log rolling. - **PATRONI\_LOG\_LOGGERS**: Redefine logging level per python module. Example ``PATRONI_LOG_LOGGERS="{patroni.postmaster: WARNING, urllib3: DEBUG}"`` -Bootstrap configuration ------------------------ -It is possible to create new database users right after the successful initialization of a new cluster. This process is defined by the following variables: - -- **PATRONI\_\_PASSWORD=''** -- **PATRONI\_\_OPTIONS='list,of,options'** - -Example: defining ``PATRONI_admin_PASSWORD=strongpasswd`` and ``PATRONI_admin_OPTIONS='createrole,createdb'`` will cause creation of the user **admin** with the password **strongpasswd** that is allowed to create other users and databases. - Citus ----- Enables integration Patroni with `Citus `__. If configured, Patroni will take care of registering Citus worker nodes on the coordinator. You can find more information about Citus support :ref:`here `. diff --git a/docs/yaml_configuration.rst b/docs/yaml_configuration.rst index 4c2ed7c0..75992217 100644 --- a/docs/yaml_configuration.rst +++ b/docs/yaml_configuration.rst @@ -49,24 +49,8 @@ Bootstrap configuration - **- data-checksums**: Must be enabled when pg_rewind is needed on 9.3. - **- encoding: UTF8**: default encoding for new databases. - **- locale: UTF8**: default locale for new databases. - - **users**: Some additional users which need to be created after initializing new cluster, see :ref:`Bootstrap users configuration ` below. - **post\_bootstrap** or **post\_init**: An additional script that will be executed after initializing the cluster. The script receives a connection string URL (with the cluster superuser as a user name). The PGPASSFILE variable is set to the location of pgpass file. -.. _bootstrap_users_configuration: - -Bootstrap users configuration -============================= - -Users which need to be created after initializing the cluster: - -- **admin**: the name of user - - - **password**: (optional) password for the user - - **options**: list of options for CREATE USER statement - - - **- createrole** - - **- createdb** - .. _citus_settings: Citus diff --git a/postgres0.yml b/postgres0.yml index 0605c322..ee69b2e8 100644 --- a/postgres0.yml +++ b/postgres0.yml @@ -93,14 +93,6 @@ bootstrap: # Additional script to be launched after initial cluster creation (will be passed the connection URL as parameter) # post_init: /usr/local/bin/setup_cluster.sh - # Some additional users which needs to be created after initializing new cluster - users: - admin: - password: admin% - options: - - createrole - - createdb - postgresql: listen: 127.0.0.1:5432 connect_address: 127.0.0.1:5432 diff --git a/postgres1.yml b/postgres1.yml index 89dcca1a..860e364e 100644 --- a/postgres1.yml +++ b/postgres1.yml @@ -87,14 +87,6 @@ bootstrap: # Additional script to be launched after initial cluster creation (will be passed the connection URL as parameter) # post_init: /usr/local/bin/setup_cluster.sh - # Some additional users which needs to be created after initializing new cluster - users: - admin: - password: admin% - options: - - createrole - - createdb - postgresql: listen: 127.0.0.1:5433 connect_address: 127.0.0.1:5433 diff --git a/postgres2.yml b/postgres2.yml index 581fa719..3a06d912 100644 --- a/postgres2.yml +++ b/postgres2.yml @@ -84,14 +84,6 @@ bootstrap: - encoding: UTF8 - data-checksums - # Some additional users which needs to be created after initializing new cluster - users: - admin: - password: admin% - options: - - createrole - - createdb - postgresql: listen: 127.0.0.1:5434 connect_address: 127.0.0.1:5434