Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

Netbox Europa Distribution

Requirement

  • docker
  • docker-compose

Contribute

Clone this project:

git clone git@code.europa.eu:digit-c4/netbox-plugins.git

On Window

If you start from scratch:

Create SSH key: instruction

Add key.pub to the git account: instruction

Then clone the project.

If you are behind a proxy

create file %USERPROFILE%/.ssh/config and add below values:

Host code.europa.eu
    ProxyCommand "C:/Program Files/Git/mingw64/bin/connect.exe" -H proxy-t2.welcome.ec.europa.eu:8012 %h %p

Create local environment variables:

Variable Value
HTTP_PROXY_USER user
HTTP_PROXY_PASSWORD password

Run localy

on Linux

sudo TAG=latest docker-compose -f docker-compose.yml -f docker-compose.test.yml up -d

on Mac

env TAG=latest docker-compose -f docker-compose.yml -f docker-compose.test.yml up -d

Login to Netbox

url : http://localhost:8080 login: admin password: thisnetboxisnot4u

Netbox Password Rotation

It's a serice thats automaticlt rotate Netbox default passwords once per week, ech Sunday at 02:00 AM

Requirments

set ENV variables:

  • VAULT_ADDR - URL of the vault service
  • VAULT_ROLE_ID
  • VAULT_SECRET_ID
  • VAULT_PATH - {bubble_name}/netbox/{netbox_FQDN/all}

e.g.:

VAULT_ADDR=https://sam-hcpvault.cec.eu.int VAULT_ROLE_ID=sadasdas-sadsa-dasd-dsa-asdsadasdas VAULT_SECRET_ID=sadasdas-sadsa-dasd-dsa-asdsadasdas
VAULT_PATH=netbox_operations/netbox/password_rotation/all