mjhas / postfix

puppet postfix module
Other
5 stars 21 forks source link

Add mysql support and support for postfixadmin DB schema #20

Closed nerdyness closed 10 months ago

nerdyness commented 8 years ago

Hi there,

I thought this would be a nice addition to this module. I basically renamed the postgres.pp to database.pp and added two parameters with sensible defaults.

Defaults to 'custom' which is what used to be the only supported solution, but can also handle 'postfixadmin'. Since there is nothing postgres or mysql specific in those queries this is easily interchangeable.

Defaults to 'postgresql' but can also handle 'mysql'.

Unfortunately I couldn't work out how to get your tests to work on my local environment so this is completely untested - if you point me in the right direction I'd be happy to make sure the tests are still passing.

Looking forward to your feedback!