Skip to content

Commit 3797541

Browse files
allow alternative nautobot config to be supplied
Allows for a different nautobot config file to be stored in the deploy repo and supplied to Nautobot.
1 parent 7423e9a commit 3797541

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

charts/argocd-understack/templates/application-nautobot-worker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
helm:
2020
fileParameters:
2121
- name: nautobot.config
22-
path: $understack/components/nautobot/nautobot_config.py
22+
path: {{ $.Values.site.nautobot_worker.nautobot_config }}
2323
ignoreMissingValueFiles: true
2424
releaseName: nautobot-worker
2525
valueFiles:

charts/argocd-understack/templates/application-nautobot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
helm:
2020
fileParameters:
2121
- name: nautobot.config
22-
path: $understack/components/nautobot/nautobot_config.py
22+
path: {{ $.Values.global.nautobot.nautobot_config }}
2323
ignoreMissingValueFiles: true
2424
releaseName: nautobot
2525
valueFiles:

charts/argocd-understack/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ global:
144144
# -- Enable/disable deploying Nautobot
145145
# @default -- false
146146
enabled: false
147+
# -- config file to use for Nautobot scoped to either $understack or $deploy repo
148+
# @default -- $understack/components/nautobot/nautobot_config.py
149+
nautobot_config: '$understack/components/nautobot/nautobot_config.py'
147150

148151
# -- Nautobot API token generation jobs
149152
nautobot_api_tokens:
@@ -561,6 +564,9 @@ site:
561564
# -- Enable/disable deploying Nautobot workers at the site level
562565
# @default -- false
563566
enabled: false
567+
# -- config file to use for Nautobot scoped to either $understack or $deploy repo
568+
# @default -- $understack/components/nautobot/nautobot_config.py
569+
nautobot_config: '$understack/components/nautobot/nautobot_config.py'
564570

565571
# -- SNMP exporter for network device monitoring
566572
snmp_exporter:

0 commit comments

Comments
 (0)