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 can't be specified in code #585

Open
liwo opened this issue Jul 8, 2020 · 1 comment
Open

FPM pools can't be specified in code #585

liwo opened this issue Jul 8, 2020 · 1 comment

Comments

@liwo
Copy link

liwo commented Jul 8, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.12
  • Ruby: 2.5.1
  • Distribution: ubuntu 18.04
  • Module version: 7.1.0

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

	class { 'php':
		fpm => true,
		fpm_pools => {
			'www' => {
				'listen' => '0.0.0.0:9000',
			},
		},
	}

What are you seeing

FPM is listening on localhost only (code above specifies all interfaces)

root@29b721b3c7a6:/# grep 'listen =' /etc/php/7.2/fpm/pool.d/www.conf 
listen = 127.0.0.1:9000

What behaviour did you expect instead

FPM is listening on all interfaces

root@29b721b3c7a6:/# grep 'listen =' /etc/php/7.2/fpm/pool.d/www.conf 
listen = 0.0.0.0:9000

Output log

Any additional information you'd like to impart

I believe this is caused by #550. Hiera settings override the parameter default which is set to take the values from class php.

I tried to provide a test showing the expected behavior, but I couldn't figure out how and the test suite is broken anyway.

A possible solution might be to have the hiera defaults for php::fpm_pools instaed of php::fpm::pools, but that might well be a breaking change.

@ghost
Copy link

ghost commented Jul 14, 2020

I think this is a duplicate of #558 and is fixed in #572 but this needs a new release.

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

1 participant