voxpupuli / puppet-php

Generic Puppet module to manage PHP on many platforms
http://forge.puppet.com/puppet/php
MIT License
87 stars 268 forks source link

ini file not created if ensure is set to package version #517

Open mzhaase opened 5 years ago

mzhaase commented 5 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

php::extensions:
    pdo_sqlsrv:
      ensure: '5.3.0'
      provider: pecl
      header_packages:
        - unixodbc-dev

What are you seeing

pdo_sqlsrv.so exists, but /etc/php7.0/mods-available/pdo_sqlsrv.ini does not exist. If manually created, it is removed by puppet.

What behaviour did you expect instead

pdo_sqlsrv.ini should be created.

Output log

Debug: /Stage[main]/Php/Php::Extension[pdo_sqlsrv]/Php::Extension::Config[pdo_sqlsrv]/File[/etc/php/7.0/mods-available/pdo_sqlsrv.ini]: Nothing to manage: no ensure and the resource doesn't exist

uoe-pjackson commented 5 years ago

We are experiencing the same problem. https://github.com/voxpupuli/puppet-php/pull/493 fixes this in release 7.0.0