diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98c15a21..f0e7c058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -201,7 +201,7 @@ jobs: tar zcvf docker-compose-quickstart.tar.gz \ docker-compose.yml docker-compose-demo.yml .env \ orchestrator/clickhouse/data/docker-entrypoint.sh \ - akvorado*.yaml + config/*.yaml # Publish release - name: Publish release diff --git a/cmd/testdata/configurations/shipped/in.yaml b/cmd/testdata/configurations/shipped/in.yaml index 11ad953b..bdf49ba6 120000 --- a/cmd/testdata/configurations/shipped/in.yaml +++ b/cmd/testdata/configurations/shipped/in.yaml @@ -1 +1 @@ -../../../../akvorado.yaml \ No newline at end of file +../../../../config/akvorado.yaml \ No newline at end of file diff --git a/akvorado.yaml b/config/akvorado.yaml similarity index 93% rename from akvorado.yaml rename to config/akvorado.yaml index ba5e49c8..a064d349 100644 --- a/akvorado.yaml +++ b/config/akvorado.yaml @@ -57,8 +57,8 @@ clickhouse: # .prefixes[] | # { prefix: (.ipv4Prefix // .ipv6Prefix), tenant: "google-cloud", region: .scope } -inlet: !include "akvorado-inlet.yaml" -console: !include "akvorado-console.yaml" +inlet: !include "inlet.yaml" +console: !include "console.yaml" # Remove the following line if you don't want to get demo data -demo-exporter: !include "akvorado-demo.yaml" +demo-exporter: !include "demo.yaml" diff --git a/akvorado-console.yaml b/config/console.yaml similarity index 100% rename from akvorado-console.yaml rename to config/console.yaml diff --git a/akvorado-demo.yaml b/config/demo.yaml similarity index 100% rename from akvorado-demo.yaml rename to config/demo.yaml diff --git a/akvorado-inlet.yaml b/config/inlet.yaml similarity index 100% rename from akvorado-inlet.yaml rename to config/inlet.yaml diff --git a/console/data/docs/00-intro.md b/console/data/docs/00-intro.md index 59cddbe9..09e870f8 100644 --- a/console/data/docs/00-intro.md +++ b/console/data/docs/00-intro.md @@ -49,7 +49,7 @@ documentation. You can get all the expanded configuration (with default values) with `docker-compose exec akvorado-orchestrator akvorado orchestrator ---check --dump /etc/akvorado.yaml`. +--check --dump /etc/akvorado/akvorado.yaml`. Take a look at the `docker-compose.yml` file if you want to setup the GeoIP database. It requires two environment variables to fetch them diff --git a/console/data/docs/02-configuration.md b/console/data/docs/02-configuration.md index e0be1b4a..89972fa8 100644 --- a/console/data/docs/02-configuration.md +++ b/console/data/docs/02-configuration.md @@ -1,9 +1,9 @@ # Configuration -The orchestrator service is configured through a YAML file and -includes the configuration of the other services. Other services are -expected to query the orchestrator through HTTP on start to retrieve -their configuration. +The orchestrator service is configured through YAML files (shipped in the +`config/` directory) and includes the configuration of the other services. Other +services are expected to query the orchestrator through HTTP on start to +retrieve their configuration. The default configuration can be obtained with `docker-compose exec akvorado-orchestrator akvorado orchestrator --dump --check /dev/null`. Note that diff --git a/console/data/docs/99-changelog.md b/console/data/docs/99-changelog.md index 835871d0..cef36e14 100644 --- a/console/data/docs/99-changelog.md +++ b/console/data/docs/99-changelog.md @@ -13,7 +13,9 @@ identified with a specific icon: ## Unreleased -- 🌱 *common*: accept an `!include` tag to include other YAML files in `akvorado.yaml` +- 💥 *docker-compose*: the configuration files are now shipped in a `config/` + directory: you need to move your `akvorado.yaml` in `config/` as well +- 🌱 *orchestrator*: accept an `!include` tag to include other YAML files in `akvorado.yaml` ## 1.7.2 - 2023-02-12 diff --git a/docker-compose.yml b/docker-compose.yml index eada3337..09b205c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,9 +69,9 @@ services: akvorado-orchestrator: <<: *akvorado-image restart: unless-stopped - command: orchestrator /etc/akvorado.yaml + command: orchestrator /etc/akvorado/akvorado.yaml volumes: - - ./akvorado.yaml:/etc/akvorado.yaml:ro + - ./config:/etc/akvorado:ro labels: - traefik.enable=true - traefik.http.routers.akvorado-orchestrator.entrypoints=private # it exposes configuration files with passwords