Skip to content

Commit 4ef2f36

Browse files
committed
(rodjek#771) Set a default dummy ipaddress6 fact
Puppet 6.9.0 started setting a `serverip6` server fact which is set using the value of the `ipaddress6` fact. If the fact set(s) provided by FacterDB don't have an `ipaddress6` fact set, then the normal Facter fact will be resolved, which can result in Ruby trying to load Windows only gems on Linux. Fixes rodjek#771
1 parent 727cb33 commit 4ef2f36

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/rspec-puppet/support.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,11 @@ def facts_hash(node)
226226
}
227227

228228
node_facts = {
229-
'hostname' => node.split('.').first,
230-
'fqdn' => node,
231-
'domain' => node.split('.', 2).last,
232-
'clientcert' => node,
229+
'hostname' => node.split('.').first,
230+
'fqdn' => node,
231+
'domain' => node.split('.', 2).last,
232+
'clientcert' => node,
233+
'ipaddress6' => 'FE80:0000:0000:0000:AAAA:AAAA:AAAA',
233234
}
234235

235236
networking_facts = {

0 commit comments

Comments
 (0)