File tree Expand file tree Collapse file tree 5 files changed +46
-48
lines changed Expand file tree Collapse file tree 5 files changed +46
-48
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ PuppetLint.configuration.send("disable_80chars")
5
5
PuppetLint . configuration . send ( 'disable_class_parameter_defaults' )
6
6
PuppetLint . configuration . send ( 'disable_class_inherits_from_params_class' )
7
7
PuppetLint . configuration . send ( 'disable_documentation' )
8
- PuppetLint . configuration . send ( 'disable_autoloader_layout' )
9
- PuppetLint . configuration . send ( 'disable_nested_classes_or_defines' )
10
8
PuppetLint . configuration . log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"
11
9
PuppetLint . configuration . fail_on_warnings = true
12
10
Original file line number Diff line number Diff line change 28
28
}
29
29
}
30
30
}
31
-
32
- define varnish::acl_member (
33
- $varnish_fqdn ,
34
- $acl ,
35
- $host ,
36
- ) {
37
- unless defined (Concat::Fragment[" ${acl} -acl_head" ]) {
38
- concat::fragment { "${acl}-acl_head" :
39
- target => " ${varnish::vcl::includedir} /acls.vcl" ,
40
- content => " acl ${acl} {\n " ,
41
- order => " 02-${acl} -1-0" ,
42
- notify => Service[' varnish' ],
43
- } -> concat::fragment { " ${acl} -acl_tail" :
44
- target => " ${varnish::vcl::includedir} /acls.vcl" ,
45
- content => " }\n " ,
46
- order => " 02-${acl} -3-0" ,
47
- notify => Service[' varnish' ],
48
- }
49
- }
50
- $hosts = [$host ]
51
- concat::fragment { "${acl}-acl_${host}" :
52
- target => " ${varnish::vcl::includedir} /acls.vcl" ,
53
- content => template (' varnish/includes/acls_body.vcl.erb' ),
54
- order => " 02-${acl} -2-${host} " ,
55
- notify => Service[' varnish' ],
56
- }
57
- }
Original file line number Diff line number Diff line change
1
+ # Defined type varnish::acl_member
2
+ define varnish::acl_member (
3
+ $varnish_fqdn ,
4
+ $acl ,
5
+ $host ,
6
+ ) {
7
+ unless defined (Concat::Fragment[" ${acl} -acl_head" ]) {
8
+ concat::fragment { "${acl}-acl_head" :
9
+ target => " ${varnish::vcl::includedir} /acls.vcl" ,
10
+ content => " acl ${acl} {\n " ,
11
+ order => " 02-${acl} -1-0" ,
12
+ notify => Service[' varnish' ],
13
+ } -> concat::fragment { " ${acl} -acl_tail" :
14
+ target => " ${varnish::vcl::includedir} /acls.vcl" ,
15
+ content => " }\n " ,
16
+ order => " 02-${acl} -3-0" ,
17
+ notify => Service[' varnish' ],
18
+ }
19
+ }
20
+ $hosts = [$host ]
21
+ concat::fragment { "${acl}-acl_${host}" :
22
+ target => " ${varnish::vcl::includedir} /acls.vcl" ,
23
+ content => template (' varnish/includes/acls_body.vcl.erb' ),
24
+ order => " 02-${acl} -2-${host} " ,
25
+ notify => Service[' varnish' ],
26
+ }
27
+ }
Original file line number Diff line number Diff line change 67
67
validate_array($unset_headers )
68
68
validate_array($unset_headers_debugips )
69
69
70
- # define include file type
71
- define includefile {
72
- $selectors = $varnish::vcl::selectors
73
- concat { "${varnish::vcl::includedir}/${title}.vcl" :
74
- owner => ' root' ,
75
- group => ' root' ,
76
- mode => ' 0444' ,
77
- notify => Service[' varnish' ],
78
- require => File [$varnish::vcl::includedir ],
79
- before => Exec[' restart-varnish' ],
80
- }
81
-
82
- concat::fragment { "${title}-header" :
83
- target => " ${varnish::vcl::includedir} /${title} .vcl" ,
84
- content => " # File managed by Puppet\n " ,
85
- order => ' 01' ,
86
- }
87
- }
88
-
89
70
# select template to use
90
71
if $template {
91
72
$template_vcl = $template
Original file line number Diff line number Diff line change
1
+ # Defined type varnish::vcl::includefile
2
+ #
3
+ define varnish::vcl::includefile {
4
+ $selectors = $varnish::vcl::selectors
5
+ concat { "${varnish::vcl::includedir}/${title}.vcl" :
6
+ owner => ' root' ,
7
+ group => ' root' ,
8
+ mode => ' 0444' ,
9
+ notify => Service[' varnish' ],
10
+ require => File [$varnish::vcl::includedir ],
11
+ before => Exec[' restart-varnish' ],
12
+ }
13
+
14
+ concat::fragment { "${title}-header" :
15
+ target => " ${varnish::vcl::includedir} /${title} .vcl" ,
16
+ content => " # File managed by Puppet\n " ,
17
+ order => ' 01' ,
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments