The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

4.2 Configuring Master and Slave Spacewalk Servers With the spacewalk-sync-setup Command

Note

Before you can configure ISS, Spacewalk must be installed and running on both the master and slave servers.

The spacewalk-sync-setup command is available in the spacewalk-utils package.

On either of the Spacewalk servers, run the spacewalk-sync-setup command.

# spacewalk-sync-setup --apply --create-templates \
  --ms=master_swksvr_FQDN --ml=master_swadm --mp=master_swadm_passwd \
  --ss=slave_swksvr_FQDN --sl=slave_swadm --sp=slave_swadm_passwd

where master_swksvr_FQDN is the fully qualified domain name of the Spacewalk server that will act as the master server and the master_swadm and master_swadm_passwd values specify the Spacewalk administrator's user name and password for that server.

slave_swksvr_FQDN is the fully qualified domain name of the Spacewalk server that will act as the slave server. slave_swadm and slave_swadm_passwd are the Spacewalk administrator's user name and password for that server.

The following is the typical output that is displayed when running this command:

# spacewalk-sync-setup --apply --create-templates \
  --ms=swksvr.mydom.com --ml=swadm --mp=swpass \
  --ss=swksvr2.mydom.com --sl=swadm2 --sp=swpass2 
INFO: Connecting to swadmin@swksvr.mydom.com
INFO: Connecting to swadmin@swksvr2.mydom.com
INFO: Generating master-setup file /root/.spacewalk-sync-setup/master.txt
INFO: Generating slave-setup file /root/.spacewalk-sync-setup/slave.txt
INFO: About to wget master CA cert: [wget -q -O 
/usr/share/rhn/swksvr.mydom.com_RHN-ORG-TRUSTED-SSL-CERT 
http://swksvr.mydom.com/pub/RHN-ORG-TRUSTED-SSL-CERT]
INFO: Applying master-setup /root/.spacewalk-sync-setup/master.txt
INFO: Applying slave-setup /root/.spacewalk-sync-setup/slave.txt

A copy of the master's CA certificate is stored on the slave as /usr/share/rhn/swksvr.mydom.com_RHN-ORG-TRUSTED-SSL-CERT.

You can then map local organizations on the slave server to organizations that the master server exports. See Section 4.5, “Mapping a Local Organization to an Exported Organization by Using the Spacewalk Web Interface”.