postgresql_access resource in a custom resource always returns it is up to date, does not notify other resources #648
Labels
Bug
Something isn't working
hacktoberfest
An issue highlighted for the digital ocean Hacktoberfest Event
Brief Description
postgresql_access
resource when used in a custom resource always returns it is up to date, does not notify other resourcesCookbook version
7.1.8
Chef-Infra Version
15.3.14
Platform details
Ubuntu 18.04
Steps To Reproduce
Steps to reproduce the behavior:
postgresql_server_install
resourcepostgresql_access
resource to set up some access rights. For example:It doesn't matter if the hba.conf file needs to be changed, the
postgresql_access
resource always thinks it was up to date. From a Chef run:This means that the notification isn't sent and the service is not reloaded. However on the first run the
hba.conf
file is updatedExpected behavior
I expect the
postgresql_access
resource to know when thehba.conf
needs to be changed, and properly use thenotifies
property, allowing the PostgreSQL service to be reloaded for example.The notification works when the
postgresql_access
resource is used in a recipe. This only occurs in a custom resource, like in sous-chefs/firewall#134Do you know about a workaround? I tried editing the
hba.conf
template withedit_resource
andfind_resource
to add thenotifies
property to it but got stuck since it expects a lot of variables.Let me know if you need more information or if you have any question
The text was updated successfully, but these errors were encountered: