File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,18 @@ def facts_hash(node)
241
241
'hostname' => node . split ( '.' ) . first ,
242
242
'fqdn' => node ,
243
243
'domain' => node . split ( '.' , 2 ) . last ,
244
- 'clientcert' => node ,
245
- 'ipaddress6' => 'FE80:0000:0000:0000:AAAA:AAAA:AAAA'
244
+ 'clientcert' => node
246
245
}
247
246
247
+ # Puppet 6.9.0 started setting a `serverip6` server fact which is set
248
+ # using the value of the `ipaddress6` fact. If the fact set(s) provided
249
+ # by FacterDB don't have an `ipaddress6` fact set, then the normal Facter
250
+ # fact will be resolved, which can result in Ruby trying to load Windows
251
+ # only gems on Linux. This is only a problem if facter is used.
252
+ if RSpec . configuration . facter_implementation . to_sym == :facter
253
+ node_facts [ 'ipaddress6' ] = 'FE80:0000:0000:0000:AAAA:AAAA:AAAA'
254
+ end
255
+
248
256
networking_facts = {
249
257
'hostname' => node_facts [ 'hostname' ] ,
250
258
'fqdn' => node_facts [ 'fqdn' ] ,
You can’t perform that action at this time.
0 commit comments