Skip to content
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

Add env var for CENSUS_REPORTING_ENABLED #1133

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

kindlich
Copy link
Contributor

Related Issue: #999

New Behavior

The configuration.py now additionally checks if the env var CENSUS_REPORTING_ENABLED is set and update the netbox settings accordingly.

Contrast to Current Behavior

Before, wanting to change this behaviour required mounting an additional configuration file into the container.

Discussion: Benefits and Drawbacks

This is a simple quality-of-deployment PR to make deployments easier that wish to opt out of the consensus data reporting.
This PR is backwards-compatible, as the configuration option is only set if the environment variable is present, which should not be the case for current deployments.

When looking over the changes and you have additional suggestions, please feel free to point them out, for example if you wanted this environment variable to be added to netbox.env

Changes to the Wiki

None

Proposed Release Note Entry

Allow configuration of CENSUS_REPORTING_ENABLED via env vars.

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@tobiasge tobiasge merged commit 8450ba2 into netbox-community:develop Jan 20, 2024
9 checks passed
@tobiasge tobiasge mentioned this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants