There's a lot of water under that particular bridge. However, I can tell you that I
also looked into using the SCM option in Cobbler to use SVN and for whatever reason I was
not able to get it to work either. What I did do to hack around the issue was write a
bash trigger that runs after `cobbler sync`. The script isn't perfect, for instance
it doesn't account for temp files or files that are deleted. Though you may get some
use out of it. Be sure to check the wiki for any pertinent info:
https://fedorahosted.org/cobbler/wiki/CobblerTriggers
Good luck,
byron
----------
[root@server ~]# cat /var/lib/cobbler/triggers/sync/post/svn-commit.sh
#!/bin/bash
echo ""
cd /etc/cobbler
echo "Checking for new files in /etc/cobbler to add to SVN"
for x in `svn status | grep '?' | awk '{print $2}'`; do /usr/bin/svn add
$x || exit 1; done
/usr/bin/svn ci -m "Cobbler sync /etc/cobbler `date +%c`" || exit 1
echo ""
cd /var/lib/cobbler
echo "Checking for new files in /var/lib/cobbler to add to SVN"
for x in `svn status | grep '?' | awk '{print $2}'`; do /usr/bin/svn add
$x || exit 1; done
/usr/bin/svn ci -m "Cobbler sync /var/lib/cobbler `date +%c`" || exit 1
echo ""
cd /usr/lib/python2.4/site-packages/cobbler
echo "Checking for new files in /usr/lib/python2.4/site-packages/cobbler to add to
SVN"
for x in `svn status | grep '?' | awk '{print $2}'`; do /usr/bin/svn add
$x || exit 1; done
/usr/bin/svn ci -m "Cobbler sync /var/lib/cobbler `date +%c`" || exit 1
echo ""
exit 0
----------
From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Jacob Hunt (jacobhunt)
Sent: Tuesday, June 01, 2010 2:15 PM
To: cobbler(a)lists.fedorahosted.org
Subject: SCM control and subversion?
Is "git" the only supported method of SCM control? In /etc/cobbler/settings for
the comments above scm_track_mode it states "git is the recommend SCM"
They way I read that is that others may work? Am I incorrect with that, I have set the
mode to "svn" and "subversion" and I get an error of "currently
unsupported SCM type"
So I guess my question boils down to is git the only thing that works right now, and if so
is there plans to include other methods?
Thanks,
Jacob