write copykeyring.sh to saltstate