Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions source/_includes/_installation/_repo/pg-access.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

.. tab-set::

.. tab-item:: Ubuntu 22.04
:sync: ubu22

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: Ubuntu 24.04
:sync: ubu24

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: RHEL8
:sync: rhel8

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. tab-item:: RHEL9
:sync: rhel9

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. hint:: You may replace the ``0.0.0.0/0`` network with the one
within the cluster is installed (e.g., **172.16.0.0/24**) to prevent
unwanted accesses.
50 changes: 1 addition & 49 deletions source/_includes/_installation/pg-ce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,52 +36,4 @@
Finally, allow the other nodes to access the databases that will be
stored on this node by running these commands.

.. tab-set::

.. tab-item:: Ubuntu 22.04
:sync: ubu22

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: Ubuntu 24.04
:sync: ubu24

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: RHEL 8
:sync: rhel8

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. tab-item:: RHEL 9
:sync: rhel9

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. hint:: You may replace the ``0.0.0.0/0`` network with the one
within the cluster is installed (e.g., **172.16.0.0/24**) to prevent
unwanted accesses.
.. include:: /_includes/_installation/_repo/pg-access.rst
50 changes: 1 addition & 49 deletions source/_includes/_installation/pg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,52 +16,4 @@
Finally, allow the other nodes to access the databases that will be
stored on this node by running these commands.

.. tab-set::

.. tab-item:: Ubuntu 22.04
:sync: ubu22

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: Ubuntu 24.04
:sync: ubu24

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/16/main/pg_hba.conf
# systemctl restart postgresql

.. tab-item:: RHEL8
:sync: rhel8

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. tab-item:: RHEL9
:sync: rhel9

.. code:: console

# su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
# su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
# echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/16/data/pg_hba.conf
# systemctl restart postgresql-16

.. hint:: You may replace the ``0.0.0.0/0`` network with the one
within the cluster is installed (e.g., **172.16.0.0/24**) to prevent
unwanted accesses.
.. include:: /_includes/_installation/_repo/pg-access.rst
8 changes: 7 additions & 1 deletion source/carbonio/install/scenarios/essential/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ Core Node

.. _es1-step4:

.. dropdown:: Step 4: Configure PostgreSQL
.. dropdown:: Step 4: Initialise and configure PostgreSQL

.. rubric:: Initialisation

.. include:: /_includes/_installation/step-conf-db-single-cb.rst

.. rubric:: Configuration

.. include:: /_includes/_installation/_repo/pg-access.rst

.. _es1-step5:

.. dropdown:: Step 5: Bootstrap |product|
Expand Down
8 changes: 7 additions & 1 deletion source/carbonio/install/scenarios/fullsmall/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,16 @@ Core Node

.. _fsm1-step4:

.. dropdown:: Step 4: Configure PostgreSQL
.. dropdown:: Step 4: Initialise and configure PostgreSQL

.. rubric:: Initialisation

.. include:: /_includes/_installation/step-conf-db-single-cb.rst

.. rubric:: Configuration

.. include:: /_includes/_installation/_repo/pg-access.rst

.. _fsm1-step5:

.. dropdown:: Step 5: Bootstrap |product|
Expand Down
8 changes: 7 additions & 1 deletion source/carbonio/install/scenarios/fullstandard/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,16 @@ Core Node

.. _st1-step4:

.. dropdown:: Step 4: Configure PostgreSQL
.. dropdown:: Step 4: Initialise and configure PostgreSQL

.. rubric:: Initialisation

.. include:: /_includes/_installation/step-conf-db-single-cb.rst

.. rubric:: Configuration

.. include:: /_includes/_installation/_repo/pg-access.rst

.. _st1-step5:

.. dropdown:: Step 5: Bootstrap |product|
Expand Down
8 changes: 7 additions & 1 deletion source/carbonio/install/scenarios/redundant/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,16 @@ This Node features the *Mesh & Directory* and *Database* Components.

.. _fr1-step4:

.. dropdown:: Step 4: Configure PostgreSQL
.. dropdown:: Step 4: Initialise and configure PostgreSQL

.. rubric:: Initialisation

.. include:: /_includes/_installation/step-conf-db-single-cb.rst

.. rubric:: Configuration

.. include:: /_includes/_installation/_repo/pg-access.rst

.. _fr1-step5:

.. dropdown:: Step 5: Bootstrap |product|
Expand Down
8 changes: 7 additions & 1 deletion source/carbonio/install/scenarios/single/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,16 @@ repositories.

.. _n1-s4:

.. dropdown:: Step 4: Configure PostgreSQL
.. dropdown:: Step 4: Initialise and configure PostgreSQL

.. rubric:: Initialisation

.. include:: /_includes/_installation/step-conf-db-single-cb.rst

.. rubric:: Configuration

.. include:: /_includes/_installation/_repo/pg-access.rst

.. _n1-s5:

.. dropdown:: Step 5: Bootstrap |product|
Expand Down