Hello there,
<!--insert Obi-Wan meme-->

I'm trying my luck here as I haven't received a response on GH.

I should mention that our cluster was set up using version 15 (currently at 
15.1).
So I don't know if this is an old issue or a new one.

The sync function `/usr/local/pf/bin/cluster/sync --as-master` with additional 
files using the
`/usr/local/pf/conf/cluster-files.txt` file should maintain the correct 
permissions of end files on slaves.

Example on the master:
```
root@nac1:/usr/local/pf/conf/my_conf# tree -pugC
[drwxr-sr-x pf       pf      ]  .
├── [drwxr-sr-x pf       pf      ]  conf
│   ├── [-rw-rw-r-- pf       pf      ]  cluster-files.txt
│   ├── [-rw-rw-r-- pf       pf      ]  iptables-custom.conf.inc
│   └── [-rw-rw-r-- pf       pf      ]  keepalived.conf
├── [drwxr-sr-x pf       pf      ]  role
│   └── [-rw-rw-r-- pf       pf      ]  custom.pm
├── [drwxr-sr-x pf       pf      ]  sbin
│   └── [-rwxrwxr-x pf       pf      ]  httpd.aaa-docker-wrapper
└── [drwxr-sr-x pf       pf      ]  scripts
    └── [-rwxrwxr-x pf       pf      ]  ddi_lookup.sh
```

After sync, on slaves:
```
root@nac2:/usr/local/pf/conf/my_conf# tree -pugC
[drwxr-sr-x pf       pf      ]  .
├── [drwxr-sr-x pf       pf      ]  conf
│   ├── [-rw-rw-r-- pf       pf      ]  cluster-files.txt
│   ├── [-rw-rw-r-- pf       pf      ]  iptables-custom.conf.inc
│   └── [-rw-rw-r-- pf       pf      ]  keepalived.conf
├── [drwxr-sr-x pf       pf      ]  role
│   └── [-rw-rw-r-- pf       pf      ]  custom.pm
├── [drwxr-sr-x pf       pf      ]  sbin
│   └── [-rw-rw-r-- pf       pf      ]  httpd.aaa-docker-wrapper    <--- not 
exec
└── [drwxr-sr-x pf       pf      ]  scripts
    └── [-rw-rw-r-- pf       pf      ]  ddi_lookup.sh    <--- not exec
```

To Reproduce
Steps to reproduce the behavior:
 - Add files into `/usr/local/pf/conf/` on master
 - Add additionnal files list to `/usr/local/pf/conf/cluster-files.txt` on 
master
 - Set mod on one file to 777 to test on master
 - Force sync with `/usr/local/pf/bin/cluster/sync --as-master` on master
 - See files on slaves without proper mod

Synchronized files rights (mod) should be the same as on the master (like a 
real rsync).

If anyone notices the problem.

Pierre.


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to