File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44describe 'fqdn_rand_string function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
55 describe 'success' do
66 let ( :facts_d ) do
7- if fact ( 'is_pe' , '--puppet' ) == "true"
8- if fact ( 'osfamily' ) =~ /windows/i
9- if fact ( 'kernelmajversion' ) . to_f < 6.0
10- 'c:/documents and settings/all users/application data/puppetlabs/facter/facts.d'
7+ puppet_version = ( on default , puppet ( '--version' ) ) . output . chomp
8+ if puppet_version < '4.0.0'
9+ if fact ( 'is_pe' , '--puppet' ) == "true"
10+ if fact ( 'osfamily' ) =~ /windows/i
11+ if fact ( 'kernelmajversion' ) . to_f < 6.0
12+ 'c:/documents and settings/all users/application data/puppetlabs/facter/facts.d'
13+ else
14+ 'c:/programdata/puppetlabs/facter/facts.d'
15+ end
1116 else
12- 'c:/programdata /puppetlabs/facter/facts.d'
17+ '/etc /puppetlabs/facter/facts.d'
1318 end
1419 else
15- '/etc/puppetlabs/ facter/facts.d'
20+ '/etc/facter/facts.d'
1621 end
1722 else
1823 '/etc/facter/facts.d'
Original file line number Diff line number Diff line change 44describe 'fqdn_rotate function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
55 describe 'success' do
66 let ( :facts_d ) do
7- if fact ( 'is_pe' , '--puppet' ) == "true"
8- if fact ( 'osfamily' ) =~ /windows/i
9- if fact ( 'kernelmajversion' ) . to_f < 6.0
10- 'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
7+ puppet_version = ( on default , puppet ( '--version' ) ) . output . chomp
8+ if puppet_version < '4.0.0'
9+ if fact ( 'is_pe' , '--puppet' ) == "true"
10+ if fact ( 'osfamily' ) =~ /windows/i
11+ if fact ( 'kernelmajversion' ) . to_f < 6.0
12+ 'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
13+ else
14+ 'C:/ProgramData/PuppetLabs/facter/facts.d'
15+ end
1116 else
12- 'C:/ProgramData/PuppetLabs /facter/facts.d'
17+ '/etc/puppetlabs /facter/facts.d'
1318 end
1419 else
15- '/etc/puppetlabs/ facter/facts.d'
20+ '/etc/facter/facts.d'
1621 end
1722 else
1823 '/etc/facter/facts.d'
You can’t perform that action at this time.
0 commit comments