-
Notifications
You must be signed in to change notification settings - Fork 33
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
dovecot settings #9
Comments
Yeah. I know that maybe this code can be improved. But there is a reason for this non-standard behavior. The configuration files are created depending on the packages installed. In each distribution, each package installs its configuration files. So if, for example, the sieve package is installed, this cookbook will generate the sieve configuration files, but not the other. This facilitates homogenizing the different behavior between distributions, packages and its configuration files, avoiding the creation of unnecessary configuration files. To understand the The templates are notified every chef-run from there, so the config files are updated correctly on configuration changes. Or at least that's what I meant when I did. Maybe adding a comment about this in the code would not be a bad idea. If this quick and poor explanation has not been clear enough, please feel free to ask me again. |
Thanks for your explanation. I am only implementing build from source based on ubuntu 13.10 at the It is a bit challenging trying to implement the Do you have an idea on how to proceed? Regards, 2014-04-08 2:45 GMT+10:00 Xabier de Zuazo notifications@github.com:
|
Sorry, I have not had time to look at this in detail. I would try to find out a way to report the templates depending on how you have compiled dovecot. Perhaps using ruby_blocks similar to the But if it turns out to be too complicated or tricky, I would try to move the # from_packages.rb
if Dovecot.requires?('imap', node['dovecot'])
node['dovecot']['packages']['imap'].each do |pkg|
package pkg # [...]
end
end # conf_files.rb
node['dovecot']['conf_files'].each do |type, conf_files|
if Dovecot.requires?(type, node['dovecot'])
conf_files.each do |conf_file|
template conf_files # [...]
end
end
end This I think this would solve your problem, right? What do you think of this solution? I will try to think about this in the coming days and let you know if I get something. |
Xabier, The Cheers 2014-04-11 8:57 GMT+10:00 Xabier de Zuazo notifications@github.com:
|
Released in version 1.0.0. |
FIrst of all, thanks for the cookbook.
I am trying to get my head around the
conf_files.rb
and I do not understand the reason why templates are set foraction :nothing
.I thought the standard way was to be change a template and reload the service if a setting changes.
Do you have a plan to standardize the cookbook with the way templates operate?
Thanks,
Jordi
The text was updated successfully, but these errors were encountered: