Commit 1b26dc6d authored by Daniel Dehennin's avatar Daniel Dehennin

fix(settings): applying settings may need retries

And improve documentation.
parent a405c274
......@@ -54,3 +54,8 @@ discourse-setup-settings-global-import-cmd-run:
- cwd: {{ discourse.directory }}
- require:
- sls: {{ sls_service_running }}
- retry:
attempts: 5
until: True
interval: 5
splay: 2
......@@ -64,4 +64,9 @@ discourse-setup-settings-oauth2-import-cmd-run:
- cwd: {{ discourse.directory }}
- require:
- sls: {{ sls_service_running }}
- retry:
attempts: 5
until: True
interval: 5
splay: 2
{%- endif %}
......@@ -92,6 +92,33 @@ This state will rebuild the ``discourse`` application container if the
This state will initialize the ``discourse`` application with sane
defaults.
``discourse.setup.settings``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*Meta-state (This is a state that includes other states)*.
This state will load series of settings.
``discourse.setup.settings.global``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This state will configure some ``discourse`` `site settings`_ with
values from salt configuration.
It depends on ``discourse.service.running``.
``discourse.setup.settings.oauth2``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This state will configure the ``discourse`` `OAuth2 plugin settings`_ with
values from salt configuration.
Note that the values from salt configuration are named like the
`OAuth2 pluging settings`_ except that the ``oauth2_`` prefix is
removed. See `pillar.example`_.
It depends on ``discourse.service.running``.
``discourse.setup.users``
^^^^^^^^^^^^^^^^^^^^^^^^^
......
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