No description
Find a file
Frederic Borries 0a06deac3f
Some checks failed
Lint / Lint (push) Has been cancelled
Move to git.fabiv.pw
2025-03-03 22:39:17 -05:00
.gitea/workflows Add linters 2024-05-09 06:52:34 +02:00
.vscode Fix syntax highlighting 2024-07-22 02:24:46 +00:00
configs Include examples in container 2024-09-05 22:58:33 +02:00
templates Standalone install script 2024-09-06 00:01:47 +02:00
.concourse.yaml Move to git.fabiv.pw 2025-03-03 22:39:17 -05:00
.dockerignore Include examples in container 2024-09-05 22:58:33 +02:00
.gitignore .gitignore .venv 2024-09-05 20:37:55 +02:00
app.py swap from file to path. Subdirectories exist. 2024-09-05 22:58:05 +02:00
Containerfile Excludes isn't stable yet 2024-09-05 21:05:31 +02:00
README.md Minor readme and CI changes 2024-09-06 03:02:56 +02:00
requirements.txt add jsonschema to reqs 2024-07-22 01:50:28 +00:00
vyos-cloud.v1.schema.json Update schema and add v1 2024-07-22 01:48:06 +00:00
vyos-cloud.v2-devel.schema.json Schema update and clarity text 2024-07-23 07:51:18 +02:00

Vyos-Cloud

Concourse Pipeline Status

Description

Provide Cloud-Init NoCloud user-data, meta-data, and vendor-data endpoints with configurable content in support of ephemeral Vyos routing nodes.

Dependencies

  • Python3
  • Flask
  • Waitress
  • jsonschema

Usage

Commandline

$ python3 ./app.py client [-h] [-a API] [-t {zip}] configFile templateFile`

or

$ docker run --rm PATH_TO_LOCAL_CONFIGS:/usr/src/app/configs $(docker build --quiet .) client [-h] [-a API] [-t {zip}] configFile templateFile

positional arguments: configFile configuration file to read vars from templateFile name of file to render from template dir

options: -h, --help show this help message and exit -a API, --api API version of template to use; defaults to v1 -t {zip}, --archive {zip} render all templates to an archive type specified here and the archive name specified by filename

Server

$ docker run --rm -p 8080:8080 $(docker build --quiet .)

api v1

http(s)://HOST/v1/VLAN/DOMAIN/FILEPATH http(s)://HOST/v1/VLAN/DOMAIN/FILENAME?archive=zip

  • Serves the user-data and meta-data endpoints required by Cloud-Init.
  • Replace VLAN with the VLAN number.
  • Replace DOMAIN with the domain name.
  • Replace filepath/filename with the desired file path/name.
  • Use the archive query parameter to download all files in an archive. Only zip is supported at the moment.

Example: /v1/100/example.com/user-data

api v2-devel

http(s)://HOST/v2-devel/CONF/FILEPATH http(s)://HOST/v2-devel/CONF/FILENAME?archive={zip}

  • Serves the user-data and meta-data endpoints required by Cloud-Init.
  • Replace CONF with the configuration file name.
  • Replace filepath/filename with the desired file path/name.
  • Use the archive query parameter to download all files in an archive. Only zip is supported at the moment.

Example: /v2-devel/example-v2/kea/kea-dhcp4.conf