projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syslog-ng: define fastly destination on all log hosts, not just lully
[mirror/dsa-puppet.git]
/
modules
/
varnish
/
manifests
/
config.pp
diff --git
a/modules/varnish/manifests/config.pp
b/modules/varnish/manifests/config.pp
index
e45edd8
..
dc407f9
100644
(file)
--- a/
modules/varnish/manifests/config.pp
+++ b/
modules/varnish/manifests/config.pp
@@
-12,6
+12,7
@@
define varnish::config (
case $ensure {
present: {
include varnish::base
case $ensure {
present: {
include varnish::base
+ include stretch::network_online
if ! ($source or $content) {
fail ( "No configuration found for ${name}" )
if ! ($source or $content) {
fail ( "No configuration found for ${name}" )
@@
-19,8
+20,10
@@
define varnish::config (
$listenarr = [] + $listen
$listenstr = join(prefix($listenarr, "-a "), " ")
$listenarr = [] + $listen
$listenstr = join(prefix($listenarr, "-a "), " ")
- systemd::override { 'varnish':
+
dsa_
systemd::override { 'varnish':
content => @("EOF"),
content => @("EOF"),
+ [Unit]
+ After=network-online.target
[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F ${listenstr} -T localhost:6082 -f /etc/varnish/${name}.vcl -S /etc/varnish/secret -s ${backend}
[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F ${listenstr} -T localhost:6082 -f /etc/varnish/${name}.vcl -S /etc/varnish/secret -s ${backend}