[SOLVED] Add new file to synchronized configuration for all node inside cluster

luthfiset

New Member
Feb 3, 2020
7
1
3
29
Hello everyone,

Is there any way to add new file configuration in Master node and then sync it to every slave node inside cluster?
I want to add header_check file for postfix configuration and sync it to all node.


Warm Regards.
 
if you put a file in '/etc/pmg/' on the master, it will get synced to the slaves to /etc/pmg/master
 
if you put a file in '/etc/pmg/' on the master, it will get synced to the slaves to /etc/pmg/master

Oh wow, I know that folder, But I never know it have that purpose.
Thank you for your reply, I'll mark this thread as solved.
 
if you put a file in '/etc/pmg/' on the master, it will get synced to the slaves to /etc/pmg/master

I'm sorry I have to reopen this thread, because I've had some trouble with the synchronize file.
I've got error in postfix from some slave node:
Apr 9 08:35:25 smtp1-swh postfix/cleanup[17063]: warning: regexp:/etc/pmg/master/subject-log is unavailable. open /etc/pmg/master/subject-log: No such file or directory
Apr 9 08:35:25 smtp1-swh postfix/cleanup[17063]: warning: regexp:/etc/pmg/master/subject-log lookup error

Is the synchronize process on folder /etc/pmg/master always done repeatedly? Not when there is change only?
It seems the problem came out because I've had config in postfix to use file /etc/pmg/master/subject-log, but the synchronize process is not finished yet.

header_checks = regexp:/etc/pmg/master/subject-log
 
Is the synchronize process on folder /etc/pmg/master always done repeatedly? Not when there is change only?
it is rsynced, so if no change is done it should not transfer it again (i think)
but maybe the whole directory is recreated...

you can of course always set up your own rsync cronjobs, independent from ours