{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/database/issues/140","labels_url":"https://api.github.com/repos/chef-cookbooks/database/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/database/issues/140/comments","events_url":"https://api.github.com/repos/chef-cookbooks/database/issues/140/events","html_url":"https://github.com/chef-cookbooks/database/issues/140","id":60035032,"number":140,"title":"General `database_user` resource not working with postgresql, only `postgresql_database_user`","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-05T23:35:24Z","updated_at":"2016-01-04T01:52:08Z","closed_at":"2016-01-03T22:20:52Z","body":"Using `database` cookbook v4.0.3\r\n\r\n```\r\ndatabase_user node['textsecure']['dbuser'] do\r\n  provider Chef::Provider::Database::PostgresqlUser\r\n  connection db_info\r\n  password node['textsecure']['dbpass']\r\n  action :create\r\nend\r\n```\r\n\r\nThe above throws the following error:\r\n\r\n```\r\n==> default: ================================================================================\r\n==> default: Error executing action `create` on resource 'database_user[textsecure]'\r\n==> default: ================================================================================\r\n==> default: \r\n==> default: \r\n==> default: NoMethodError\r\n==> default: -------------\r\n==> default: undefined method `createdb' for Chef::Resource::DatabaseUser\r\n```\r\n\r\nThe explicit `postgresql_database_user` resource works fine.\r\n\r\nMight work at it later, but for now I've got an easy workaround :)"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/database/issues/comments/168564491","html_url":"https://github.com/chef-cookbooks/database/issues/140#issuecomment-168564491","issue_url":"https://api.github.com/repos/chef-cookbooks/database/issues/140","id":168564491,"user":{"login":"roblperry","id":1269802,"avatar_url":"https://avatars.githubusercontent.com/u/1269802?v=3","gravatar_id":"","url":"https://api.github.com/users/roblperry","html_url":"https://github.com/roblperry","followers_url":"https://api.github.com/users/roblperry/followers","following_url":"https://api.github.com/users/roblperry/following{/other_user}","gists_url":"https://api.github.com/users/roblperry/gists{/gist_id}","starred_url":"https://api.github.com/users/roblperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblperry/subscriptions","organizations_url":"https://api.github.com/users/roblperry/orgs","repos_url":"https://api.github.com/users/roblperry/repos","events_url":"https://api.github.com/users/roblperry/events{/privacy}","received_events_url":"https://api.github.com/users/roblperry/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T01:52:08Z","updated_at":"2016-01-04T01:52:08Z","body":"I'm happy enough to call the problem fixed, unless someone discovers for us that it is still broken.  We can always make it prettier later."}}