Skip to content

Commit

Permalink
bump to netbox v3.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoss authored Feb 21, 2023
1 parent a34c73d commit 1566674
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/netbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- ubuntu2004
- ubuntu2204
netbox:
- v3.4.4
- v3.4.5
- v3.3.10
- v3.2.9
- v3.1.11
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Ansible Role: Netbox

[![Netbox](
https://img.shields.io/badge/Netbox-v3.4.4-blue)](https://github.com/netbox-community/netbox)
https://img.shields.io/badge/Netbox-v3.4.5-blue)](https://github.com/netbox-community/netbox)
[![CI](https://github.com/jvoss/ansible-role-netbox/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jvoss/ansible-role-netbox/actions/workflows/ci.yml)
[![Netbox](https://github.com/jvoss/ansible-role-netbox/actions/workflows/netbox.yml/badge.svg)](https://github.com/jvoss/ansible-role-netbox/actions/workflows/netbox.yml)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-jvoss.netbox-blue.svg)](https://galaxy.ansible.com/jvoss/netbox)
Expand Down
7 changes: 7 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,13 @@ netbox_rq_default_timeout: 300
# Note that the default value of this setting is derived from the installed location.
# netbox_scripts_root: = '/opt/netbox/netbox/scripts'

# The maximum size (in bytes) that an upload will be before it gets streamed to the file system.
# Useful to be able to upload files bigger than 2.5Mbyte to custom scripts for processing.
# netbox_file_upload_max_memory_size: 2621440

# The name to use for the csrf token cookie.
# netbox_csrf_cookie_name: 'csrftoken'

# The name to use for the session cookie.
netbox_session_cookie_name: 'sessionid'

Expand Down
8 changes: 8 additions & 0 deletions templates/configuration.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ RQ_DEFAULT_TIMEOUT = {{ netbox_rq_default_timeout }}
SCRIPTS_ROOT = {{ netbox_scripts_root }}
{% endif %}

{% if netbox_file_upload_max_memory_size is defined %}
FILE_UPLOAD_MAX_MEMORY_SIZE = {{ netbox_file_upload_max_memory_size }}
{% endif %}

{% if netbox_csrf_cookie_name is defined %}
CSRF_COOKIE_NAME = '{{ netbox_csrf_cookie_name }}'
{% endif %}

SESSION_COOKIE_NAME = '{{ netbox_session_cookie_name }}'

{% if netbox_session_file_path == 'None' %}
Expand Down

0 comments on commit 1566674

Please sign in to comment.