puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

ini file not created if ensure is set to package version

Open mzhaase opened this issue 5 years ago • 1 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.13
  • Ruby: 2.3.3
  • Distribution: Debian 9
  • Module version: 6.0.2

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

mzhaase avatar Apr 24 '19 09:04 mzhaase

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

uoe-pjackson avatar Oct 04 '19 16:10 uoe-pjackson