Not necessarily wrong, but somehow misleading.

Technically there is nothing wrong with this statement since node['postgresql']['config']['listen_address'] = 'localhost' will literally write node['postgresql']['config']['listen_address'] = 'localhost' in the postgresql.conf file, that being said it is slightly misleading since the correct value is "listen_addresses" and not "listen_address", so somebody copy/pastying could get erroneous data.