RedHatSatellite / satellite-clone

Utility to assist cloning an existing Satellite 6 server to a new host
GNU General Public License v3.0
37 stars 31 forks source link

Exclude /var/lib/foreman/public/assets from cloning #361

Closed johnpmitsch closed 5 years ago

johnpmitsch commented 5 years ago

Fixes #360

johnpmitsch commented 5 years ago

Testing now, but on an initial clone, there is only one file and it belongs to the foreman rpm

[root@sat-6-5-qa-rhel7 satellite-clone]# for f in /var/lib/foreman/public/assets/.sprockets-manifest-*.json; do echo $f - $(rpm -qf $f); done
/var/lib/foreman/public/assets/.sprockets-manifest-93e1ae8f46c83d2847a28f5dc7a7c302.json - foreman-1.20.1.34-1.el7sat.noarch

This is opposed to two files with one having no owner, meaning one was copied from the backup

johnpmitsch commented 5 years ago

Tests passed and none of the boxes have duplicate files:

PLAY RECAP *********************************************************************
192.168.121.123            : ok=21   changed=16   unreachable=0    failed=0   
192.168.121.16             : ok=21   changed=16   unreachable=0    failed=0   
192.168.121.232            : ok=21   changed=16   unreachable=0    failed=0   
192.168.121.244            : ok=21   changed=16   unreachable=0    failed=0   
sthirugn commented 5 years ago

Looks good!