Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Barthelemy
puppet-freeipa
Commits
ec4de5e9
Commit
ec4de5e9
authored
Oct 20, 2018
by
Scott Barthelemy
Committed by
Fabien Combernous
Oct 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "specify versionsof used modules into file spec_helper_acceptance.rb"
parent
9ca94322
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
metadata.json
metadata.json
+5
-1
spec/spec_helper_acceptance.rb
spec/spec_helper_acceptance.rb
+12
-9
No files found.
metadata.json
View file @
ec4de5e9
...
...
@@ -10,7 +10,11 @@
"dependencies"
:
[
{
"name"
:
"puppetlabs-stdlib"
,
"version_requirement"
:
">= 5.0.0 < 6.0.0"
"version_requirement"
:
">= 4.25.0 < 6.0.0"
},
{
"name"
:
"stahnma-epel"
,
"version_requirement"
:
">= 1.3.1 < 2.0.0"
}
],
"operatingsystem_support"
:
[
...
...
spec/spec_helper_acceptance.rb
View file @
ec4de5e9
...
...
@@ -3,22 +3,25 @@ require 'beaker-puppet'
require
'beaker/puppet_install_helper'
require
'beaker/module_install_helper'
# PUPPET_INSTALL_VERSION = 5+
run_puppet_install_helper
install_module_on
(
hosts
)
install_module_dependencies_on
(
hosts
)
# The module saz-resolv_conf, used by this helper, requires puppetlabs-stdlibs < 5.0.0.
# The puppet-freeipa dependencies descrived by metadata.json installs puppetlabs-stdlib > 5.0.0.
# It is prefered, for the moment, to not use the helping function
# install_module_dependencies_on() until saz-resolv_conf accepts puppetlabs-stdlib > 5.0.0
#
# By this way, users of puppet-freeipa can use puppetlabs-stdlibs version > 5.0.0.
# and acceptance tests can use puppetlabs-stdlibs version < 5.0.0
#install_module_dependencies_on(hosts)
RSpec
.
configure
do
|
c
|
# Configure all nodes in nodeset
c
.
before
:suite
do
hosts
.
each
do
|
host
|
on
host
,
puppet
(
'module'
,
'install'
,
'puppetlabs-concat'
)
on
host
,
puppet
(
'module'
,
'install'
,
'puppetlabs-stdlib'
)
on
host
,
puppet
(
'module'
,
'install'
,
'crayfishx-firewalld'
)
on
host
,
puppet
(
'module'
,
'install'
,
'puppet-selinux'
)
on
host
,
puppet
(
'module'
,
'install'
,
'saz-resolv_conf'
)
on
host
,
puppet
(
'module'
,
'install'
,
'stahnma-epel'
)
install_module_from_forge_on
(
host
,
'saz-resolv_conf'
,
'>= 4.0.0 < 5.0.0'
)
install_module_from_forge_on
(
host
,
'puppetlabs-stdlib'
,
'>= 4.25.0 < 5.0.0'
)
install_module_from_forge_on
(
host
,
'stahnma-epel'
,
'>= 1.3.1 < 2.0.0'
)
pp
=
<<-
EOS
exec { 'stop network manager':
...
...
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