optimisations
This commit is contained in:
parent
dda0f99dd3
commit
6e4026b541
4 changed files with 3 additions and 35 deletions
|
|
@ -4,8 +4,6 @@ life_noc_plugin_dir: /usr/lib/nagios/plugins
|
||||||
life_noc_validate_icinga: true
|
life_noc_validate_icinga: true
|
||||||
life_noc_reload_icinga: true
|
life_noc_reload_icinga: true
|
||||||
life_noc_bpm_deploy_enabled: false
|
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_destination_dir: /etc/icingaweb2/modules/businessprocess/processes
|
||||||
life_noc_bpm_target_file: /etc/icingaweb2/modules/businessprocess/processes/life-noc.json
|
life_noc_bpm_target_file: /etc/icingaweb2/modules/businessprocess/processes/life-noc.json
|
||||||
life_noc_owner: root
|
life_noc_owner: root
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
}
|
|
||||||
|
|
@ -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"
|
|
||||||
}
|
|
||||||
|
|
@ -101,6 +101,9 @@ def main() -> int:
|
||||||
|
|
||||||
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
for existing_conf in OUTPUT_DIR.glob("*.conf"):
|
||||||
|
existing_conf.unlink()
|
||||||
|
|
||||||
generated_files = []
|
generated_files = []
|
||||||
|
|
||||||
for raw_domain, services in domains.items():
|
for raw_domain, services in domains.items():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue