graylog-labs / graylog2-puppet

[DEPRECATED] Puppet module to install and manage a Graylog 1.x system.
https://www.graylog.org/
MIT License
10 stars 28 forks source link

specify master node #33

Closed nomoresecrets closed 7 years ago

nomoresecrets commented 8 years ago

It would be nice to be able to specify the master node by $fqdn. Right now I have to use inheritance to define who's master and who's slave. Or using this (which works fine, but looks more like a hack to me):

$graylogmasterswitch = $fqdn ? { 'graylog2server01.domain' => true, default => false, }
class { '::graylog2::server':
  is_master => $graylogmasterswitch,
  ... }