Sha256: f71172b29540ced903dc4ff143159162bea11f006e25de9387a089a880ade9fb
Contents?: true
Size: 474 Bytes
Versions: 52
Compression:
Stored size: 474 Bytes
Contents
Puppet::Type.type(:a2mod).provide(:debian) do desc "Manage Apache 2 modules on Debian-like OSes (e.g. Ubuntu)" commands :encmd => "a2enmod" commands :discmd => "a2dismod" defaultfor :operatingsystem => [:debian, :ubuntu] def create encmd resource[:name] end def destroy discmd resource[:name] end def exists? mod= "/etc/apache2/mods-enabled/" + resource[:name] + ".load" File.exists?(mod) end end
Version data entries
52 entries across 52 versions & 2 rubygems