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
281646cb
Commit
281646cb
authored
Oct 12, 2018
by
Scott Barthelemy
Committed by
Fabien Combernous
Oct 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "configure epel sources into yum with puppet module stahnma-epel"
parent
207cf90e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
18 deletions
+9
-18
.fixtures.yml
.fixtures.yml
+4
-1
manifests/install.pp
manifests/install.pp
+1
-5
spec/classes/init_spec.rb
spec/classes/init_spec.rb
+3
-12
spec/spec_helper_acceptance.rb
spec/spec_helper_acceptance.rb
+1
-0
No files found.
.fixtures.yml
View file @
281646cb
fixtures
:
repositories
:
stdlib
:
"
git://github.com/puppetlabs/puppetlabs-stdlib"
\ No newline at end of file
stdlib
:
'
https://github.com/puppetlabs/puppetlabs-stdlib.git'
epel
:
'
https://github.com/stahnma/puppet-module-epel.git'
symlinks
:
freeipa
:
"
#{source_dir}"
\ No newline at end of file
manifests/install.pp
View file @
281646cb
...
...
@@ -9,11 +9,7 @@
class
freeipa::install
{
if
$freeipa::install_epel
{
ensure_resource
(
'package'
,
'epel-release'
,
{
'ensure'
=>
'present'
},
)
include
epel
}
if
$freeipa::manage_host_entry
{
...
...
spec/classes/init_spec.rb
View file @
281646cb
...
...
@@ -43,14 +43,13 @@ describe 'freeipa', type: :class do
it
{
is_expected
.
to
contain_package
(
'ipa-server-dns'
)
}
it
{
is_expected
.
to
contain_package
(
'bind-dyndb-ldap'
)
}
it
{
is_expected
.
to
contain_package
(
'kstart'
)
}
it
{
is_expected
.
to
contain_package
(
'epel-release'
)
}
it
{
is_expected
.
to
contain_package
(
'ipa-server'
)
}
it
{
is_expected
.
to
contain_package
(
'openldap-clients'
)
}
it
{
is_expected
.
to
contain_package
(
'sssd-common'
)
}
it
{
is_expected
.
not_to
contain_package
(
'ipa-client'
)
}
it
{
is_expected
.
to
compile
}
it
{
is_expected
.
to
compile
.
with_all_deps
}
end
context
'with idstart out of range'
do
...
...
@@ -86,7 +85,6 @@ describe 'freeipa', type: :class do
{
ipa_role:
'master'
,
domain:
'rspec.example.lan'
,
# admin_password: 'rspecrspec123',
directory_services_password:
'rspecrspec123'
,
}
end
...
...
@@ -100,7 +98,6 @@ describe 'freeipa', type: :class do
ipa_role:
'master'
,
domain:
'rspec.example.lan'
,
admin_password:
'rspecrspec123'
,
# directory_services_password: 'rspecrspec123',
}
end
...
...
@@ -174,14 +171,13 @@ describe 'freeipa', type: :class do
it
{
is_expected
.
to
contain_package
(
'ipa-server-dns'
)
}
it
{
is_expected
.
to
contain_package
(
'bind-dyndb-ldap'
)
}
it
{
is_expected
.
to
contain_package
(
'kstart'
)
}
it
{
is_expected
.
to
contain_package
(
'epel-release'
)
}
it
{
is_expected
.
to
contain_package
(
'ipa-server'
)
}
it
{
is_expected
.
to
contain_package
(
'openldap-clients'
)
}
it
{
is_expected
.
to
contain_package
(
'sssd-common'
)
}
it
{
is_expected
.
not_to
contain_package
(
'ipa-client'
)
}
it
{
is_expected
.
to
compile
}
it
{
is_expected
.
to
compile
.
with_all_deps
}
end
context
'missing ipa_master_fqdn'
do
...
...
@@ -189,7 +185,6 @@ describe 'freeipa', type: :class do
{
ipa_role:
'replica'
,
domain:
'rspec.example.lan'
,
# ipa_master_fqdn: 'ipa-server-1.rspec.example.lan',
domain_join_password:
'rspecrspec123'
,
}
end
...
...
@@ -216,7 +211,6 @@ describe 'freeipa', type: :class do
ipa_role:
'replica'
,
domain:
'rspec.example.lan'
,
ipa_master_fqdn:
'ipa-server-1.rspec.example.lan'
,
# domain_join_password: 'rspecrspec123',
}
end
...
...
@@ -256,7 +250,6 @@ describe 'freeipa', type: :class do
it
{
is_expected
.
to
contain_package
(
'sssd-common'
)
}
it
{
is_expected
.
to
contain_package
(
'kstart'
)
}
it
{
is_expected
.
to
contain_package
(
'epel-release'
)
}
it
{
is_expected
.
not_to
contain_package
(
'ipa-server-dns'
)
}
it
{
is_expected
.
not_to
contain_package
(
'bind-dyndb-ldap'
)
}
...
...
@@ -264,7 +257,7 @@ describe 'freeipa', type: :class do
it
{
is_expected
.
not_to
contain_package
(
'openldap-clients'
)
}
it
{
is_expected
.
not_to
contain_package
(
'ldap-utils'
)
}
it
{
is_expected
.
to
compile
}
it
{
is_expected
.
to
compile
.
with_all_deps
}
end
context
'missing ipa_master_fqdn'
do
...
...
@@ -272,7 +265,6 @@ describe 'freeipa', type: :class do
{
ipa_role:
'client'
,
domain:
'rspec.example.lan'
,
# ipa_master_fqdn: 'ipa-server-1.rspec.example.lan',
domain_join_password:
'rspecrspec123'
,
}
end
...
...
@@ -286,7 +278,6 @@ describe 'freeipa', type: :class do
ipa_role:
'client'
,
domain:
'rspec.example.lan'
,
ipa_master_fqdn:
'ipa-server-1.rspec.example.lan'
,
# domain_join_password: 'rspecrspec123',
}
end
...
...
spec/spec_helper_acceptance.rb
View file @
281646cb
...
...
@@ -18,6 +18,7 @@ RSpec.configure do |c|
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'
)
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