saltstack-formulas / exim-formula

Setup and configure the exim mail server.
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
9 stars 15 forks source link

feat(config): allow to manage config files under CONFDIR #18

Closed javierbertoli closed 4 years ago

javierbertoli commented 4 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Should fix #17

Describe the changes you're proposing

Added the possibility to manage files under the main config dir (/etc/exim4) through pillars, in a backward compatible way: simply added a base entry in exim:sub_dirs variable which manages the files under that dir, using the same logic as it does with other files.

Also, fixed an issue where the update-exim4.conf was not triggered when the config files changed: added a watch in the service, which triggers a rebuild and reload of the config

Pillar / config required to test the proposed changes

Added examples and tests.

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context

pull-assistant[bot] commented 4 years ago
Score: 0.81

Best reviewed: commit by commit


Optimal code review plan (1 warning)

feat(config): allow to manage config files under CONFDIR
> `exim/config/file.sls` 67% changes removed in fix(service): reorde...
     feat(service): reload service instead of restarting it      fix(service): reorder watchers to match org defaults

Powered by Pull Assistant. Last update e3e88e4 ... 4ac38d8. Read the comment docs.

myii commented 4 years ago

@javierbertoli Quick initial review. First issue is that some parts of this is related to the bug discussed here:

So I'll mention the issues for that inline.

saltstack-formulas-travis commented 4 years ago

:tada: This PR is included in version 0.7.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: