Skip to content

Commit

Permalink
Remove abandoned (for now) powerdns integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kofrezo committed Jul 19, 2023
1 parent 363d686 commit dfc4cb9
Show file tree
Hide file tree
Showing 27 changed files with 2 additions and 781 deletions.
3 changes: 0 additions & 3 deletions .docker/db/pdns-db.sql

This file was deleted.

12 changes: 0 additions & 12 deletions .docker/pdns-auth/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions .docker/pdns-auth/entrypoint.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .docker/pdns-auth/pdns.conf

This file was deleted.

1 change: 0 additions & 1 deletion .docker/web/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ done

# Apply pending migrations on every start
python3 -m pipenv run python -m serveradmin migrate --no-input
python3 -m pipenv run python -m serveradmin migrate --database=powerdns --no-input

# Requires Django >= 3.x
# pipenv run python -m serveradmin createsuper --no-input
Expand Down
9 changes: 0 additions & 9 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
POSTGRES_VERSION=14

# db service database settings
POSTGRES_DB=serveradmin
POSTGRES_USER=serveradmin
POSTGRES_PASSWORD=serveradmin
POSTGRES_HOST=db
POSTGRES_PORT=5432

# PowerDNS db service database settings
POSTGRES_POWERDNS_DB=powerdns
POSTGRES_POWERDNS_USER=powerdns
POSTGRES_POWERDNS_PASSWORD=powerdns
POSTGRES_POWERDNS_HOST=db
POSTGRES_POWERDNS_PORT=5432

# Credentials for default super user (requires Django >= 3.x)
DJANGO_SUPERUSER_USERNAME=serveradmin
[email protected]
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
pdns-db:
image: 'postgres:15'
env:
POSTGRES_USER: powerdns
POSTGRES_PASSWORD: powerdns
POSTGRES_DB: powerdns
ports:
- 5432/tcp
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Setup python
Expand Down Expand Up @@ -71,18 +58,6 @@ jobs:
'client_encoding': 'UTF8',
},
},
'powerdns': {
'ENGINE': 'django.db.backends.postgresql',
'HOST': '127.0.0.1',
'PORT': '${{ job.services.pdns-db.ports[5432] }}',
'NAME': 'powerdns',
'USER': 'powerdns',
'PASSWORD': 'powerdns',
'OPTIONS': {
'connect_timeout': 1,
'client_encoding': 'UTF8',
},
},
}
SECRET_KEY = 'TEST'
TIME_ZONE = 'Europe/Berlin'
Expand Down
18 changes: 1 addition & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ version: "3.9"

services:
db:
image: "postgres:${POSTGRES_VERSION}"
image: "postgres:15"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ".docker/db/postgres.conf:/etc/postgresql/postgres.conf:ro"
- ".docker/db/pdns-db.sql:/docker-entrypoint-initdb.d/pdns-db.sql:ro"
- postgres-data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
Expand All @@ -24,20 +23,5 @@ services:
depends_on:
- db

pdns-auth:
build: .docker/pdns-auth
environment:
- GPGSQL_HOST=${POSTGRES_POWERDNS_HOST}
- GPGSQL_PORT=5432
- GPGSQL_DBNAME=${POSTGRES_POWERDNS_DB}
- GPGSQL_USER=${POSTGRES_POWERDNS_USER}
- GPGSQL_PASSWORD=${POSTGRES_POWERDNS_PASSWORD}
ports:
- "127.0.0.1:1053:53"
- "127.0.0.1:1053:53/udp"
depends_on:
- db
- web

volumes:
postgres-data:
84 changes: 0 additions & 84 deletions docs/source/extensions.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ Serveradmin Documentation
extending.rst
python-api.rst
module-adminapi.rst
extensions.rst
2 changes: 1 addition & 1 deletion serveradmin/local_settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Copyright (c) 2019 InnoGames GmbH
# LOGGING['loggers']['myapp'] = {'level': LOG_LEVEL}

# # See https://docs.djangoproject.com/en/dev/ref/settings/#databases
# # for more detauls on how to configure your database connection.
# # for more defaults on how to configure your database connection.
# DATABASES = {
# }

Expand Down
Empty file removed serveradmin/powerdns/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions serveradmin/powerdns/admin.py

This file was deleted.

21 changes: 0 additions & 21 deletions serveradmin/powerdns/apps.py

This file was deleted.

20 changes: 0 additions & 20 deletions serveradmin/powerdns/fixtures/powerdns_auth.json

This file was deleted.

39 changes: 0 additions & 39 deletions serveradmin/powerdns/fixtures/powerdns_serverdb.json

This file was deleted.

41 changes: 0 additions & 41 deletions serveradmin/powerdns/migrations/0001_initial.py

This file was deleted.

Loading

0 comments on commit dfc4cb9

Please sign in to comment.