-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
another round of bugfixes, added more under tests dir, updates README
- Loading branch information
Showing
9 changed files
with
69 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# NOTE: don't run these tests on Production servers | ||
# | ||
|
||
# if you are/were using 0.x.x syntax, please check file vcl_class_config_by_params.pp | ||
# to see the diff between syntax for versions 0.x.x and 1.x.x | ||
# | ||
class { 'varnish::vcl': | ||
backends => {}, # without this line you will not be able to redefine backend 'default' | ||
} | ||
|
||
# configure single backend, named 'default' | ||
varnish::backend { 'default': host => '172.16.0.1', port => '80' } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# NOTE: don't run these tests on Production servers | ||
# | ||
|
||
# if you are/were using 0.x.x syntax, please check file vcl_class_config_by_params.pp | ||
# to see the diff between syntax for versions 0.x.x and 1.x.x | ||
# | ||
class { 'varnish::vcl': } | ||
|
||
# configure backends | ||
varnish::backend { 'srv1': host => '172.16.0.1', port => '80' } | ||
varnish::backend { 'srv2': host => '172.16.0.2', port => '80' } | ||
|
||
# configure selectors | ||
varnish::selector { 'srv1': condition => 'req.url ~ "^/server1"' } | ||
varnish::selector { 'srv2': condition => 'true' } # will be used as default by Varnish |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# NOTE: don't run these tests on Production servers | ||
# | ||
|
||
# if you are/were using 0.x.x syntax, please check file vcl_class_config_by_params.pp | ||
# to see the diff between syntax for versions 0.x.x and 1.x.x | ||
# | ||
class { 'varnish::vcl': } | ||
|
||
# configure probes | ||
varnish::probe { 'health_check1': url => '/health_check_url1' } | ||
varnish::probe { 'health_check2': | ||
window => '8', | ||
timeout => '5s', | ||
threshold => '3', | ||
interval => '5s', | ||
request => [ "GET /healthCheck2 HTTP/1.1", "Host: www.example1.com", "Connection: close" ] | ||
} | ||
# configure backends | ||
varnish::backend { 'srv1': host => '172.16.0.1', port => '80', probe => 'health_check1' } | ||
varnish::backend { 'srv2': host => '172.16.0.2', port => '80', probe => 'health_check2' } | ||
# configure selectors | ||
varnish::selector { 'srv1': condition => 'req.url ~ "^/url_on_srv1"' } | ||
varnish::selector { 'srv2': condition => 'true' } # will be used as default by Varnish |
This file contains 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