Skip to content

Commit

Permalink
Add basic support for mod_speling
Browse files Browse the repository at this point in the history
  • Loading branch information
rchouinard committed Apr 3, 2014
1 parent 8f0da04 commit 9aa2ded
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ There are many `apache::mod::[name]` classes within this module that can be decl
* `rewrite`
* `rpaf`*
* `setenvif`
* `speling`
* `ssl`* (see [`apache::mod::ssl`](#class-apachemodssl) below)
* `status`*
* `suphp`
Expand Down
4 changes: 2 additions & 2 deletions manifests/default_mods.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
include ::apache::mod::mime_magic
include ::apache::mod::vhost_alias
include ::apache::mod::rewrite
include ::apache::mod::speling
::apache::mod { 'auth_digest': }
::apache::mod { 'authn_anon': }
::apache::mod { 'authn_dbm': }
Expand All @@ -36,7 +37,6 @@
::apache::mod { 'ext_filter': }
::apache::mod { 'include': }
::apache::mod { 'logio': }
::apache::mod { 'speling': }
::apache::mod { 'substitute': }
::apache::mod { 'suexec': }
::apache::mod { 'usertrack': }
Expand Down Expand Up @@ -65,6 +65,7 @@
include ::apache::mod::rewrite
include ::apache::mod::userdir
include ::apache::mod::vhost_alias
include ::apache::mod::speling

::apache::mod { 'asis': }
::apache::mod { 'auth_digest': }
Expand All @@ -83,7 +84,6 @@
::apache::mod { 'imagemap':}
::apache::mod { 'include': }
::apache::mod { 'logio': }
::apache::mod { 'speling': }
::apache::mod { 'unique_id': }
::apache::mod { 'usertrack': }
::apache::mod { 'version': }
Expand Down
3 changes: 3 additions & 0 deletions manifests/mod/speling.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class apache::mod::speling {
::apache::mod { 'speling': }
}
26 changes: 26 additions & 0 deletions spec/classes/mod/speling_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
describe 'apache::mod::speling', :type => :class do
let :pre_condition do
'include apache'
end
context "on a Debian OS" do
let :facts do
{
:osfamily => 'Debian',
:operatingsystemrelease => '6',
:concat_basedir => '/dne',
}
end
it { should contain_apache__mod('speling') }
end

context "on a RedHat OS" do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemrelease => '6',
:concat_basedir => '/dne',
}
end
it { should contain_apache__mod('speling') }
end
end

0 comments on commit 9aa2ded

Please sign in to comment.