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.
The spacewalk-sync-setup utility 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
master_swksvr_FQDN
is the fully
qualified domain name of the Spacewalk server that will act as
the master server. master_swadm
and
master_swadm_passwd
are 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 example shows typical output from 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 now 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 Using the Spacewalk Web Interface”.