Manage the parent directories of the kafka logdirs
In staging and vagrant vms, the logdir is not stored on a mountpoint This commit will allow avoid manual actions when it's not needed
Related to T2790
Test Plan
- octocatalog-diff for
journal0.internal.staging.swh.network
diff origin/production/journal0.internal.staging.swh.network current/journal0.internal.staging.swh.network
*******************************************
+ Exec[create /srv/kafka/logdir] =>
parameters =>
"command": "mkdir -p /srv/kafka/logdir",
"creates": "/srv/kafka/logdir",
"path": [
"/bin",
"/usr/bin",
"/sbin",
"/usr/sbin"
]
*******************************************
*** End octocatalog-diff on journal0.internal.staging.swh.network
*octocatalog-diff for kafka1.internal.softwareheritage.org
diff origin/production/kafka1.internal.softwareheritage.org current/kafka1.internal.softwareheritage.org
*******************************************
+ Exec[create /srv/kafka/logdir] =>
parameters =>
"command": "mkdir -p /srv/kafka/logdir",
"creates": "/srv/kafka/logdir",
"path": [
"/bin",
"/usr/bin",
"/sbin",
"/usr/sbin"
]
*******************************************
*** End octocatalog-diff on kafka1.internal.softwareheritage.org
Migrated from D4497 (view on Phabricator)