-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resources to manage databases and users #185
Comments
There is also a similar topic, and conclusion, on sous-chefs/postgresql#437 Forking some |
Any opinion on this from maintainers? If the idea is agreed, I will have some availability in the beginning of December to work on a PR. |
@stissot if you find those resources valuable, then please go for it! Do you need anything besides approval from the rest of us? |
@josephholsten I've made a PR #187 can you please review it? |
@stissot I've been trying out the Also the PR #187 doesn't include any matchers for the new resources. I don't know if it is expected or not. |
@jmadureira I could not reproduce this issue. Is it happening with diff --git i/test/fixtures/cookbooks/mariadb_test/recipes/resources.rb w/test/fixtures/cookbooks/mariadb_test/recipes/resources.rb
index ddc79b6..545b488 100644
--- i/test/fixtures/cookbooks/mariadb_test/recipes/resources.rb
+++ w/test/fixtures/cookbooks/mariadb_test/recipes/resources.rb
@@ -75,6 +75,12 @@ mariadb_user 'piggy' do
action :create
end
+# create user piggy again
+mariadb_user 'piggy2' do
+ username 'piggy'
+ action :create
+end
+ $ KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen converge resources-debian-8
[...]
* mariadb_database[datatrout] action drop (up to date)
* mariadb_user[piggy] action create (up to date)
* mariadb_user[piggy2] action create (up to date)
* mariadb_user[kermit] action drop (up to date)
[...] I converged multiple times and Chef is properly detecting that the resource is up to date for me. |
@jmadureira see my answers on #191 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I was using the
mysql_database
andmysql_user
resources provided by thedatabase
cookbook, but this cookbook is now deprecated.The reason why it's deprecated is because the authors think these resources should be implemented by each specialized database cookbook, to better use the full feature set of the underlying DB system.
So I think the
mariadb
cookbook should provide similarmariadb_database
andmariadb_user
resources/providers.See also similar topic on the mysql cookbok: sous-chefs/mysql#522
The text was updated successfully, but these errors were encountered: