Closed mrh666 closed 8 years ago
Usage example: class { 'consul_template': log_level => 'debug', consul_wait => '5s:30s', logrotate_on => true, logrotate_compress => 'nocompress', logrotate_files => 4, logrotate_period => 'daily', } It will create /etc/logrotate.d/consul-template with default content: /var/log/consul-template.log{ daily minsize 1M missingok dateext rotate 4 nocompress create 644 root root postrotate /sbin/service consul-template restart 2> /dev/null || true endscript }
Usage example: class { 'consul_template': log_level => 'debug', consul_wait => '5s:30s', logrotate_on => true, logrotate_compress => 'nocompress', logrotate_files => 4, logrotate_period => 'daily', } It will create /etc/logrotate.d/consul-template with default content: /var/log/consul-template.log{ daily minsize 1M missingok dateext rotate 4 nocompress create 644 root root postrotate /sbin/service consul-template restart 2> /dev/null || true endscript }