How to Install NetBox on Ubuntu 18.04 LTS is the heading of our article today. NetBox is an open source IPAM / DCIM web application used for managing and documenting computer networks and managing IP addresses. It was Initially conceived by the network engineering team at DigitalOcean.
Netbox encompasses the following aspects of network management:
IP address management (IPAM) – IP networks and addresses, VRFs, and VLANs
Equipment racks – Organized by group and site
Devices – Types of devices and where they are installed
Connections – Network, console, and power connections among devices
Virtualization – Virtual machines and clusters
Data circuits – Long-haul communications circuits and providers
Secrets – Encrypted storage of sensitive credentials
If you’re interested in deploying Netbox on CentOS 7, check:
.td_uid_2_5d9071ba471e8_rand.td-a-rec-img{text-align:left}.td_uid_2_5d9071ba471e8_rand.td-a-rec-img img{margin:0 auto 0 0}
This section will discuss the actual steps you need to follow to have NetBox installed on your Ubuntu 18.04 LTS server. Follow them in order of the appearance, though you can skip a part if you have the software being installed already configiured.
Step 1: Install required dependencies
Start by installing all dependency applications required to run NetBox on Ubuntu 18.04 LTS.
cd /opt/netbox/netbox/ sudo python3 manage.py migrate
Sample output for database migration.
Applying circuits.0014_circuittermination_description... OK
Applying dcim.0067_device_type_remove_qualifiers... OK
Applying dcim.0068_rack_new_fields... OK
Applying tenancy.0004_tags... OK
Applying tenancy.0005_change_logging... OK
Applying extras.0001_initial_squashed_0010_customfield_filter_logic... OK
Applying extras.0011_django2... OK
Applying extras.0012_webhooks... OK
Applying extras.0013_objectchange... OK
Applying extras.0014_configcontexts... OK
Applying extras.0015_remove_useraction... OK
Applying extras.0016_exporttemplate_add_cable... OK
Applying ipam.0021_vrf_ordering... OK
Applying ipam.0022_tags... OK
Applying ipam.0023_change_logging... OK
Applying secrets.0001_initial_squashed_0003_unicode_literals... OK
Applying secrets.0004_tags... OK
Applying secrets.0005_change_logging... OK
Applying sessions.0001_initial... OK
Applying users.0001_api_tokens_squashed_0002_unicode_literals... OK
Applying users.0003_token_permissions... OK
Applying virtualization.0002_virtualmachine_add_status_squashed_0004_virtualmachine_add_role... OK
Applying virtualization.0005_django2... OK
Applying virtualization.0006_tags... OK
Applying virtualization.0007_change_logging... OK
Applying virtualization.0008_virtualmachine_local_context_data... OK
Create admin user:
$ sudo python3 manage.py createsuperuser
Username (leave blank to use 'root'): admin Email address: [email protected] Password: <Enter Password> Password (again): <Re-enter Password> Superuser created successfully.
Move static files
$ cd /opt/netbox/netbox $ sudo python3 manage.py collectstatic 280 static files copied to '/opt/netbox/netbox/static'.
$ systemctl status supervisor supervisor.service - Supervisor process control system for UNIX Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2019-01-13 06:28:55 PST; 4s ago Docs: http://supervisord.org Process: 28799 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=0/SUCCESS) Main PID: 28830 (supervisord) Tasks: 5 (limit: 1110) CGroup: /system.slice/supervisor.service |-28830 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |-28850 /usr/bin/python3 /usr/local/bin/gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi |-28855 /usr/bin/python3 /usr/local/bin/gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi |-28857 /usr/bin/python3 /usr/local/bin/gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi `-28859 /usr/bin/python3 /usr/local/bin/gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi Jan 13 06:28:55 ubuntu-01 systemd[1]: Started Supervisor process control system for UNIX. Jan 13 06:28:55 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:55,572 CRIT Supervisor running as root (no user in config file) Jan 13 06:28:55 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:55,572 INFO Included extra file "/etc/supervisor/conf.d/netbox.conf" during parsing Jan 13 06:28:55 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:55,580 INFO RPC interface 'supervisor' initialized Jan 13 06:28:55 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:55,580 CRIT Server 'unix_http_server' running without any HTTP authentication checking Jan 13 06:28:55 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:55,580 INFO supervisord started with pid 28830 Jan 13 06:28:56 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:56,583 INFO spawned: 'netbox' with pid 28850 Jan 13 06:28:57 ubuntu-01 supervisord[28830]: 2019-01-13 06:28:57,871 INFO success: netbox entered RUNNING state, process has stayed up for > than 1 se
Configure Nginx Web Server
Let’s configure Nginx web server to help us access Netbox via Domain name rather than specifying an IP address and a port.
Tidak ada komentar:
Posting Komentar