-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 29 Jan 2009 16:04:34 +0530 Vikram Rai <[email protected]> wrote:
> Hi, > > We have put together a document for deploying the Spacewalk dev > environment on CentOS 5. > There were a couple of steps that we had to do in order to make it > working on our local machines. > > Please go through the attached document and let us know if the > document seems ok. > We had a suggestion to put this document as a separate link on the > wiki for install instructions for CentOS. > > Regards, > > Vikram Rai > Enterprise DB My personal preference would be to keep this in the same document if it's at all possible. If somewhere the steps are deviating massively then maybe it's worth it but between Cent OS 5 and RHEL 5 I can't see the need for another entire dev guide. (which is just all the more likely to get out of date as the last one did) What did you guys need RPMForge repos for? I haven't needed these at any point to run Spacewalk. "rpmlint" package should be available in the EPEL repository for EL5. Looks like a lot of good additions and fixes for the current guide but I would greatly prefer they get added to the appropriate section rather than a new page. Thanks for your efforts! Devan > > On Wed, Jan 28, 2009 at 4:12 AM, Gurjeet Singh < > [email protected]> wrote: > > > 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 > > - -- Devan Goodwin <[email protected]> Software Engineer Spacewalk / RHN Satellite Halifax, Canada 650.567.9039x79267 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmBq6cACgkQAyHWaPV9my7shQCgqQuxvx/J3niFz5RbZSbJMYP5 sXAAnAls7PbzlJhrLW4s19FroAxk2lYL =saYh -----END PGP SIGNATURE----- _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
