On Monday, March 16, 2026 10:04:25 PM CET, Chris Green wrote:
Ah, but they don't, the whole issue is that some files go to all
hosts, some files go to just one host and some files go to two or
three hosts.  Thus each file needs some sort of metadata to tell which
hosts it's for.

i tackle this 'problem' with a script essentially using rsync copying files from subfolders.

for system wide files:
   rsync <options> <srv>::<module>/<os>/<version>/ /

for host specific files:
   rsync <options> <srv>::<module>/"$HOSTNAME"/ /

and for files that are needed for specific roles:
   rsync <options> <srv>::<module>/<role>/<os>/<version>/ /

of course, the above commands are extremely simplified examples. please consider safety and security as well as recoverability in case something goes wrong. be aware this works only if files are added. if you want to remove a file, then you need some additional logic.

greetings...

Reply via email to