[rancid] Simple web-frontend for rancid files?
Eric W. Bates
ericx at whoi.edu
Wed Oct 10 15:30:54 UTC 2018
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 git at gitlab.foobar.com:cns/RANCiD.git (fetch)
gitlab git at 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> |
> *cgauthier at comscore.com* <mailto:cgauthier at 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-bounces at shrubbery.net> on behalf
> of Andrew Biddle <andyb at the-space.net>
> *Date: *Monday, October 8, 2018 at 3:16 PM
> *To: *"rancid-discuss at shrubbery.net" <rancid-discuss at 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-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4188 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20181010/9da04a5b/attachment.bin>
More information about the Rancid-discuss
mailing list