On Tuesday, May 21, 2013 3:48:55 PM UTC+2, Rob White wrote:

> Is anyone using git to mange version control for networking devices? I 
> already use the CLI over SSH to manage my Cisco IOS & ProCurve devices. I 
> would love a tool to help show when I make changes and keep a repository of 
> the changes and previous configs. I am jealous of my counterpart in 
> dev-land having version control while working on the code. Any thoughts 
> from the community on accomplishing this or am I looking at 
> this incorrectly? I would need to have a closed local git server for me and 
> my team, due to the nature of the content.  

If the devices' configuration is managed as files that you can transfer 
over SSH, it's straight forward how to manage the files with Git:

# transfer *.conf files from the device to ~/cisco-123/ - the folder which 
will become the Git repository where you track changes for this device
cd ~/cisco-123
git init
git add .
git commit -m "initial device configuration"
# work work work on files
git commit -am "Close port 1234 in firewall"
# transfer filese back to device for testing

The downside is that if you want to make changes directly on the devices, 
you have to download the files to your PC with the Git repo in order to see 
what the changes are.

Once you've got a workflow figured out, you can set up a shared Git 
repository for you team, using Gitblit or some other kind of Repo manager 
(a number of other factors will count into that decision).

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to