Templates folder sync between master and nodes

redjohn

Renowned Member
Apr 22, 2016
132
4
83
28
Hello,

I have create the /etc/pmg/templates folder. This folder is sync between master and nodes everything works fine. But if I create some file with postmap command this file is not synced to the nodes, why? I think the rsync(?) between master and nodes exclude .db file which was create with postmap command? Any idea to fix this problem?

Regards
 
I think the rsync(?) between master and nodes exclude .db file which was create with postmap command?
this is correct - since the cluster sync copies the plaintext files over and runs postmap on the nodes themselves the .db files do not get synced as well.

Depending on your usecase you could:
* either run postmap manually on all nodes when you change the plaintext file (usually this does not change that often)
* use some other way of synchronization (a systemd-timer/cronjog using rsync)

I hope this helps!