-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Sync development with the cookiecutter template
- Loading branch information
Showing
23 changed files
with
564 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,4 +284,5 @@ invoke.yml | |
|
||
# Static docs | ||
/nautobot_chatops/static/nautobot_chatops/docs/ | ||
compose.yaml | ||
/compose.yaml | ||
/dump.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Added Mattermost container for the development. | ||
Improved invoke tasks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ x-nautobot: &nautobot | |
services: | ||
nautobot: | ||
<<: *nautobot | ||
celery: | ||
worker: | ||
<<: *nautobot | ||
networks: | ||
awx: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
# nautobot_chatops | ||
################################################################################ | ||
# CREDS File: Store private information. Copied to creds.env and always ignored | ||
################################################################################ | ||
# Nautobot Configuration Secret Items | ||
NAUTOBOT_CREATE_SUPERUSER=true | ||
NAUTOBOT_DB_PASSWORD=changeme | ||
NAUTOBOT_NAPALM_USERNAME='' | ||
NAUTOBOT_NAPALM_PASSWORD='' | ||
NAUTOBOT_REDIS_PASSWORD=changeme | ||
NAUTOBOT_SECRET_KEY='changeme' | ||
NAUTOBOT_SUPERUSER_NAME=admin | ||
NAUTOBOT_SUPERUSER_EMAIL=[email protected] | ||
NAUTOBOT_SUPERUSER_PASSWORD=admin | ||
NAUTOBOT_SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567 | ||
|
||
# Postgres | ||
POSTGRES_PASSWORD=${NAUTOBOT_DB_PASSWORD} | ||
PGPASSWORD=${NAUTOBOT_DB_PASSWORD} | ||
|
||
# MySQL Credentials | ||
MYSQL_ROOT_PASSWORD=${NAUTOBOT_DB_PASSWORD} | ||
MYSQL_PASSWORD=${NAUTOBOT_DB_PASSWORD} | ||
|
||
# Use these to override values in development.env | ||
# NAUTOBOT_DB_HOST=localhost | ||
# NAUTOBOT_REDIS_HOST=localhost | ||
# NAUTOBOT_CONFIG=development/nautobot_config.py | ||
SLACK_API_TOKEN=xoxb-... | ||
SLACK_SIGNING_SECRET=... | ||
# SLACK_SLASH_COMMAND_PREFIX=/ | ||
|
@@ -7,13 +33,6 @@ MICROSOFT_APP_PASSWORD=... | |
WEBEX_TEAMS_ACCESS_TOKEN=... | ||
WEBEX_TEAMS_SIGNING_SECRET=... | ||
MATTERMOST_API_TOKEN="5qsffxoapt883qfdygbdgf17jy" | ||
POSTGRES_PASSWORD=notverysecurepwd | ||
REDIS_PASSWORD=notverysecurepwd | ||
SECRET_KEY=r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj | ||
NAUTOBOT_CREATE_SUPERUSER=true | ||
NAUTOBOT_SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567 | ||
NAUTOBOT_SUPERUSER_PASSWORD=admin | ||
NAUTOBOT_TOWER_PASSWORD="password" | ||
|
||
# Cisco ACI Chatops Plugin Settings | ||
# First APIC | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
################################################################################ | ||
# DEV File: Store environment information. NOTE: Secrets NOT stored here! | ||
################################################################################ | ||
# Nautobot Configuration Environment Variables | ||
NAUTOBOT_ALLOWED_HOSTS=* | ||
NAUTOBOT_BANNER_TOP="Local" | ||
NAUTOBOT_CHANGELOG_RETENTION=0 | ||
|
||
NAUTOBOT_DEBUG=True | ||
NAUTOBOT_DJANGO_EXTENSIONS_ENABLED=True | ||
NAUTOBOT_DJANGO_TOOLBAR_ENABLED=True | ||
NAUTOBOT_LOG_LEVEL=DEBUG | ||
NAUTOBOT_METRICS_ENABLED=True | ||
NAUTOBOT_NAPALM_TIMEOUT=5 | ||
NAUTOBOT_MAX_PAGE_SIZE=0 | ||
|
||
# Redis Configuration Environment Variables | ||
NAUTOBOT_REDIS_HOST=redis | ||
NAUTOBOT_REDIS_PORT=6379 | ||
# Uncomment NAUTOBOT_REDIS_SSL if using SSL | ||
# NAUTOBOT_REDIS_SSL=True | ||
|
||
# Nautobot DB Connection Environment Variables | ||
NAUTOBOT_DB_NAME=nautobot | ||
NAUTOBOT_DB_USER=nautobot | ||
NAUTOBOT_DB_HOST=db | ||
NAUTOBOT_DB_TIMEOUT=300 | ||
|
||
# Use them to overwrite the defaults in nautobot_config.py | ||
# NAUTOBOT_DB_ENGINE=django.db.backends.postgresql | ||
# NAUTOBOT_DB_PORT=5432 | ||
|
||
# Needed for Postgres should match the values for Nautobot above | ||
POSTGRES_USER=${NAUTOBOT_DB_USER} | ||
POSTGRES_DB=${NAUTOBOT_DB_NAME} | ||
|
||
# Needed for MYSQL should match the values for Nautobot above | ||
MYSQL_USER=${NAUTOBOT_DB_USER} | ||
MYSQL_DATABASE=${NAUTOBOT_DB_NAME} | ||
MYSQL_ROOT_HOST=% | ||
|
||
MATTERMOST_URL="http://mattermost:8065" | ||
|
||
NAUTOBOT_TOWER_URI="https://awx:8043/" | ||
NAUTOBOT_TOWER_USERNAME="awx" | ||
NAUTOBOT_TOWER_VERIFY_SSL="False" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Custom ENVs for Mysql | ||
# Due to docker image limitations for Mysql, we need "root" user to create more than one database table | ||
NAUTOBOT_DB_USER=root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
version: "3.8" | ||
|
||
services: | ||
nautobot: | ||
environment: | ||
- "NAUTOBOT_DB_ENGINE=django.db.backends.mysql" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" | ||
- "development_mysql.env" | ||
worker: | ||
environment: | ||
- "NAUTOBOT_DB_ENGINE=django.db.backends.mysql" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" | ||
- "development_mysql.env" | ||
db: | ||
image: "mysql:8" | ||
command: | ||
- "--default-authentication-plugin=mysql_native_password" | ||
- "--max_connections=200" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" | ||
- "development_mysql.env" | ||
volumes: | ||
- "mysql_data:/var/lib/mysql" | ||
healthcheck: | ||
test: | ||
- "CMD" | ||
- "mysqladmin" | ||
- "ping" | ||
- "-h" | ||
- "localhost" | ||
timeout: "20s" | ||
retries: 10 | ||
volumes: | ||
mysql_data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
version: "3.8" | ||
|
||
services: | ||
nautobot: | ||
environment: | ||
- "NAUTOBOT_DB_ENGINE=django.db.backends.postgresql" | ||
db: | ||
image: "postgres:13-alpine" | ||
command: | ||
- "-c" | ||
- "max_connections=200" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" | ||
volumes: | ||
# - "./nautobot.sql:/tmp/nautobot.sql" | ||
- "postgres_data:/var/lib/postgresql/data" | ||
healthcheck: | ||
test: "pg_isready --username=$$POSTGRES_USER --dbname=$$POSTGRES_DB" | ||
interval: "10s" | ||
timeout: "5s" | ||
retries: 10 | ||
|
||
volumes: | ||
postgres_data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
version: "3.8" | ||
services: | ||
redis: | ||
image: "redis:6-alpine" | ||
command: | ||
- "sh" | ||
- "-c" # this is to evaluate the $NAUTOBOT_REDIS_PASSWORD from the env | ||
- "redis-server --appendonly yes --requirepass $$NAUTOBOT_REDIS_PASSWORD" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.