File tree 9 files changed +46
-4
lines changed
9 files changed +46
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ {}
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.18.0'
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.22.1'
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.14.1'
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.20.1'
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.18.0'
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ nginx::nginx_version : ' 1.18.0'
Original file line number Diff line number Diff line change
1
+ ---
2
+ version : 5
3
+
4
+ defaults : # Used for any hierarchy level that omits these keys.
5
+ datadir : data # This path is relative to hiera.yaml's directory.
6
+ data_hash : yaml_data # Use the built-in YAML backend.
7
+
8
+ hierarchy :
9
+ - name : " osfamily/major release"
10
+ paths :
11
+ # Used to distinguish between Debian and Ubuntu
12
+ - " os/%{facts.os.name}/%{facts.os.release.major}.yaml"
13
+ - " os/%{facts.os.family}/%{facts.os.release.major}.yaml"
14
+ # Used for Solaris
15
+ - " os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
16
+ - name : " osfamily"
17
+ paths :
18
+ - " os/%{facts.os.name}.yaml"
19
+ - " os/%{facts.os.family}.yaml"
20
+ - name : ' common'
21
+ path : ' common.yaml'
Original file line number Diff line number Diff line change 688
688
end
689
689
690
690
context 'with fact nginx_version=1.14.1' do
691
- let ( :facts ) { facts . merge ( nginx_version : ' 1.14.1' ) }
691
+ let ( :pre_condition ) { 'class {"nginx": nginx_version => " 1.14.1"}' }
692
692
693
693
it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . with_content ( %r{ ssl on;} ) }
694
694
end
695
695
696
696
context 'with fact nginx_version=1.15.1' do
697
- let ( :facts ) { facts . merge ( nginx_version : ' 1.15.1' ) }
697
+ let ( :pre_condition ) { 'class {"nginx": nginx_version => " 1.15.1"}' }
698
698
699
699
it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . without_content ( %r{ ssl on;} ) }
700
700
end
701
701
702
702
context 'http2 on with fact nginx_version=1.25.1' do
703
- let ( :facts ) { facts . merge ( nginx_version : ' 1.25.1' ) }
703
+ let ( :pre_condition ) { 'class {"nginx": nginx_version => " 1.25.1"}' }
704
704
let :params do
705
705
default_params . merge (
706
706
http2 : 'on' ,
714
714
end
715
715
716
716
context 'with fact nginx_version=1.25.1' do
717
- let ( :facts ) { facts . merge ( nginx_version : ' 1.25.1' ) }
717
+ let ( :pre_condition ) { 'class {"nginx": nginx_version => " 1.25.1"}' }
718
718
719
719
it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . with_content ( %r{^\s +http2\s +off;} ) }
720
720
end
You can’t perform that action at this time.
0 commit comments