purplehazech / puppet-syslogng

Puppet module for managing syslog-ng.
http://forge.puppetlabs.com/purplehazech/syslogng
GNU Affero General Public License v3.0
4 stars 12 forks source link

50% done - network sources (listeners) #9

Closed omarqureshi closed 9 years ago

omarqureshi commented 9 years ago

Add the ability to specify network sources as part of the initialization script. A network source has the following API:

  class { 'syslogng':
    logpaths => {
      'puppet-agent' => {}
    },
    purge_conf_dir => true,
    network_sources => {
      'net' => {
        source_ip => '0.0.0.0',
        tcp_port => 1000,
        udp_port => 1000,
        tcp_max_connections => 500,
      }
    }
  }

And generates the following output in /etc/syslog-ng/syslog-ng.conf.d/source.d/net.conf

  source s_net {
    tcp(ip(0.0.0.0) port(1000) max_connections(500));
    udp(ip(0.0.0.0) port(1000));
  };

Currently does not handle TLS enabled listeners