Skip to content

feat: a job that configures the nb constance config to set driver backend settings#2034

Merged
khackworth merged 2 commits into
mainfrom
constance-config-settings
May 13, 2026
Merged

feat: a job that configures the nb constance config to set driver backend settings#2034
khackworth merged 2 commits into
mainfrom
constance-config-settings

Conversation

@khackworth
Copy link
Copy Markdown
Contributor

Tested locally against dev:

understack % kubectl logs -n nautobot job/nautobot-constance-config -f

Waiting for Nautobot to be ready...
DatabaseBackend          ... working
DefaultFileStorageHealthCheck ... working
MigrationsBackend        ... working
RedisBackend             ... working
Configuring Golden Config Constance settings...
19:53:25.549 DEBUG   git.cmd              cmd.py                                 execute() :
  Popen(['git', 'version'], cwd=/opt/nautobot, stdin=None, shell=False, universal_newlines=False)
19:53:25.597 DEBUG   git.cmd              cmd.py                                 execute() :
  Popen(['git', 'version'], cwd=/opt/nautobot, stdin=None, shell=False, universal_newlines=False)
197 objects imported automatically (use -v 2 for details).

============================================================
Golden Config Constance framework settings configured
============================================================
DEFAULT_FRAMEWORK: {'cisco_nxos': 'netmiko', 'all': 'napalm'}
GET_CONFIG_FRAMEWORK: {'cisco_nxos': 'netmiko', 'all': 'napalm'}
============================================================
Configuration complete

Showing test results on the NB shell

kubectl exec -it -n nautobot deployment/nautobot-default -- nautobot-server shell

Pre Deploy:
>>> from constance import config
>>> print(config.nautobot_golden_config__DEFAULT_FRAMEWORK)
{'all': 'netmiko'}
>>> print(config.nautobot_golden_config__GET_CONFIG_FRAMEWORK)
{}

Post Deploy:

>>> from constance import config
>>> print(config.nautobot_golden_config__GET_CONFIG_FRAMEWORK)
{'cisco_nxos': 'netmiko', 'all': 'napalm'}
>>> print(config.nautobot_golden_config__DEFAULT_FRAMEWORK)
{'cisco_nxos': 'netmiko', 'all': 'napalm'}

@khackworth khackworth changed the title Creating a job that configures the nautobot constance config to set driver backend settings feat: a job that configures the nb constance config to set driver backend settings May 12, 2026
Comment thread components/nautobot/job-nautobot-constance-config.yaml Outdated
@khackworth khackworth added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit 6e271f6 May 13, 2026
17 checks passed
@khackworth khackworth deleted the constance-config-settings branch May 13, 2026 14:36
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