Commit cec3800c authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

docs: Use the new AstakosClient

parent 0b116499
...@@ -1042,7 +1042,7 @@ this options: ...@@ -1042,7 +1042,7 @@ this options:
.. code-block:: console .. code-block:: console
ASTAKOS_BASE_URL = 'https://node1.example.com/astakos' ASTAKOS_AUTH_URL = 'https://node1.example.com/astakos/identity/v2.0'
PITHOS_BASE_URL = 'https://node2.example.com/pithos' PITHOS_BASE_URL = 'https://node2.example.com/pithos'
PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@node1.example.com:5432/snf_pithos' PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@node1.example.com:5432/snf_pithos'
...@@ -1062,7 +1062,7 @@ the Pithos backend data. Above we tell Pithos to store its data under ...@@ -1062,7 +1062,7 @@ the Pithos backend data. Above we tell Pithos to store its data under
``/srv/pithos/data``, which is visible by both nodes. We have already setup this ``/srv/pithos/data``, which is visible by both nodes. We have already setup this
directory at node1's "Pithos data directory setup" section. directory at node1's "Pithos data directory setup" section.
The ``ASTAKOS_BASE_URL`` option informs the Pithos app where Astakos is. The ``ASTAKOS_AUTH_URL`` option informs the Pithos app where Astakos is.
The Astakos service is used for user management (authentication, quotas, etc.) The Astakos service is used for user management (authentication, quotas, etc.)
The ``PITHOS_BASE_URL`` setting must point to the top-level Pithos URL. The ``PITHOS_BASE_URL`` setting must point to the top-level Pithos URL.
...@@ -1853,14 +1853,14 @@ Edit ``/etc/synnefo/20-snf-cyclades-app-api.conf``: ...@@ -1853,14 +1853,14 @@ Edit ``/etc/synnefo/20-snf-cyclades-app-api.conf``:
.. code-block:: console .. code-block:: console
CYCLADES_BASE_URL = 'https://node1.example.com/cyclades' CYCLADES_BASE_URL = 'https://node1.example.com/cyclades'
ASTAKOS_BASE_URL = 'https://node1.example.com/astakos' ASTAKOS_AUTH_URL = 'https://node1.example.com/astakos/identity/v2.0'
CYCLADES_SERVICE_TOKEN = 'cyclades_service_token22w' CYCLADES_SERVICE_TOKEN = 'cyclades_service_token22w'
The ``ASTAKOS_BASE_URL`` denotes the Astakos endpoint for Cyclades, The ``ASTAKOS_AUTH_URL`` denotes the Astakos endpoint for Cyclades,
which is used for all user management, including authentication. which is used for all user management, including authentication.
Since our Astakos, Cyclades, and Pithos installations belong together, Since our Astakos, Cyclades, and Pithos installations belong together,
they should all have identical ``ASTAKOS_BASE_URL`` setting they should all have identical ``ASTAKOS_AUTH_URL`` setting
(see also, :ref:`previously <conf-pithos>`). (see also, :ref:`previously <conf-pithos>`).
The ``CYCLADES_BASE_URL`` setting must point to the top-level Cyclades URL. The ``CYCLADES_BASE_URL`` setting must point to the top-level Cyclades URL.
......
...@@ -48,7 +48,7 @@ In `/etc/synnefo/cyclades.conf` add: ...@@ -48,7 +48,7 @@ In `/etc/synnefo/cyclades.conf` add:
NET_BAR_GRAPH_URL = 'https://cyclades.example.com/stats/%s/net-bar.png' NET_BAR_GRAPH_URL = 'https://cyclades.example.com/stats/%s/net-bar.png'
NET_TIMESERIES_GRAPH_URL = 'https://cyclades.example.com/stats/%s/net-ts.png' NET_TIMESERIES_GRAPH_URL = 'https://cyclades.example.com/stats/%s/net-ts.png'
ASTAKOS_BASE_URL = 'https://accounts.example.synnefo.org/' ASTAKOS_AUTH_URL = 'https://accounts.example.synnefo.org/identity/v2.0'
SECRET_ENCRYPTION_KEY= "oEs0pt7Di1mkxA0P6FiK" SECRET_ENCRYPTION_KEY= "oEs0pt7Di1mkxA0P6FiK"
......
...@@ -56,7 +56,7 @@ In `/etc/synnefo/pithos.conf` add: ...@@ -56,7 +56,7 @@ In `/etc/synnefo/pithos.conf` add:
.. code-block:: console .. code-block:: console
ASTAKOS_BASE_URL = 'https://accounts.example.com/' ASTAKOS_AUTH_URL = 'https://accounts.example.com/identity/v2.0/'
PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@db.example.com:5432/snf_pithos' PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@db.example.com:5432/snf_pithos'
PITHOS_BACKEND_BLOCK_PATH = '/srv/pithos/data' PITHOS_BACKEND_BLOCK_PATH = '/srv/pithos/data'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment