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

nginx::resource::upstream with no members can only be called once #897

Closed
ikryten opened this issue Oct 3, 2016 · 3 comments
Closed

nginx::resource::upstream with no members can only be called once #897

ikryten opened this issue Oct 3, 2016 · 3 comments

Comments

@ikryten
Copy link

ikryten commented Oct 3, 2016

We define upstreams with no members because we use a custom in-house module to resolve the destination. This use to work fine with an older version of the module. But the latest version assumes that if nginx::resource::upstream has no members defined then you want to collect them. That's all well and good but the collection logic is flawed, the collection is done through a class (class { '::nginx::resource::upstream::collect': ) and classes can only be called once. This effectively means you can only have one upstream defined that uses 'collected' members. This should be addressed. It should be a defined type or just done directly in nginx::resource::upstream.

@wyardley
Copy link
Collaborator

Related to #832 maybe (which, in turn, was trying to solve #720)?
This is not an area I know well, so don't really want to try and propose a fix...

@ikryten: can't promise that I'll be able to help, but if you could include an example of a config that fails (or, even better, spec tests for how the feature should work), it might be easier for someone to take a look at this.

@wyardley
Copy link
Collaborator

The newest fix of #755 should revert it to the previous behavior, if it gets rebased and merged.

@wyardley
Copy link
Collaborator

Merged #755.

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

2 participants