Hi folks,
I''ve been staring for a long time now at this issue in the
PostgreSQL puppet module, discussing whether to
"Implement database, database_user, and database_grant provider"
https://github.com/puppetlabs/puppetlabs-postgresql/issues/27
The bug has been closed and that''s a little unsatisfying.
database, database_user and database_grant are resources internal
to puppet, but only puppetlabs-mysql implements them.
It''s clear to me that one might have to break compatibility
with the current *mysql* module to be able to introduce these
resources into puppetlabs-postgresql.
I''ll explain my patch below, but I''d first like to know if
there''s
any interest in this happening from either puppetlabs-mysql or
puppetlabs-postgresql users and developers! I am generally more
concerned with puppetlabs-mysql here, because its development seems
to have stagnated, judging from the bug reports and the pull requests:
http://projects.puppetlabs.com/projects/modules/issues?utf8=%E2%9C%93&set_filter=1&f[]=status_id&op[status_id]=o&f[]=category_id&op[category_id]=%3D&v[category_id][]=234&f[]=&c[]=tracker&c[]=status&c[]=priority&c[]=subject&c[]=assigned_to&c[]=fixed_version&group_by
https://github.com/puppetlabs/puppetlabs-mysql/pulls
* * * *
My take on this (see attachment or this paste: http://apaste.info/jH0C )
is to first add the ability to use "host/netmask" or
"network/netmask"
as mysql $host that the mysql user is connecting.
This is something that mysql can do, even though it''s not often
used, it seems, but it''s pretty much standard in PostgreSQL
land''s
pg_hba.conf. I''m using the # as new seperator instead of /
That''s where I break compatibility, but that''s also what makes
the regex
instantly more readable, because I avoid the dreaded toothpicks.
That''s all from me. I ♥ly welcome your comments,
-- i
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.