Last active
December 14, 2015 00:49
-
-
Save garlandkr/5001603 to your computer and use it in GitHub Desktop.
puppet template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon_opts=(-a -w "$logfile" -D -F "{ \"remote_addr\": \"%h\", | |
\"remote_user\": \"%u\", | |
\"x_forwarded_for\": \"%{X-Forwarded-For}i\", | |
\"hit_miss\": \"%{Varnish:hitmiss}x\", | |
\"body_bytes_sent\": \"%b\", | |
\"request_time\": \"%{Varnish:time_firstbyte}x\", | |
\"status\": \"%s\", | |
\"request\": \"%r\",\"host\": \"%{host}i\", | |
\"request_method\": \"%m\", | |
\"time_first_byte\": \"%{Varnish:time_firstbyte}x\", | |
\"handling\": \"%{Varnish:handling}x\", | |
\"http_referrer\": \"%{Referrer}i\", | |
\"http_user_agent\": \"%{User-agent}i\"}\"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the exact text as it should be in /etc/init.d/varnishncsa
puppet needs Hiera 1.0.x or newer to properly interpret %{}
The work around is to put all instances of %{} directly into the template file.