example42 / puppet-mysql

Mysql Puppet Module
http://www.example42.com
Other
16 stars 38 forks source link

Adding mysql_db_init_query_file in mysql::grant #32

Closed lieutdan13 closed 11 years ago

lieutdan13 commented 11 years ago

Added this option so that a database can be initiated all in one call. After all, the parameters are very similar and would need to be duplicated in 2 different calls.

lieutdan13 commented 11 years ago

Alessandro, I wasn't sure about the name of the parameter, would it make sense to call it "mysql_schema_file" or something a little shorter than the one I came up with?

alvagante commented 11 years ago

The name is ok, but I just realized that such an option is already there: mysql_create_db

alvagante commented 11 years ago

but maybe you want a custom sql file to populate it ...

alvagante commented 11 years ago

Few lines of docs and usage samples would be welcomed :-)

lieutdan13 commented 11 years ago

But that only creates the database. I'm looking for a solution to create the tables as well. I suppose I can do a workaround and include the schema in mysql_db_create_options.

lieutdan13 commented 11 years ago

Oh okay. I will add documentation :-)