Download simp-4.2.- PDF - Read the Docs
Transcript
SIMP Documentation, Release 0-0 3.10.3 Migration Script Features The migration script will perform the following actions on your system: • Remove the puppet-server package from your system • Install the puppetserver package onto your system • Update all packages from your repositories • Create a backup folder at /etc/puppet/environments/pre_migration.simp • Create a Git repository in the backup folder under a timestamped directory • Commit all current materials from /etc/puppet into the backup Git repository • Checkout the backup Git repository under the timestamped directory as backup_data for ease of use • Migrate all existing data into the new simp environment under /etc/puppet/environments/simp Note: All future upgrades will only affect the new simp environment. You may create new environments and/or modify the contents of /etc/puppet/modules without fear of the SIMP packages overwriting your work. 3.10.4 Migration Script Execution 1. Copy the new SIMP ISO onto your system. For the purposes of these instructions, we will refer to this is SIMP_Update.iso. Please ensure that you are in the directory with the ISO prior to proceeding. Extract the new simp-utils package using the following command: isoinfo -i SIMP_Update.iso -R -x `isoinfo -i SIMP_Update.iso -Rf | grep noarch/simp-utils` > sim 2. Install the new simp-utils RPM: yum -y localupdate simp-utils*.rpm 3. Unpack the DVD onto the system: /usr/local/bin/unpack_dvd SIMP_Update.iso 4. Run the migration script (this may take some time, do NOT hit CTRL-C!): /usr/share/simp/upgrade_script/migrate_to_environments 5. Run the puppet agent: puppet agent -t 6. Stop the new puppetserver service (it may not be running): service puppetserver stop 7. Remove any left over PID files: rm /var/run/puppetserver/puppetserver 8. Kill any running puppet master processes: pkill -f 'puppet master' 9. Wait for 10 seconds to let things finalize if necessary: 3.10. Upgrading SIMP 67