Skip to content

Commit

Permalink
Add mod_lookup_identity
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed May 15, 2017
1 parent f12349c commit ccd9d19
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -1411,6 +1411,7 @@ The following Apache modules have supported classes, many of which allow for par
* `intercept_form_submit`
* `itk`
* `ldap` (see [`apache::mod::ldap`][])
* `lookup_identity`
* `mime`
* `mime_magic`\*
* `negotiation`
Expand Down
4 changes: 4 additions & 0 deletions manifests/mod/lookup_identity.pp
@@ -0,0 +1,4 @@
class apache::mod::lookup_identity {
include ::apache
::apache::mod { 'lookup_identity': }
}
2 changes: 2 additions & 0 deletions manifests/params.pp
Expand Up @@ -113,6 +113,7 @@
'7' => 'mod_ldap',
default => undef,
},
'lookup_identity' => 'mod_lookup_identity',
'pagespeed' => 'mod-pagespeed-stable',
# NOTE: The passenger module isn't available on RH/CentOS without
# providing dependency packages provided by EPEL and passenger
Expand Down Expand Up @@ -245,6 +246,7 @@
'fcgid' => 'libapache2-mod-fcgid',
'geoip' => 'libapache2-mod-geoip',
'intercept_form_submit' => 'libapache2-mod-intercept-form-submit',
'lookup_identity' => 'libapache2-mod-lookup-identity',
'nss' => 'libapache2-mod-nss',
'pagespeed' => 'mod-pagespeed-stable',
'passenger' => 'libapache2-mod-passenger',
Expand Down
44 changes: 44 additions & 0 deletions spec/classes/mod/lookup_identity.rb
@@ -0,0 +1,44 @@
require 'spec_helper'

describe 'apache::mod::lookup_identity', :type => :class do
it_behaves_like "a mod class, without including apache"

context "default configuration with parameters" do
context "on a Debian OS" do
let :facts do
{
:lsbdistcodename => 'squeeze',
:osfamily => 'Debian',
:operatingsystemrelease => '6',
:concat_basedir => '/dne',
:id => 'root',
:kernel => 'Linux',
:operatingsystem => 'Debian',
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
:is_pe => false,
}
end
it { is_expected.to contain_class("apache") }
it { is_expected.to contain_package("libapache2-mod-lookup-identity") }
it { is_expected.to contain_apache__mod('lookup_identity') }
end #Debian

context "on a RedHat OS" do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemrelease => '6',
:concat_basedir => '/dne',
:id => 'root',
:kernel => 'Linux',
:operatingsystem => 'RedHat',
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
:is_pe => false,
}
end
it { is_expected.to contain_class("apache") }
it { is_expected.to contain_package("mod_lookup_identity") }
it { is_expected.to contain_apache__mod('lookup_identity') }
end # Redhat
end
end

0 comments on commit ccd9d19

Please sign in to comment.