... | ... | @@ -8,17 +8,67 @@ $ sudo apt-get install python3-pip |
|
|
```
|
|
|
|
|
|
## Dependencies
|
|
|
1. [JetConf](https://gitlab.labs.nic.cz/labs/jetconf) server installed
|
|
|
- [JetConf](https://gitlab.labs.nic.cz/labs/jetconf) server installed
|
|
|
|
|
|
```bash
|
|
|
$ python3 -m pip install jetconf
|
|
|
```
|
|
|
|
|
|
1. [JukeBox](https://gitlab.labs.nic.cz/jetconf/jetconf-jukebox) backend installed
|
|
|
- [JukeBox](https://gitlab.labs.nic.cz/jetconf/jetconf-jukebox) or other backend installed
|
|
|
|
|
|
```bash
|
|
|
$ git clone https://gitlab.labs.nic.cz/jetconf/jetconf-jukebox.git
|
|
|
$ cd jetconf-jukebox
|
|
|
$ python3 setup.py install
|
|
|
```
|
|
|
- [generated certificates]()
|
|
|
|
|
|
## Setting up Configuation
|
|
|
|
|
|
Create directory for your certificates and configurations.
|
|
|
```bash
|
|
|
mkdir jukebox_conf
|
|
|
cd jukebox_conf
|
|
|
```
|
|
|
|
|
|
*JetConf* is started with specific configuration written to `.yaml` structured file. Create `.yaml` file and write our configuration. All possible configurations are described [here](https://gitlab.labs.nic.cz/labs/jetconf/wikis/jetconf-config)
|
|
|
|
|
|
Example configuration for JukeBox
|
|
|
```bash
|
|
|
$ nano jukebox-config.yaml
|
|
|
|
|
|
GLOBAL:
|
|
|
TIMEZONE: "Europe/Prague"
|
|
|
LOGFILE: "-"
|
|
|
PIDFILE: "/tmp/jetconf.pid"
|
|
|
PERSISTENT_CHANGES: false
|
|
|
LOG_LEVEL: "debug"
|
|
|
LOG_DBG_MODULES: ["usr_conf_data_handlers", "nacm", "data"]
|
|
|
YANG_LIB_DIR: "../../yang-modules"
|
|
|
DATA_JSON_FILE: "example-data-nacm.json"
|
|
|
BACKEND_PACKAGE: "jetconf_jukebox"
|
|
|
|
|
|
HTTP_SERVER:
|
|
|
DOC_ROOT: "/doc-root"
|
|
|
DOC_DEFAULT_NAME: "index.html"
|
|
|
API_ROOT: "/restconf"
|
|
|
SERVER_NAME: "jetconf-jukebox"
|
|
|
|
|
|
SERVER_SSL_CERT: "server.crt"
|
|
|
SERVER_SSL_PRIVKEY: "server.key"
|
|
|
CA_CERT: "ca.pem"
|
|
|
DBG_DISABLE_CERTS: false
|
|
|
|
|
|
NACM:
|
|
|
ALLOWED_USERS: ["lojza@mail.cz"]
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The configuration file can be passed to Jetconf with command line argument
|
|
|
```bash
|
|
|
$ jetconf -c /path/to/config.yaml
|
|
|
```
|
|
|
|
|
|
|
|
|
|