We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current code for backend selection is broken with templates for vcl version 4. It seems this fork has been created from an early state of maxchk's repository before all of this took place: https://github.com/maxchk/puppet-varnish/commits/develop/templates/includes/backendselection4.vcl.erb
if (req.http.host ~ "^my-host\.com$") { set req.backend_hint = director_name; }
if (req.http.host ~ "^my-host\.com$") { set req.backend_hint = director_name.backend(); }
OR
if (req.http.host ~ "^my-host\.com$") { set req.backend_hint = backend_name; }
Jul 06 15:24:08 lb-ng varnishd[215185]: Message from VCC-compiler: Jul 06 15:24:08 lb-ng varnishd[215185]: Expression has type directors.round_robin, expected BACKEND Jul 06 15:24:08 lb-ng varnishd[215185]: ('/etc/varnish/includes/backendselection.vcl' Line 3 Pos 26) -- (Pos 28) Jul 06 15:24:08 lb-ng varnishd[215185]: set req.backend_hint = director_name; Jul 06 15:24:08 lb-ng varnishd[215185]: -------------------------###- Jul 06 15:24:08 lb-ng varnishd[215185]: Running VCC-compiler failed, exited with 2
See https://varnish-cache.org/docs/6.0/users-guide/vcl-backends.html#directors for varnish documentation.
I wonder if this has never been tested with version 4 templates?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current code for backend selection is broken with templates for vcl version 4.
It seems this fork has been created from an early state of maxchk's repository before all of this took place: https://github.com/maxchk/puppet-varnish/commits/develop/templates/includes/backendselection4.vcl.erb
Affected Puppet, Ruby, OS and module versions/distributions
What are you seeing
What behavior did you expect instead
OR
Output log
Any additional information you'd like to impart
See https://varnish-cache.org/docs/6.0/users-guide/vcl-backends.html#directors for varnish documentation.
I wonder if this has never been tested with version 4 templates?
The text was updated successfully, but these errors were encountered: