Skip to content

Commit 0e28513

Browse files
authored
Format kafka storage after setup
1 parent a593e90 commit 0e28513

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

modules/akvorado/manifests/init.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
match => 'log.dirs=/tmp/kafka-logs',
7878
notify => Service['kafka'],
7979
}
80+
-> exec { 'format-kafka-storage':
81+
command => '/var/lib/kafka/bin/kafka-storage.sh format -t $(/var/lib/kafka/bin/kafka-storage.sh random-uuid) -c /var/lib/kafka/config/server.properties --standalone',
82+
refreshonly => true,
83+
user => 'kafka',
84+
}
8085
service { 'kafka':
8186
ensure => running,
8287
enable => true,

0 commit comments

Comments
 (0)