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

Fixes #27808 - Use foreman-maintain to restore backup #364

Closed jturel closed 4 years ago

jturel commented 4 years ago

Seems to work well. I left some comments with questions about areas of the playbook that need some explanation. Opted to not do any other refactoring at this time, but open to feedback on that!

jturel commented 4 years ago

build results:

PLAY RECAP *********************************************************************
192.168.121.149            : ok=21   changed=16   unreachable=0    failed=0
192.168.121.153            : ok=21   changed=16   unreachable=0    failed=0
192.168.121.165            : ok=21   changed=16   unreachable=0    failed=0
192.168.121.5              : ok=21   changed=16   unreachable=0    failed=0

Thursday 22 August 2019  19:15:00 -0400 (3:28:48.866)       3:41:23.142 *******
===============================================================================
test-clone : run satellite-clone playbook ---------------------------- 12528.87s
setup : install ansible ----------------------------------------------- 245.05s
setup : install the latest version of git ----------------------------- 202.30s
setup : install the latest version of wget ---------------------------- 148.60s
setup : register with subscription-manager ----------------------------- 77.70s
setup : enable RHEL 7 extras (for ansible) ----------------------------- 49.30s
setup : clone satellite-clone ------------------------------------------- 6.88s
setup : get backup files ------------------------------------------------ 4.37s
setup : run reallocation script ----------------------------------------- 3.54s
Gathering Facts --------------------------------------------------------- 3.25s
Gathering Facts --------------------------------------------------------- 1.73s
setup : chmod 755 helper scripts ---------------------------------------- 1.59s
setup : check if satellite-clone-vars.yml exists ------------------------ 1.50s
setup : copy satellite-clone-vars.yml ----------------------------------- 1.39s
setup : rm satellite-clone dir (if exists) ------------------------------ 1.35s
setup : update backup_dir variable -------------------------------------- 0.90s
setup : rebase PR branch ------------------------------------------------ 0.86s
setup : copy /etc/rhsm/rhsm.conf.kat-backup ----------------------------- 0.81s
setup : create backup directory ----------------------------------------- 0.81s
setup : stat ------------------------------------------------------------ 0.80s
jturel commented 4 years ago

@johnpmitsch updated

johnpmitsch commented 4 years ago

@jturel the playbook looks good! Can you kick off another dolly run to just be sure everything is fine? (I know it was just comment changes but just want to be sure)

jturel commented 4 years ago

Dolly build started

jturel commented 4 years ago

Last build was also green! :+1: