akumria / puppet-postgresql

Manage and install Postgresql databases and users
37 stars 20 forks source link

Allow template to be specified when creating a database #8

Closed codeinthehole closed 11 years ago

codeinthehole commented 11 years ago

At the moment, the template is hard-coded to be template0: https://github.com/akumria/puppet-postgresql/blob/master/lib/puppet/provider/pg_database/debian_postgresql.rb#L11

Could this be altered so that an alternative template can be passed?

akumria commented 11 years ago

The code is in and documented but I've not had a chance to thoroughly test it myself, which is why it is not in a release.

If you are able to confirm that this works for you, I can roll another release later today.

codeinthehole commented 11 years ago

Yes, that worked fine for me. Thanks!