claranet / puppet-consul_template

A Puppet module to manage the config and jobs of Consul Template from Hashicorp
Apache License 2.0
30 stars 89 forks source link

Logrotation for consul-template #49

Closed mrh666 closed 8 years ago

mrh666 commented 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 }