example42 / puppet-php

A puppet module for php. According to Example42 NextGen spec.
Other
45 stars 62 forks source link

php::mod executes php5enmod/php5dismod every puppet run #113

Closed Slashbunny closed 8 years ago

Slashbunny commented 8 years ago

Expected Behavior

If a particular module is already enabled, php::mod should not run php5enmod again.

Actual Behavior

php::mod unconditionally runs php5enmod every puppet run. This triggers a service restart, which means if you have puppet running on a schedule, your Apache instance will restart every time puppet runs.

Steps to Reproduce the Problem

  1. php::mod { 'mcrypt': }
  2. puppet agent -t

    Specifications

Please add this info:

  1. Ubuntu 14.04 LTS
  2. puppet 3.8.7
  3. PHP 5.5.9-1ubuntu4.16