-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[debops.NetBox] Add support for standby NetBox on read only PSQL database #13
[debops.NetBox] Add support for standby NetBox on read only PSQL database #13
Conversation
Instead of using the group name I would prefer to do this with a variable And the current implementation uses a group name which contains a |
Updated in: a94c915 |
c2c566f
to
a94c915
Compare
@@ -833,7 +849,7 @@ netbox__config_metrics_enabled: False | |||
# can be useful for enabling authentication on a standby instance with | |||
# read-only database access.) Note that the user as which NetBox runs must have | |||
# read and write permissions to this path. | |||
netbox__config_session_file_path: False | |||
netbox__config_session_file_path: '{{ "" if netbox__primary else netbox__data + "/sessions" }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use the bool
filter here to support all the boolean values commonly accepted by Ansible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -660,7 +676,7 @@ netbox__config_base_path: '' | |||
# | |||
# Enable or disable maintenance mode banner. | |||
# This overwrites potentially existing `dynamic configuration settings <https://netbox.readthedocs.io/en/stable/configuration/dynamic-settings/>`__. | |||
netbox__config_maintenance_mode: False | |||
netbox__config_maintenance_mode: '{{ not netbox__primary }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use the bool
filter here to support all the boolean values commonly accepted by Ansible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ce5148d
into
cloudscale-ch:cloudscale/stable-3.0
Add support for standby NetBox on read only PSQL database
Allows to only run specific tasks on the master node, and skip it on standby nodes which do only have read access to the PSQL cluster.