Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fpm_pools option not working after release 7.0.0 #558

Open
bovy89 opened this issue Dec 17, 2019 · 5 comments
Open

fpm_pools option not working after release 7.0.0 #558

bovy89 opened this issue Dec 17, 2019 · 5 comments

Comments

@bovy89
Copy link
Contributor

bovy89 commented Dec 17, 2019

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

@jcharaoui
Copy link
Contributor

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

@grant-veepshosting
Copy link
Contributor

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.

@jouveits
Copy link

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'
    }
  }
}

@cedriclaudrel
Copy link

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

@bovy89
Copy link
Contributor Author

bovy89 commented Jun 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants