This recipe's pretty useless.

It's too inflexible.  Just use the postgresql_hba LWRP instead.