From 530d895ec0520a8ecc9602867fc86d2c5b400388 Mon Sep 17 00:00:00 2001 From: anima Date: Sun, 2 Feb 2025 18:29:54 +0100 Subject: [PATCH] add inital compose --- compose.yml | 16 ++++++++++++++++ env.sample | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 compose.yml create mode 100644 env.sample diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..7d8b2e9 --- /dev/null +++ b/compose.yml @@ -0,0 +1,16 @@ +services: + icinga-satellite: + image: git.ao-it.net/docker/icinga-satellite:latest + hostname: ${ICINGA_SATELLITE_CN:-satellite.example.com} + restart: always + ports: + - 5665:5665 + volumes: + - ./files:/data + environment: + ICINGA2_JOIN_TICKET: ${ICINGA_JOIN_TICKET} + ICINGA2_PARENT_HOST: ${ICINGA_PARENT_HOST:-icinga.example.com} + ICINGA2_PARENT_CN: ${ICINGA_PARENT_CN:-icinga.example.com} + ICINGA2_PARENT_ZONE: ${ICINGA_PARENT_ZONE:-master} + ICINGA2_SATELLITE_CN: ${ICINGA_SATELLITE_CN:-satellite.example.com} + ICINGA2_SATELLITE_ZONE: ${ICINGA_SATELLITE_ZONE:-icinga-satellite} \ No newline at end of file diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..cd126f0 --- /dev/null +++ b/env.sample @@ -0,0 +1,6 @@ +ICINGA_JOIN_TICKET: # generate on master node with: icinga2 pki ticket --cn $ICINGA_SATELLITE_CN +ICINGA_PARENT_HOST: icinga.example.com # set ip is different from CN (FQDN) +ICINGA_PARENT_CN: icinga.example.com +ICINGA_PARENT_ZONE: master +ICINGA_SATELLITE_CN: satellite.example.com +ICINGA_SATELLITE_ZONE: icinga-satelliete-zone \ No newline at end of file