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

Add graylog2-radio management #3

Closed renanvicente closed 10 years ago

renanvicente commented 10 years ago

Add total management over graylog2-radio for RedHat and Debian based.

Tested using graylog2-radio version 0.20 and 0.21.

example with default setting for 0.20

class {'graylog2::repo': version => '0.20' }-> class {'graylog2::radio': }

and for 0.21

class {'graylog2::repo': version => '0.21' }-> class {'graylog2::radio': }

using graylog2-radio with amqp and graylog2-server in different machines.

class {'graylog2::repo': version => '0.20' }-> class {'graylog2::radio': graylog2_server_uris =>['http://172.16.0.200:12900/'], rest_listen_uri => 'http://172.16.0.205:12950/', rest_transport_uri => 'http://172.16.0.205:12950/', amqp_broker_hostname => '172.16.0.207', amqp_broker_username => 'guest', amqp_broker_password => 'guest', }

attributes for all parameters in graylog2-radio.conf or the default file for init ( java options and graylog2-radio args).

if necessary has attributes for a different template: template_config_file and template_file ( default init file).

bernd commented 10 years ago

Thank you! Some comments inline.

renanvicente commented 10 years ago

Sorry I typed wrong one line. I already fix this problem. I am leaving to work at the moment, when I get there I will add some examples of using template here.

renanvicente commented 10 years ago

example of using custom templates.

class {'graylog2::repo': version => '0.20' }-> class {'graylog2::radio': template_config_file => 'custom-graylog2-radio.conf.erb', template_file => 'custom-radio.sysconfig.erb', }

the custom files need to be stored in graylog2 module templates directory.

renanvicente commented 10 years ago

I commited the change of graylog2::server::end to graylog2::radio::end

bernd commented 10 years ago

Thank you!