Discussion:
[rancid] Simple web-frontend for rancid files?
Andrew Biddle
2018-10-08 22:15:30 UTC
Permalink
I just installed rancid and found WebSVN to front-end it. (About 5 years
ago this is the setup I used, so it's what I'm sort of familiar with.) I
have rancid working, but I need a better front-end. WebSVN is a little
clunky (perhaps it's the way I've built it?) and doesn't have a simple way
to just download a file. It does a good job of displaying configs and
comparing two versions. But it I want to copy the file locally, I'm copy
and pasting... It also appears to be a dropped project, so it doesn't look
like I should ever expect improvements.

Anything better out there? I can switch over to git if there's a better
interface in that direction. The front-end needs to be web-based so that
I can just point people to a URL. It should have a means to compare
various revisions... and of course a means to pull the files down to your
local system. It doesn't need to support any sort of push from client to
repository since that's something that I only want rancid doing...

Thought? What are you all using?

Thanks in advance!
Gauthier, Chris
2018-10-09 18:22:02 UTC
Permalink
I loved CVSweb in previous installations. Now that I use Git for the VCS, there really is no “nice” and simple implementation (like CVSweb is). I’m open to suggestions, as I do have to follow KISS for some of my colleagues who are not Linux experts (nor should they necessarily need to be).

--Chris



Chris Gauthier Senior Network Engineer | comScore, Inc.
t +1 (503) 331-2704 |
***@comscore.com
317 SW Alder Street, Suite 700 | Portland, OR 97204 United States
comscore.com
​​​This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
From: Rancid-discuss <rancid-discuss-***@shrubbery.net> on behalf of Andrew Biddle <***@the-space.net>
Date: Monday, October 8, 2018 at 3:16 PM
To: "rancid-***@shrubbery.net" <rancid-***@shrubbery.net>
Subject: [rancid] Simple web-frontend for rancid files?

I just installed rancid and found WebSVN to front-end it. (About 5 years ago this is the setup I used, so it's what I'm sort of familiar with.) I have rancid working, but I need a better front-end. WebSVN is a little clunky (perhaps it's the way I've built it?) and doesn't have a simple way to just download a file. It does a good job of displaying configs and comparing two versions. But it I want to copy the file locally, I'm copy and pasting... It also appears to be a dropped project, so it doesn't look like I should ever expect improvements.

Anything better out there? I can switch over to git if there's a better interface in that direction. The front-end needs to be web-based so that I can just point people to a URL. It should have a means to compare various revisions... and of course a means to pull the files down to your local system. It doesn't need to support any sort of push from client to repository since that's something that I only want rancid doing...

Thought? What are you all using?

Thanks in advance!
Eric W. Bates
2018-10-10 15:30:54 UTC
Permalink
We have a copy of Gitlab CE which we use for a lot of git repositories.
It's got a nice front end. So we do a git push from RANCiD to Gitlab
every time RANCiD commits. I stole this idea from the book: "5 Unsung
Tools of DevOps"

We already use ssh public key authentication on most of our switching
gear; so the RANCiD user (rancid) already has keys set up. We added an
account for rancid on gitlab and added its public key for authentication.

- set up a repository on gitlab writable by your RANCiD user
- add the gitlab repository URL as a second remote so your remotes look
something like:

# git remote -v
gitlab ***@gitlab.foobar.com:cns/RANCiD.git (fetch)
gitlab ***@gitlab.foobar.com:cns/RANCiD.git (push)
origin /usr/local/rancid3/var/gitroot/cns (fetch)
origin /usr/local/rancid3/var/gitroot/cns (push)

- add a post-commit hook to the repository on RANCiD such that it pushes
to gitlab:

# cat .git/hooks/post-commit
#!/bin/sh
# this just pushes a copy of this repo to gitlab everytime there's a commit
/usr/bin/git push gitlab

It's a little elaborate, but we had Gitlab already.
I also want to add another git push to our Observium server.

