Use variables for kafka config/log dirs as they can be different,
starting from OC 4.1
Change-Id: Ib1de79627ae889794b63d778b5cc861f43972198
Related-PROD: PROD-25533
diff --git a/opencontrail/control/single.yml b/opencontrail/control/single.yml
index 2ba745b..ef798bd 100644
--- a/opencontrail/control/single.yml
+++ b/opencontrail/control/single.yml
@@ -4,7 +4,7 @@
parameters:
_param:
opencontrail_kafka_log_cleanup_mtime: '+7'
- opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
+ opencontrail_kafka_log_dir: '/usr/share/kafka/logs'
# Temprorary fix for MOS9 packages to pin old version of kafka
linux:
system:
@@ -20,7 +20,7 @@
- nf_conntrack_ipv4
job:
kafka_logs_cleanup:
- command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
+ command: "find ${_param:opencontrail_kafka_log_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
identifier: kafka_logs_cleanup
hour: 0
minute: 0