Hi All,
I followed the guide at
https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup and
tried to setup a dev env on CentOS 5.2.
Here's what I started with:
Clean install of CentOS, with a few packeges that make sense for
Spacewalk like webserver, etc.
Disable SELinux policy in /etc/selinux/config (SELINUX=disabled)
And then while following the instructions, I had to perform the
following 4 additional steps to get the env up and running:
1) During Spacewalk installation, before the following step:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-former
Do this as root:
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-former
http://www.redhat.com/security/db42a60e.txt
2) Instead of
../rel-eng/bin/build.py --test --rpm &&
/tmp/spacewalk-build/noarch/spacewalk-search-*.git.*.noarch.rpm
do this:
../rel-eng/bin/build.py --test --rpm && sudo rpm -Uvh
/tmp/spacewalk-build/noarch/spacewalk-search-*.git.*.noarch.rpm
3) After 'Web Application Installation' section, I had to replace two
symlinks with their targets, and then restart the spacewalk service.
(as root)
cd /var/www
ls -l html
:::: html -> /home/dev/spacewalk/web/html
mv html html.orig; cp -r -L /home/dev/spacewalk/web/html html
cd /usr/share/tomcat5/webapps/
ls -l rhn
:::: rhn -> /home/dev/spacewalk/java/rhnwebapp
mv rhn rhn.orig; cp -r -L /home/dev/spacewalk/java/rhnwebapp rhn
/usr/sbin/rhn-satellite restart
4) Under section 'Deploying development schema' the usage of
/etc/init.d/rhn-satellite should be changed to /usr/sbin/rhn-satellite.
5) The GITDIR environment variable is used in three places, but is never
asked to be initialized anywhere. In my case, when doing 'Web Application
Installation' section, GITDIR was supposed to be /home/dev/ and when in
section 'Deploying development schema' it is supposed to point to
/home/dev/spacewalk (otherwise cd $GITDIR/schema/spacewalk wouldn't work).
So, IMHO, it should point to /home/dev/spacewalk so that ls $GITDIR
shows schema/ contrib/ playpen/ etc.
Also, since this variable can be easily confused with Git's own GIT_DIR
(which is seldom used, but points to .git/ in a repo), lets change this
variable to SRCDIR or something similar.
Best regards,
--
gurjeet[[email protected]
EnterpriseDB http://www.enterprisedb.com
singh.gurj...@{ gmail | hotmail | indiatimes | yahoo }.com
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel