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

fpm_pools option not working after release 7.0.0

Open bovy89 opened this issue 6 years ago • 5 comments

After this change, fpm_pools does not work anymore.

As consequence, this use case is broken too

Version 7.0.0:

class { 'php':
   ensure       => 'present',
   manage_repos => false,
   fpm          => true,
   dev          => false,
   composer     => false,
   pear         => true,
   phpunit      => false,
   fpm_pools    => {},
}

php::fpm::pool { 'www2':
    listen => '127.0.1.1:9000',
}

Created pools: www2 ---> correct

Afred 7.0.0:

class { 'php':
   ensure       => 'present',
   manage_repos => false,
   fpm          => true,
   dev          => false,
   composer     => false,
   pear         => true,
   phpunit      => false,
   fpm_pools    => {},
}

php::fpm::pool { 'www2':
    listen => '127.0.1.1:9000',
}

Created pools: www and www2 ----> wrong

bovy89 avatar Dec 17 '19 19:12 bovy89

I can confirm this unexpected behavior. Parameter fpm_pools in the base class appears not to have any effect anymore.

jcharaoui avatar Dec 23 '19 14:12 jcharaoui

Perhaps this could be addressed by adding a knockout_prefix for the default www pool?

@jcharaoui if you refer to the linked commit above, the parameter 'php::fpm_pools' has moved to 'php::fpm::pools' instead, you'd need to change your Hiera data to reflect this.

grant-veepshosting avatar Jan 28 '20 00:01 grant-veepshosting

Furthermore, the default 'www' pool cannot be customized either using the php class.

For instance, this has no effect:

class {'::php':
  # ...
  fpm_pools => {
    'www' => {
      user => 'php',
      pm   => 'static'
    }
  }
}

jouveits avatar May 14 '20 14:05 jouveits

Can confirm, it's currently impossible to unset the default www pool without using Hiera or relying on overriding private classes parameters.

cedriclaudrel avatar Jun 02 '20 11:06 cedriclaudrel

This issue has been resolved in master (see #572), but a new release is required

bovy89 avatar Jun 02 '20 17:06 bovy89