On 10/9/18 2:22 PM, Gauthier, Chris wrote:
> I loved CVSweb in previous installations.  Now that I use Git for the
> VCS, there really is no “nice” and simple implementation (like CVSweb
> is).  I’m open to suggestions, as I do have to follow KISS for some of
> my colleagues who are not Linux experts (nor should they necessarily
> need to be).
>
> --Chris
>
> Chris​ Gauthier  Senior Network Engineer  | comScore, Inc.
>
> t +1 *(503) 331-2704* <tel:(503)%20331-2704>  |
> ****@comscore.com* <mailto:***@comscore.com>
>
> 317 SW Alder Street, Suite 700  | Portland, OR 97204  United States
>
> *comscore.com* <http://www.comscore.com/>
>
> ​​​This e-mail (including any attachments) may contain information that
> is private, confidential, or protected by attorney-client or other
> privilege. If you received this e-mail in error, please delete it from
> your system and notify sender.
>
> *From: *Rancid-discuss <rancid-discuss-***@shrubbery.net> on behalf
> of Andrew Biddle <***@the-space.net>
> *Date: *Monday, October 8, 2018 at 3:16 PM
> *To: *"rancid-***@shrubbery.net" <rancid-***@shrubbery.net>
> *Subject: *[rancid] Simple web-frontend for rancid files?
>
> I just installed rancid and found WebSVN to front-end it.   (About 5
> years ago this is the setup I used, so it's what I'm sort of familiar
> with.)   I have rancid working, but I need a better front-end.  WebSVN
> is a little clunky (perhaps it's the way I've built it?) and doesn't
> have a simple way to just download a file.  It does a good job of
> displaying configs and comparing two versions.  But it I want to copy
> the file locally, I'm copy and pasting...  It also appears to be a
> dropped project, so it doesn't look like I should ever expect improvements.
>
> Anything better out there?   I can switch over to git if there's a
> better interface in that direction.   The front-end needs to be
> web-based so that I can just point people to a URL.   It should have a
> means to compare various revisions...   and of course a means to pull
> the files down to your local system.   It doesn't need to support any
> sort of push from client to repository since that's something that I
> only want rancid doing...
>
> Thought?   What are you all using?
>
> Thanks in advance!
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
heasley
2018-10-10 15:36:16 UTC
Permalink
Wed, Oct 10, 2018 at 11:30:54AM -0400, Eric W. Bates:
> - add a post-commit hook to the repository on RANCiD such that it pushes
> to gitlab:

that should not be necessary, if the remote is added to the origin.

http://www.shrubbery.net/pipermail/rancid-discuss/2018-August/010348.html
Andrew Biddle
2018-10-10 18:33:26 UTC
Permalink
I ended up switching over to git and using GitList.

Send like it has a nice interface and does mostly what I need.

Thanks everyone.

On Wed, Oct 10, 2018 at 8:36 AM heasley <***@shrubbery.net> wrote:

> Wed, Oct 10, 2018 at 11:30:54AM -0400, Eric W. Bates:
> > - add a post-commit hook to the repository on RANCiD such that it pushes
> > to gitlab:
>
> that should not be necessary, if the remote is added to the origin.
>
> http://www.shrubbery.net/pipermail/rancid-discuss/2018-August/010348.html
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
Daniel Schmidt
2018-10-11 17:33:38 UTC
Permalink
Two Cents:
LibreNMS generates my router.db but kept wigging out & deleting everything
out of Rancid. Hence, I switched back to CVS and CVSWeb. Hideous 70's
orange, but I got my attic back - perfectly happy with it.

On Wed, Oct 10, 2018 at 12:34 PM Andrew Biddle <***@the-space.net> wrote:

> I ended up switching over to git and using GitList.
>
> Send like it has a nice interface and does mostly what I need.
>
> Thanks everyone.
>
> On Wed, Oct 10, 2018 at 8:36 AM heasley <***@shrubbery.net> wrote:
>
>> Wed, Oct 10, 2018 at 11:30:54AM -0400, Eric W. Bates:
>> > - add a post-commit hook to the repository on RANCiD such that it
>> pushes
>> > to gitlab:
>>
>> that should not be necessary, if the remote is added to the origin.
>>
>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-August/010348.html
>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-***@shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>

--

E-Mail to and from me, in connection with the transaction
of public
business, is subject to the Wyoming Public Records
Act and may be
disclosed to third parties.
Ni Ne
2018-10-09 19:41:00 UTC
Permalink
I recently converted to git and installed gitweb running under Apache. Pretty easy to setup. It's not what I would call great or pretty. The only real gripe I have is drilling into the configs\ folder is a bit clunky. But all we need is a WebUI to make config diffs easier, for our TAC staff.

I made another thread the other week about how to hide the extra CVS\ directories when using it, if you do go that route.
Loading...