Discussion:
[rancid] Fwd: rancid and cvsweb...plz...help...
harsha senaratna
2010-09-01 10:20:08 UTC
Permalink
hi

i installed rancid and working fine while back up the network
devices.But i cant access the configuration files using cvsweb.
once i get into cvsweb nothing displayed

here are my configurations

vi /etc/cvsweb/cvsweb.conf

@CVSrepositories = (
       'local'   => ['Local Repository', '/var/cvs'],
       'networking' => ['Networking Devices',
'/usr/local/rancid/var/networking'],

vi /usr/local/rancid/etc/rancid.conf

BASEDIR=/usr/local/rancid/var; export BASEDIR
CVSROOT=$BASEDIR/CVS; export CVSROOT

[***@RANCID01 var]# pwd

/usr/local/rancid/var

[***@RANCID01 var]# ls -al
total 20
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 .
drwxrwx--- 9 rancid netadm 4096 Sep  1 14:09 ..
drwxrwxr-x 3 rancid netadm 4096 Aug 31 16:22 CVS
drwxr-x--- 2 rancid netadm 4096 Sep  1 14:58 logs
drwxr-x--- 3 rancid netadm 4096 Sep  1 14:59 networking
[***@C-SVRANCID01 var]#

configuration file resides cd /usr/local/rancid/var/networking/configs/


[***@RANCID01 configs]# ls
10.100.100.1  10.100.140.1  10.100.234.1  10.100.252.1

[***@RANCID01 configs]#

Is it a issue related to permissions? please help me to get rid of
this small issue.

im willing to give more info you need

tnx
Gareth Hopkins
2010-09-01 16:09:25 UTC
Permalink
Hi,

You need to export your CVS directory, so change
/usr/local/rancid/var/networking to /usr/local/rancid/var/CVS in cvsweb.conf

Cheers,

Gareth
Post by harsha senaratna
hi
i installed rancid and working fine while back up the network
devices.But i cant access the configuration files using cvsweb.
once i get into cvsweb nothing displayed
here are my configurations
vi /etc/cvsweb/cvsweb.conf
@CVSrepositories = (
'local' => ['Local Repository', '/var/cvs'],
'networking' => ['Networking Devices',
'/usr/local/rancid/var/networking'],
vi /usr/local/rancid/etc/rancid.conf
BASEDIR=/usr/local/rancid/var; export BASEDIR
CVSROOT=$BASEDIR/CVS; export CVSROOT
/usr/local/rancid/var
total 20
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 .
drwxrwx--- 9 rancid netadm 4096 Sep 1 14:09 ..
drwxrwxr-x 3 rancid netadm 4096 Aug 31 16:22 CVS
drwxr-x--- 2 rancid netadm 4096 Sep 1 14:58 logs
drwxr-x--- 3 rancid netadm 4096 Sep 1 14:59 networking
configuration file resides cd /usr/local/rancid/var/networking/configs/
10.100.100.1 10.100.140.1 10.100.234.1 10.100.252.1
Is it a issue related to permissions? please help me to get rid of
this small issue.
im willing to give more info you need
tnx
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
harsha senaratna
2010-09-02 03:02:50 UTC
Permalink
hi

tnx a lot for your response.I did the change what you have mentioned.
I attached the screen shot after did the change now i only see the
CVSROOT directory.

Im not that much expert with cvs.

[***@RANCID01 CVS]# pwd

/usr/local/rancid/var/CVS

[***@RANCID01 CVS]# ls -al
total 16
drwxrwxr-x 4 rancid netadm 4096 Sep 2 08:26 .
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 ..
drwxrwxr-x 3 rancid netadm 4096 May 17 10:03 CVSROOT

[***@RANCID01 configs]# pwd
/usr/local/rancid/var/networking/configs
[***@RANCID01 configs]# ls -al
total 44
drwxrwxrwx 2 rancid netadm 4096 Sep 2 00:12 .
drwxr-x--- 3 rancid netadm 4096 Sep 2 00:12 ..
-rwxrwxrwx 1 rancid netadm 8811 Sep 2 00:05 10.100.100.1
-rw-r----- 1 rancid netadm 3080 Sep 2 00:05 10.100.140.1
-rw-r----- 1 rancid netadm 6419 Sep 2 00:05 10.100.234.1
-rw-r----- 1 rancid netadm 8756 Sep 2 00:06 10.100.252.1


so kindly help me to get solve this.

tnx
Gareth Hopkins
2010-09-02 07:51:20 UTC
Permalink
Hi,

Looks like your cvs tree is not correctly configured.

What output do you get if you run the following (as rancid user)

cvs log /usr/local/rancid/var/networking/configs/10.100.100.1

Cheers,

Gareth
Post by harsha senaratna
hi
tnx a lot for your response.I did the change what you have mentioned.
I attached the screen shot after did the change now i only see the
CVSROOT directory.
Im not that much expert with cvs.
/usr/local/rancid/var/CVS
total 16
drwxrwxr-x 4 rancid netadm 4096 Sep 2 08:26 .
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 ..
drwxrwxr-x 3 rancid netadm 4096 May 17 10:03 CVSROOT
/usr/local/rancid/var/networking/configs
total 44
drwxrwxrwx 2 rancid netadm 4096 Sep 2 00:12 .
drwxr-x--- 3 rancid netadm 4096 Sep 2 00:12 ..
-rwxrwxrwx 1 rancid netadm 8811 Sep 2 00:05 10.100.100.1
-rw-r----- 1 rancid netadm 3080 Sep 2 00:05 10.100.140.1
-rw-r----- 1 rancid netadm 6419 Sep 2 00:05 10.100.234.1
-rw-r----- 1 rancid netadm 8756 Sep 2 00:06 10.100.252.1
so kindly help me to get solve this.
tnx
Per Carlson
2010-09-02 08:08:24 UTC
Permalink
Post by harsha senaratna
tnx a lot for your response.I did the change what you have mentioned.
I attached the screen shot after did the change now i only see the
CVSROOT directory.
you have a couple of other options as well in cvsweb.conf
Post by harsha senaratna
@CVSrepositories = (
'local' => ['Local Repository', '/var/cvs'],
'networking' => ['Networking Devices',
'/usr/local/rancid/var/networking'],
# The default CVS root. Note that @CVSrepositories is list, not a hash,
# so you'll want to use 2 * 0-based-index-number here; or set this directly
# to the default's symbolic name. Unless specified, the first valid one in
# @CVSrepositories is used as the default.
#
# For example:
#
#$cvstreedefault = $CVSrepositories[2 * 0];
#$cvstreedefault = 'local';

as you have configured the 'local' repository first in
@CVSrepositories, it will use that as default. either get rid of it
(or comment it out), or add a specific default. in your case that
would look like:

$cvstreedefault = 'networking';


you can also hide the CVSROOT:

%DEFAULTVALUE = (
# hidecvsroot: Don't show the CVSROOT directory. Note that this is
# just the default for a user settable option (like others in this
# %DEFAULTVALUE hash); it won't really prevent access to CVSROOT.
# See @ForbiddenFiles for that.
# 1 Do not include the top-level CVSROOT directory in dir listings
# 0 Treat the top-level CVSROOT directory just like all other dirs
"hidecvsroot" => "1",
--
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.
Loading...