Adding Jobs to Nautobot
One of Nautobot’s goals is to make it easy to be able to make your Nautobot environment extensible and flexible. With Nautobot’s flexibility, three methods can be used to add (or distribute) Jobs into an instance of Nautobot:
- Synchronizing Jobs into Nautobot from a Git repository
- Distributing Jobs as part of a Nautobot app
- Mounting or placing Jobs directly in the
JOBS_ROOT
path (the default is/
opt/nautobot/jobs
)
Having these three methods available to get your Jobs into Nautobot allows you to quickly iterate and have Jobs do what you want to do so that you can automate your environment.
For Jobs that are part of either a Git repository or mounted into the JOBS_ROOT
path, there is no support for cross-file dependencies, meaning you cannot do relative imports. If you are looking to have a common library module for common code, you should package Jobs within a Nautobot App, which you can reference via Python paths. More...