Go to file
Andreas Zweili af4932db07 disable debugging mode in the example .env file 2020-02-15 15:25:36 +01:00
backups rename inventory app to computers 2020-01-12 14:36:44 +01:00
computers add HardwareModel to the device app 2020-02-14 20:26:24 +01:00
core extend the helper functions with the escape function 2020-01-12 14:23:10 +01:00
customers correct the path for the base template 2020-01-11 17:41:03 +01:00
devices add HardwareModel to the device app 2020-02-14 20:26:24 +01:00
docs add a new task 2020-02-14 20:34:38 +01:00
licenses rename inventory app to computers 2020-01-12 14:36:44 +01:00
nets rename inventory app to computers 2020-01-12 14:36:44 +01:00
network_inventory add postgres password 2020-02-15 00:55:45 +01:00
requirements update django to version 2.2.10 2020-02-15 00:30:04 +01:00
softwares correct OperationSystem fixtures 2020-01-12 13:20:42 +01:00
static/admin restructure the project 2020-01-07 18:10:57 +01:00
users rename inventory app to computers 2020-01-12 14:36:44 +01:00
.coveragerc move the coverage config 2019-08-11 20:38:37 +02:00
.dir-locals.el move .dir-locals.el to the actual project root 2020-01-09 22:01:05 +01:00
.env-example disable debugging mode in the example .env file 2020-02-15 15:25:36 +01:00
.gitignore ignore all migrations for now 2020-01-10 00:01:57 +01:00
.travis.yml copy the .env file before building the container 2020-02-15 15:21:39 +01:00
Dockerfile split the requirements and settings 2019-07-13 12:37:58 +02:00
LICENSE Initial commit 2017-12-21 23:11:33 +01:00
Makefile add a cleanall command to the Makefile 2020-01-12 14:00:56 +01:00
README.md add travis badge to readme 2020-01-07 18:16:29 +01:00
conftest.py rename inventory app to computers 2020-01-12 14:36:44 +01:00
docker-compose.yml add support for an .env file 2020-02-15 15:19:11 +01:00
manage.py restructure the project 2020-01-07 18:10:57 +01:00
production.sh make migrations on the first run of the inventory app 2020-01-07 18:12:30 +01:00
pytest.ini disable pytest legacy message for junit 2019-11-30 13:31:43 +01:00
run.sh rename inventory app to computers 2020-01-12 14:36:44 +01:00

README.md

network_inventory

Build Status

I started this project in order to have solution for keeping an inventory over my various servers and other network equipment.

Setup

  1. Clone the repository
  2. Now decide if you want to develop fully locally or inside the docker container. Locally you'll use SQlite for the database and inside the Docker container you'll use Postgres for the database. For the moment there aren't any features implemented which require Postgres. However this might change in the future and SQlite is not supported for production.

Local Setup

  1. Run make local to create the virtual environment for development. You're now all set to start developing.

Docker Setup

  1. Run make to start the development server. You can access it at http://localhost:8000 . You're now all set to start developing.
    If you need to run migrations you can simply restart the Docker container.

Environment Variables

To customise the application in the Docker container you can use environment variables in the docker-compose.yml file. Currently the following variables are supported.

  • DJANGO_SECRET_KEY the secret key is mandatory, otherwise the application doesn't run. Make sure that it is some long random string.
  • DJANGO_DEBUG settings this variable to any value enables the Django debug mode. Make sure that you don't set it on a production server.
  • DJANGO_SETTINGS_MODULE the path to the settings file to use in the container. This requires a dotet syntax. The default is network_inventory.settings.docker.

Todos

  • Create an Nginx configuration
  • extend the CSS
    • A more centered layout would be nice
    • Maybe some colours
  • include a RAID calculator
  • calculate the used space on a host Means calculate the size all the VMs would use if they were thick.