network_inventory/README.org

95 lines
2.5 KiB
Org Mode
Raw Normal View History

* network_inventory
2017-12-21 23:11:33 +01:00
I started this project in order to have solution for keeping an
inventory over my various servers and other network equipment.
2017-12-26 00:01:54 +01:00
** Setup
1. Clone the repository
2. Create a virtual environment inside of the repository for example
with:
#+BEGIN_EXAMPLE
python3 -m venv /path/to/repository
#+END_EXAMPLE
3. Cd into the repository and execute the setup.sh script. It will do
some clean up tasks, install some python dependencies into the
virtual environment, setup the database and a default user with the
login ~admin~ and the password ~password~.
4. Afterwards you can run:
#+BEGIN_EXAMPLE
./manage.py runserver
#+END_EXAMPLE
In order to run the developmenent server and access the application
at http://localhost:8000
** Todos
*** TODO Setup an Ansible role
**** NEXT Create an Apache configuration
2017-12-28 16:17:40 +01:00
**** CANCELED move the database to mariadb
CLOSED: [2017-12-28 Thu 16:15]
- I had massive problems with mysqlclient and python3.5 and therefore
dropped this. SQLite seems to work reasonably well.
2017-12-26 00:01:54 +01:00
**** NEXT setup a server
**** NEXT configure htaccess or something similar
*** NEXT extend the CSS
- A more centered layout would be nice
- Maybe some colours
2017-12-28 16:17:40 +01:00
*** NEXT include a RAID calculator
- https://thoughtworksnc.com/2017/08/30/writing-a-raid-calculator-in-python/
I would like to use this to show the usable space in a RAID system.
*** NEXT calculate the used space on a host
Means calculate the size all the VMs would use if they were thick.
*** NEXT Move the lists to their own page
- Since I have more devices than I thought it would provide a better
overview than one big list.
2017-12-28 19:38:10 +01:00
*** NEXT Add a Counter to the RAM Modules
*** NEXT Create an abstract company class
*** NEXT Create Customer and a Manufacturer sub class
Those two would be based on the company class. I'm currently not sure
how I should handle the case where a company is both a customer and a
manufacturer.
*** NEXT Create a NET category where a device can live in.
This NET Category should display it's IP range, Subnet mask and show
it's DHCP range if one is configured.
*** NEXT Create class DeviceInNet
This class shows the relationship between the device and a NET. An
attribute of a DeviceInNet should be an IP address.
2018-05-17 22:39:04 +02:00
*** NEXT Recreate the RM in draw.io
The Dia RM is okay but not really that great. Draw.io would give a
better result.
2017-12-26 00:01:54 +01:00
** Developemenet
For a detailed documentation of the source have a look at the
2017-12-26 00:04:09 +01:00
[[https://git.2li.ch/Nebucatnetzer/network_inventory/src/branch/master/docs/docs.org][documentation]].
2017-12-26 00:01:54 +01:00