Maintain variables in EnvironmentFile #588
Replies: 4 comments
-
Thanks @vishnubraj for the suggestion! This seems like a useful addendum to our configuration/deployment documentation for users who wish to deploy Nautobot using the environment variables without needing to make modifications to the default configuration. I observed you still have Thank you! |
Beta Was this translation helpful? Give feedback.
-
I can confirm that having NAUTOBOT_ROOT in the EnvironmentFile would mean you don't need it in the Environment=... Also, the EnvironmentFile can live anywhere that the Service has access to. |
Beta Was this translation helpful? Give feedback.
-
The /etc/default is used for sysvinit (init.d) startup scripts to default environment variables see https://help.ubuntu.com/community/UbuntuBootupHowto for more information. Systemd can take any path for these files (as long as it can access them). https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile= |
Beta Was this translation helpful? Give feedback.
-
@vishnubraj You may have seen the issue be closed, but just a heads up converted this to a discussion to get more input and feedback. Feel free to provide a write up here so others can take advantage of your deployment methodology. |
Beta Was this translation helpful? Give feedback.
-
We can maintain the variables in the "/etc/default/nautobot" and call the variable in the systemctl files using the "EnvironmentFile" field, This will help maintain the variables properly.
content of /etc/default/nautobot
content of systemd file
Please update the below documentation for the same.
https://nautobot.readthedocs.io/en/latest/installation/wsgi/
Beta Was this translation helpful? Give feedback.
All reactions