Skip to content

Commit

Permalink
Closes #12623: Document need for core.sync_datasource permission
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 5, 2023
1 parent b21ed6a commit d10ac9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/features/synchronized-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ To enable remote data synchronization, the NetBox administrator first designates

(Local disk paths are considered "remote" in this context as they exist outside NetBox's database. These paths could also be mapped to external network shares.)


!!! info
Data backends which connect to external sources typically require the installation of one or more supporting Python libraries. The Git backend requires the [`dulwich`](https://www.dulwich.io/) package, and the S3 backend requires the [`boto3`](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) package. These must be installed within NetBox's environment to enable these backends.

Expand All @@ -23,3 +22,6 @@ The following NetBox models can be associated with replicated data files:
* Export templates

Once a data has been designated for a local instance, its data will be replaced with the content of the replicated file. When the replicated file is updated in the future (via synchronization jobs), the local instance will be flagged as having out-of-date data. A user can then synchronize these objects individually or in bulk to effect the update. This two-stage process ensures that automated synchronization tasks do not immediately affect production data.

!!! note "Permissions"
A user must be assigned the `core.sync_datasource` permission in order to synchronize local files from a remote data source.
3 changes: 3 additions & 0 deletions docs/integrations/synchronized-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Some NetBox models support automatic synchronization of certain attributes from remote [data sources](../models/core/datasource.md), such as a git repository hosted on GitHub or GitLab. Data from the authoritative remote source is synchronized locally in NetBox as [data files](../models/core/datafile.md).

!!! note "Permissions"
A user must be assigned the `core.sync_datasource` permission in order to synchronize local files from a remote data source. This is accomplished by creating a permission for the "Core > Data Source" object type with the `sync` action, and assigning it to the desired user and/or group.

The following features support the use of synchronized data:

* [Configuration templates](../features/configuration-rendering.md)
Expand Down

0 comments on commit d10ac9b

Please sign in to comment.