(#13860) Autorequire Package['httpd']
Previous to this commit, the `a2mod type did not autorequire the Package['httpd'] resource provided by the `apache` class. If the Package['httpd'] resource was enforced after any a2mod resources, the a2mod resources would fail since the httpd package installs the a2emod/a2dismod system commands.
This commit is contained in:
parent
7d168bceaf
commit
98d774eaa8
@ -1,6 +1,6 @@
|
||||
Puppet::Type.newtype(:a2mod) do
|
||||
@doc = "Manage Apache 2 modules on Debian and Ubuntu"
|
||||
|
||||
|
||||
ensurable
|
||||
|
||||
newparam(:name) do
|
||||
@ -8,5 +8,9 @@ Puppet::Type.newtype(:a2mod) do
|
||||
|
||||
isnamevar
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
autorequire(:package) { catalog.resource(:package, 'httpd')}
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user