#!/bin/sh kdclist="{% for s in groups['kerberos-kdc-replica'] %}{{ s }} {% endfor %}" kdb5_util dump /var/krb5kdc/slave_datatrans for kdc in $kdclist do kprop -f /var/krb5kdc/slave_datatrans $kdc done