Merge pull request #23 from ccaum/13860_autorequire_httpd_package

(#13860) Autorequire Package['httpd']
This commit is contained in:
Dan Bode 2012-04-12 13:40:27 -07:00
commit 789d8d3f3b
2 changed files with 13 additions and 9 deletions

View File

@ -1,8 +1,8 @@
Puppet::Type.type(:a2mod).provide(:a2mod) do
desc "Manage Apache 2 modules on Debian and Ubuntu"
commands :encmd => "a2enmod"
commands :discmd => "a2dismod"
optional_commands :encmd => "a2enmod"
optional_commands :discmd => "a2dismod"
defaultfor :operatingsystem => [:debian, :ubuntu]

View File

@ -9,4 +9,8 @@ Puppet::Type.newtype(:a2mod) do
isnamevar
end
autorequire(:package) { catalog.resource(:package, 'httpd')}
end
end