SHARE
TWEET

Untitled

a guest Nov 1st, 2018 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class kafka::config inherits kafka {
  2.  
  3.   $conf_file = "${install_dir}/kafka/config/server.properties"
  4.  
  5.   file { $conf_file:
  6.     owner => 'kafka',
  7.     group => 'kafka',
  8.     mode => "644",
  9.     alias => "kafka-cfg",
  10.     require => File["kafka-app-dir"],
  11.     content => template("kafka/config/server.properties.erb"),
  12.   }
  13.  
  14.   $logsconf_file = "${install_dir}/kafka/config/log4j.properties"
  15.  
  16.   file { $logsconf_file:
  17.     owner => 'kafka',
  18.     group => 'kafka',
  19.     mode => "644",
  20.     alias => "kafka-logcfg",
  21.     require => File["kafka-app-dir", "kafka-logs-dir"],
  22.     content => template("kafka/config/log4j.properties.erb"),
  23.   }
  24.  
  25.   file { $kafka::params::logs_dir:
  26.     ensure => directory,
  27.     owner  => 'kafka',
  28.     group  => 'kafka',
  29.     mode   => "755",
  30.     alias  => "kafka-logs-dir",
  31.   }
  32.  
  33.   file { '/etc/init/kafka.conf':
  34.     content => template("kafka/init/kafka.conf.erb"),
  35.     mode => "0644",
  36.     alias => 'kafka-init',
  37.     require => File[$conf_file],
  38.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top