diff --git a/ansible/roles/life_noc/defaults/main.yml b/ansible/roles/life_noc/defaults/main.yml index 50d0941..0635185 100644 --- a/ansible/roles/life_noc/defaults/main.yml +++ b/ansible/roles/life_noc/defaults/main.yml @@ -4,8 +4,6 @@ life_noc_plugin_dir: /usr/lib/nagios/plugins life_noc_validate_icinga: true life_noc_reload_icinga: true life_noc_bpm_deploy_enabled: false -life_noc_project_root: /opt/life-noc -life_noc_bpm_deploy_enabled: false life_noc_bpm_destination_dir: /etc/icingaweb2/modules/businessprocess/processes life_noc_bpm_target_file: /etc/icingaweb2/modules/businessprocess/processes/life-noc.json life_noc_owner: root diff --git a/icinga/services/infrastructure.conf b/icinga/services/infrastructure.conf deleted file mode 100644 index 5cfc002..0000000 --- a/icinga/services/infrastructure.conf +++ /dev/null @@ -1,20 +0,0 @@ -apply Service "Infra-test-backups" { - import "service_echeance" - vars.date_echeance = "2026-03-01" - notes = "Test restauration sauvegardes" - assign where host.name == "life-noc" -} - -apply Service "Infra-test-ups" { - import "service_echeance" - vars.date_echeance = "2026-07-01" - notes = "Test UPS infrastructure" - assign where host.name == "life-noc" -} - -apply Service "Infra-verification-firewall" { - import "service_echeance" - vars.date_echeance = "2026-03-15" - notes = "Verification firewall" - assign where host.name == "life-noc" -} diff --git a/icinga/services/stock.conf b/icinga/services/stock.conf deleted file mode 100644 index 4f9ceb5..0000000 --- a/icinga/services/stock.conf +++ /dev/null @@ -1,13 +0,0 @@ -apply Service "Stock-rotation-nourriture" { - import "service_echeance" - vars.date_echeance = "2026-03-01" - notes = "Rotation stock alimentaire" - assign where host.name == "life-noc" -} - -apply Service "Stock-reserve-eau" { - import "service_echeance" - vars.date_echeance = "2026-05-01" - notes = "Verification reserve eau" - assign where host.name == "life-noc" -} diff --git a/scripts/generate_services.py b/scripts/generate_services.py index b05db8e..549b1d5 100644 --- a/scripts/generate_services.py +++ b/scripts/generate_services.py @@ -101,6 +101,9 @@ def main() -> int: OUTPUT_DIR.mkdir(parents=True, exist_ok=True) + for existing_conf in OUTPUT_DIR.glob("*.conf"): + existing_conf.unlink() + generated_files = [] for raw_domain, services in domains.items():