[COOK-3599] Attributes to client recipe; auto-use PGDG

https://tickets.opscode.com/browse/COOK-3599

Also a testing fix.