feat: initial playbook
This commit is contained in:
parent
99bfb97ee7
commit
f8e1de4f0a
30 changed files with 1097 additions and 2 deletions
85
group_vars/netbox.yml
Normal file
85
group_vars/netbox.yml
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
---
|
||||
# Group variables for NetBox deployment
|
||||
# These variables apply to all hosts in the netbox group
|
||||
|
||||
# System Update Configuration
|
||||
system_update_reboot_if_needed: false
|
||||
system_update_autoremove: true
|
||||
|
||||
# Docker Configuration
|
||||
docker_users:
|
||||
- "{{ ansible_user }}"
|
||||
docker_daemon_config:
|
||||
log-driver: "json-file"
|
||||
log-opts:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# NetBox Configuration
|
||||
netbox_install_dir: "/opt/netbox-docker"
|
||||
netbox_backup_dir: "/opt/netbox-backups"
|
||||
netbox_data_dir: "/opt/netbox-data"
|
||||
|
||||
# Database Configuration
|
||||
netbox_db_host: "db"
|
||||
netbox_db_name: "netbox"
|
||||
netbox_db_user: "netbox"
|
||||
netbox_db_password: "{{ vault_netbox_db_password | default('netbox') }}"
|
||||
netbox_db_port: "5432"
|
||||
|
||||
# Redis Configuration
|
||||
netbox_redis_host: "redis"
|
||||
netbox_redis_port: "6379"
|
||||
netbox_redis_password: "{{ vault_netbox_redis_password | default('') }}"
|
||||
|
||||
# Redis Cache Configuration
|
||||
netbox_redis_cache_host: "redis-cache"
|
||||
netbox_redis_cache_port: "6379"
|
||||
netbox_redis_cache_password: "{{ vault_netbox_redis_cache_password | default('') }}"
|
||||
|
||||
# NetBox Settings
|
||||
netbox_allowed_hosts: "{{ ansible_default_ipv4.address }},localhost,127.0.0.1"
|
||||
netbox_time_zone: "UTC"
|
||||
netbox_language_code: "en"
|
||||
netbox_debug: false
|
||||
netbox_log_level: "INFO"
|
||||
|
||||
# Superuser Configuration
|
||||
netbox_superuser_name: "admin"
|
||||
netbox_superuser_email: "admin@{{ ansible_domain | default('example.com') }}"
|
||||
netbox_superuser_password: "{{ vault_netbox_superuser_password | default('admin') }}"
|
||||
|
||||
netbox_additional_env:
|
||||
CORS_ORIGIN_ALLOW_ALL: True
|
||||
EMAIL_FROM: "netbox@jeansburger.net"
|
||||
EMAIL_PASSWORD: "{{ vault_netbox_email_password | default('') }}"
|
||||
EMAIL_PORT: 587
|
||||
EMAIL_SERVER: "smtp.postmarkapp.com"
|
||||
EMAIL_TIMEOUT: 5
|
||||
EMAIL_USERNAME: "{{ value_netbox_email_username | default('') }}"
|
||||
# EMAIL_USE_SSL and EMAIL_USE_TLS are mutually exclusive, i.e. they can't both be `true`!
|
||||
EMAIL_USE_SSL: False
|
||||
EMAIL_USE_TLS: True
|
||||
GRAPHQL_ENABLED: True
|
||||
MEDIA_ROOT: "/opt/netbox/netbox/media"
|
||||
METRICS_ENABLED: True
|
||||
RELEASE_CHECK_URL: "https://api.github.com/repos/netbox-community/netbox/releases"
|
||||
SECRET_KEY: "{{ vault_netbox_secret_key | default('') }}"
|
||||
SKIP_SUPERUSER: True
|
||||
WEBHOOKS_ENABLED: True
|
||||
|
||||
# Docker Compose Overrides
|
||||
netbox_docker_compose_overrides:
|
||||
services:
|
||||
netbox:
|
||||
ports:
|
||||
- "8000:8080"
|
||||
db:
|
||||
volumes:
|
||||
- "{{ netbox_data_dir }}/postgres:/var/lib/postgresql/data"
|
||||
redis:
|
||||
volumes:
|
||||
- "{{ netbox_data_dir }}/redis:/data"
|
||||
redis-cache:
|
||||
volumes:
|
||||
- "{{ netbox_data_dir }}/redis-cache:/data"
|
||||
Loading…
Add table
Add a link
Reference in a new issue