Export from Spacewalk to Katello Configuration and Channels

Spacewalk   Login in you spacewalk server via ssh
1.-Export Spacewalk Data with the following command

#spacewalk-export --export-dir=/export

2.- Import the data into the /tmp of katello and uncompress

#tar xf spacewalk_export.tar.gz
 
  Get hammer cli for import the data into katello

wget https://github.com/Katello/hammer-cli-import/archive/master.zip

mkdir hammer
mv master.zip hammer/
cd hammer/
unzip master.zip
cd hammer-cli-import-master/
mkdir ~/.hammer
cat >> ~/.hammer/cli_config.yml << EOF
:modules:
- hammer_cli_import
EOF
cd hammer/hammer-cli-import-master/
env RUBYOPT=-Ilib hammer import all --directoy=/tmp/exports

Comments

  1. Hammer subcommand import is no longer supported and has been removed from hammer. Is there an alternative import method?

    ReplyDelete

Post a Comment

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra