-
Notifications
You must be signed in to change notification settings - Fork 611
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
Dependency cycle when postgresql::globals::encoding
is set
#1631
Comments
Same as #1543? |
Seems to be the same with the little difference they are setting |
Using the parameter Anyways - it has to work also with |
Added |
And while testing the steps from
Very very odd. |
Well I think I found the issue - it is at https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/manifests/server/instance/late_initdb.pp#L46 and https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/lib/puppet/type/postgresql_psql.rb#L137
Thats the actual dependency cycle. I will test this. |
Commenting out https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/manifests/server/instance/late_initdb.pp#L46 does NOT fix the issue. The depedency cycle still happens for me if using the latest state of |
As deeper I get into the modules code as more confused I am getting... |
Running into the same issue myself in our environment. After removing postgresql::globals::encoding it works. |
Sadly I had no more time to investigate. But I think this module requires some general refactoring including the removal of those anchors. Again sadly I have no time for that. |
Describe the Bug
While upgrading the module from 9.1.0 to 10.5.0 we ran into the issue of a dependency cycle, when setting a value for
postgresql::globals::encoding
.Expected Behavior
No dependency cycle.
Steps to Reproduce (hiera)
Steps to Reproduce (docker)
Environment
Additional Context
Removing the value will compile and apply successful.
The text was updated successfully, but these errors were encountered: