Page MenuHomeSoftware Heritage

Readme.md
No OneTemporary

Readme.md

# Fact importer into netbox
Samall utility to import the puppet facts content into netbox
## usage
### first time
```bash
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
```
### Initialize netbox
the ``init.py`` script initialize the following netbox properties in order to import the puppet facts :
- device providers
- device types
- vlan
- ip prefixes
- tags
- platforms
- device roles
To run it :
```bash
. .venv/bin/activate
export NETBOX_URL=http://localhost:8080
export NETBOX_TOKEN=<api token>
export FACTS_DIRECTORY=/path/to/puppet-environment/octocatalog-diff/facts">
python run.py
```
### Import facts
```bash
. .venv/bin/activate
export NETBOX_URL=http://localhost:8080
export NETBOX_TOKEN=<api token>
export FACTS_DIRECTORY=/path/to/puppet-environment/octocatalog-diff/facts">
python run.py
```

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 21, 6:50 PM (2 w, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240310

Event Timeline