assign-postgres-password works on custom ports. psql -p #{node['postgresql']['config']['port']}