File tree Expand file tree Collapse file tree 9 files changed +46
-4
lines changed Expand file tree Collapse file tree 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 688688 end
689689
690690 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"}' }
692692
693693 it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . with_content ( %r{ ssl on;} ) }
694694 end
695695
696696 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"}' }
698698
699699 it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . without_content ( %r{ ssl on;} ) }
700700 end
701701
702702 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"}' }
704704 let :params do
705705 default_params . merge (
706706 http2 : 'on' ,
714714 end
715715
716716 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"}' }
718718
719719 it { is_expected . to contain_concat__fragment ( "#{ title } -ssl-header" ) . with_content ( %r{^\s +http2\s +off;} ) }
720720 end
You can’t perform that action at this time.
0 commit comments