{"action":"created","issue":{"url":"https://api.github.com/repos/sous-chefs/postgresql/issues/557","repository_url":"https://api.github.com/repos/sous-chefs/postgresql","labels_url":"https://api.github.com/repos/sous-chefs/postgresql/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/sous-chefs/postgresql/issues/557/comments","events_url":"https://api.github.com/repos/sous-chefs/postgresql/issues/557/events","html_url":"https://github.com/sous-chefs/postgresql/issues/557","id":356016952,"node_id":"MDU6SXNzdWUzNTYwMTY5NTI=","number":557,"title":"Early postgresql_access apply?","user":{"login":"gionn","id":71768,"node_id":"MDQ6VXNlcjcxNzY4","avatar_url":"https://avatars3.githubusercontent.com/u/71768?v=4","gravatar_id":"","url":"https://api.github.com/users/gionn","html_url":"https://github.com/gionn","followers_url":"https://api.github.com/users/gionn/followers","following_url":"https://api.github.com/users/gionn/following{/other_user}","gists_url":"https://api.github.com/users/gionn/gists{/gist_id}","starred_url":"https://api.github.com/users/gionn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gionn/subscriptions","organizations_url":"https://api.github.com/users/gionn/orgs","repos_url":"https://api.github.com/users/gionn/repos","events_url":"https://api.github.com/users/gionn/events{/privacy}","received_events_url":"https://api.github.com/users/gionn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-31T15:03:36Z","updated_at":"2018-09-26T21:46:26Z","closed_at":null,"author_association":"NONE","body":"I am new with the accumulator pattern, and I am wondering how to deal with it when I need that a resource (e.g. `postgresql_access`) get applied immediately and not until the end of the run, since some other recipes are relying on that.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/sous-chefs/postgresql/issues/comments/424880624","html_url":"https://github.com/sous-chefs/postgresql/issues/557#issuecomment-424880624","issue_url":"https://api.github.com/repos/sous-chefs/postgresql/issues/557","id":424880624,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDg4MDYyNA==","user":{"login":"damacus","id":40786,"node_id":"MDQ6VXNlcjQwNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/40786?v=4","gravatar_id":"","url":"https://api.github.com/users/damacus","html_url":"https://github.com/damacus","followers_url":"https://api.github.com/users/damacus/followers","following_url":"https://api.github.com/users/damacus/following{/other_user}","gists_url":"https://api.github.com/users/damacus/gists{/gist_id}","starred_url":"https://api.github.com/users/damacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damacus/subscriptions","organizations_url":"https://api.github.com/users/damacus/orgs","repos_url":"https://api.github.com/users/damacus/repos","events_url":"https://api.github.com/users/damacus/events{/privacy}","received_events_url":"https://api.github.com/users/damacus/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T21:46:26Z","updated_at":"2018-09-26T21:46:26Z","author_association":"MEMBER","body":"The access is only granted at the end of the run due to postgresql having a single conf file with multiple uses, thus forcing us to ue the accumulator pattern. [Here's a great write-up of the accumulator pattern](https://blog.dnsimple.com/2017/10/chef-accumulators/). \r\n\r\nyou might be able to do all the modifications to the conf file at the start of your config and run your `execute` command near the end, delayed (triggered by something like the access resource)\r\n"}}
{"actor":{"display_login":"damacus"}}