git/list[1] front-page[2] threads[3] people[4] search[5] about
 

workflow and repository orginization for tracking router configs

From
Ddavid@lang.hm <david@lang.hm>
Date
Jan 13, 2010, 18:26 UTC
Message-ID
<alpine.DEB.2.00.1001131013430.4866@asgard.lang.hm>

I need to track router/firewall configs for several hundred to a few thousand devices.

For each device the config is a single file.
Each device is updated independantly of the others.

The configs diff well not only against prior versions but against each other.

The different devices are accessable (in many cases via serial ports) from different boxes (in different datacenters in many cases)

I need to data to be replicated across many locations

I want to be able to easily/quickly track changes to a particular device, and compare different devices against each other.

I am thinking that a DVCS like git may be a good fit for this situation. I can do commits on the boxes that can directly access the devices, and then do fetches/pulls between boxes to make sure that every box has the full history of every device.

The question is, what is the best way to orginize this data.
One approach is to have a seperate branch for each device.
   This has the advantage that each branch can have a new config committed 
independantly of the others, making pulls/fetches trivial

Another approach is to have one branch with a different file for each device.

   This is easy for people to understand, but it seems to me that it would 
make pulling from different boxes that updated different files an issue, 
as well as adding confustion over which commit is related to which device.

Any thoughts or suggestions on what people think would work well? (both from a usability and from an efficiancy point of view)

David Lang
Message 1 of 1 in “workflow and repository orginization for tracking router configs”
  1. david@lang.hmJan 13, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.