Skip to content

Commit

Permalink
netbox: fix netbox user (#1560)
Browse files Browse the repository at this point in the history
Nginx Unit user UID has changed to 999 which breaks git data source sync
in Netbox.

Netbox 3.7.x container fixed this and use user name and group `unit:root`
instead od user ID.

This fix sets the default netbox user in the same way as `unit:root`.

Refer to related issue and netbox-docker PR:
- netbox-community/netbox-docker#1200
- netbox-community/netbox-docker#589

Signed-off-by: Matej Feder <matej.feder@dnation.cloud>
  • Loading branch information
matofeder authored Aug 14, 2024
1 parent b3723ae commit dbac081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/netbox/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ netbox_port: 8121
netbox_osism_api_host: "{{ netbox_host }}"
netbox_osism_api_port: 8000

netbox_userid: 101
netbox_user: 'unit:root'

# renovate: datasource=docker depName=quay.io/osism/netbox
netbox_tag: 'v4.0.8'
Expand Down
2 changes: 1 addition & 1 deletion roles/netbox/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
netbox: &netbox
image: "{{ netbox_image }}"
restart: unless-stopped
user: "{{ netbox_userid }}"
user: "{{ netbox_user }}"
env_file:
- "{{ netbox_configuration_directory }}/netbox.env"
depends_on:
Expand Down

0 comments on commit dbac081

Please sign in to comment.