puppet-php
puppet-php copied to clipboard
ini file not created if ensure is set to package version
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
We are experiencing the same problem. https://github.com/voxpupuli/puppet-php/pull/493 fixes this in release 7.0.0