diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-02-15 23:01:26 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-02-15 23:01:26 +0100 |
commit | b4e8b5f82e942dc5861198d26d19edc3d273b7c2 (patch) | |
tree | 796a59a460fd436426784b272965f7f56800a1f0 /roles/netbox/Readme.md | |
parent | 98f866aa2ba09a74e7a06b827f35e2c0275bda97 (diff) | |
download | ansible_collection-b4e8b5f82e942dc5861198d26d19edc3d273b7c2.tar.gz |
netbox
Diffstat (limited to 'roles/netbox/Readme.md')
-rw-r--r-- | roles/netbox/Readme.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/netbox/Readme.md b/roles/netbox/Readme.md new file mode 100644 index 0000000..8c2cedc --- /dev/null +++ b/roles/netbox/Readme.md @@ -0,0 +1,53 @@ +# netbox + +as standard as possible according to the docs. + +A correct reverse proxy config is needed as well. +See docs for details. + +Example config: + +```yaml +--- +netbox_version: '3.7.2' +netbox_local_postgres: true +netbox_config: + CSRF_TRUSTED_ORIGINS: + - 'https://{{ ansible_facts.fqdn }}' + ALLOWED_HOSTS: + - '{{ ansible_facts.fqdn }}' + DATABASE: + NAME: netbox + USER: netbox + PASSWORD: '{{ postgres_netbox_db_key }}' + HOST: localhost + PORT: '' + CONN_MAX_AGE: 300 + REDIS: + tasks: + HOST: localhost + PORT: 6379 + PASSWORD: '' + DATABASE: 0 + SSL: false + caching: + HOST: localhost + PORT: 6379 + PASSWORD: '' + DATABASE: 1 + SSL: false + SECRET_KEY: '{{ sec_key.content | b64decode }}' + +gunicorn_config: + bind: '127.0.0.1:8001' + workers: 5 + threads: 3 + timeout: 120 + max_requests: 5000 + max_requests_jitter: 500 + +ldap_enable: false +# This has to be a Multiline String, because we need to define +# native Python-datatypes here and this is a hell to template. +ldap_config: '' +``` |