-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Added Hiera support for postfix::config, postfix::hash, postfix::transport and postfix::virtual #50
Conversation
…sport and postfix::virtual
|
||
create_resources('postfix::config', $configs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create_resources should be done in postfix::config class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can't be done in postfix::config since this is define type... My proposed way is the recommend way to implement hiera support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right, not in postfix::config, in postfix::files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But thats not the way other module work. I just want to do 'include postfix' and everything else is done in hiera. If i would implemented it that way you suggest, i would also need to do 'include postfix::files'. I don't see any benefit here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, postfix::files is included in init, so no need to include it afterwards.
Keep the params to init class like you did, but create the resources in postfix::files instead of in init this should fix the cyclic dependency.
@baurmatt Any news on this PR? |
Will close this issue as no news have been provided in over 9 months. |
@raphink What's the state of this PR. Does it need code or just testing? It would be very nice to have a postfix module that is entirely hiera-compatible. |
I agree... it was 90% there, not sure why the authors didn't just finish it off? |
Is there any development going on in this module? It looks quite dead. |
I switched to https://github.com/thias/puppet-postfix |
ok. hmm last update 2 years ago |
Better than 4 years, right? ;) I'm still using it for my server and it works so far. Hope thias might consider moving the module to Voxpupuli (thias/puppet-postfix#116) |
I've moved to Ansible :) |
The latest release of this module was done a month ago so it's obviously not dead. |
I realize this issue is closed, but is there an example on how one can configure main.cf through postfix::files using Hiera? |
@raphink could you re-open this issue? What does this PR needs? Would you agree on moving this module to voxpupuli if you don't have much time for it anymore? @finalhow I'm no expert, but here's what I did to enable hiera for some configs for the posgresql module'
Then, I set the values I wanted this way:
If I underestand correctly how it works, if you can set variables values in manifests, you can set variables values in hiera, once you've added the 2 lines above where you call your class (you'll obviously won't use the same names as me because it's not for the same context). |
@ubellavance Thanks, I will give that a try. |
@finalhow if you need help, just post your config and I'll try to help. |
@ubellavance I reopened the issue, but you have commit rights on the reporter's branch I guess, so it might still require to open a new one. |
@ubellavance any news? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This PR adds support for Hiera. Some dependency were removed since Puppet throw dependency cycle errors:
I not really sure if this will throw errors in some edge cases, i found none in my tests.
No longer needed since dependency to class{ 'postfix': } is managed in hash.pp