Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Barthelemy
puppet-freeipa
Commits
85c005ac
Commit
85c005ac
authored
Oct 19, 2018
by
Fabien Combernous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force yum to ipv4
parent
a9869b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
spec/spec_helper_acceptance.rb
spec/spec_helper_acceptance.rb
+6
-9
No files found.
spec/spec_helper_acceptance.rb
View file @
85c005ac
...
...
@@ -26,21 +26,18 @@ RSpec.configure do |c|
onlyif => 'systemctl status NetworkManager',
path => '/usr/bin:/sbin:/bin',
}
exec {'sysctl -w net.ipv6.conf.default.disable_ipv6=1':
onlyif => 'sysctl net.ipv6.conf.default.disable_ipv6|grep "^net.ipv6.conf.default.disable_ipv6 = 0$"',
path => '/usr/bin:/sbin:/bin',
}
exec {'sysctl -w net.ipv6.conf.all.disable_ipv6=1':
onlyif => 'sysctl net.ipv6.conf.all.disable_ipv6|grep "^net.ipv6.conf.all.disable_ipv6 = 0$"',
path => '/usr/bin:/sbin:/bin',
}
EOS
apply_manifest_on
(
host
,
pp
,
catch_failures:
true
)
yumipv4
=
<<-
EOS
exec {'echo "ip_resolve=4" >> /etc/yum.conf':
onlyif => 'grep -v "^ip_resolve=4" /etc/yum.conf',
path => '/usr/bin:/sbin:/bin',
}
EOS
apply_manifest_on
(
host
,
yumipv4
,
catch_failures:
true
)
if
fact
(
'os.family'
)
==
'RedHat'
apply_manifest_on
(
host
,
pp
,
catch_failures:
true
)
end
## Preconfigure master
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment