(#13860) Make a2enmod/a2dismo commands optional
Previous to this comit, the a2enmod and a2dismod commands were required for the a2mod provider to be used by puppet on the first run. Since these commands are not always available on the first run, the catalog application might fail. This commit makes the commands optional, so the provider's validity will be evaluated when an a2mod resource is enforced
This commit is contained in:
parent
98d774eaa8
commit
a35ede5126
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user