hosts = {{ salt['pillar.get']("model:postgres:host") }} user = {{ salt['pillar.get']("model:postgres:user") }} password = {{ salt['pillar.get']("model:postgres:password") }} dbname = {{ salt['pillar.get']("model:postgres:database") }} query = SELECT bcc FROM recipient_bcc WHERE recipient='%s'