Cascading reposado servers

984 views
Skip to first unread message

ken.edgar

unread,
Feb 16, 2012, 9:58:54 AM2/16/12
to reposado
Hello,

Is it possible to cascade reposado instances? For example, I would
like to have one "master" reposado server in my datacenter. Then I
would like to have all my remote reposado servers come to my site to
pull their repositories from. This way I'm only pulling from Apple
once, then everything else is transferred over the WAN.

Many thanks,
Ken Edgar

Greg Neagle

unread,
Feb 16, 2012, 10:06:50 AM2/16/12
to repo...@googlegroups.com
While I think this would be possible, you'd still be faced with performing all the branch maintenance on each server.

What I would do in your situation is have one master reposado server, then use rsync to sync reposado's UpdatesRootDir to the other servers. The files in the UpdatesRootDir are the ones served by the web server and the only files needed by the clients. No need for the respsado code on any of the "slave" servers.

-Greg

A.E. van Bochoven

unread,
Feb 16, 2012, 10:05:23 AM2/16/12
to repo...@googlegroups.com
I recently successfully cloned a reposado repository using repoutil, so I would say that it is certainly possible.

Arjen

MikeW

unread,
Mar 16, 2012, 9:30:54 AM3/16/12
to reposado
Would you then need to rewrite the sync'ed catalogs to specify the
local webserver's URL as Reposado does anyway?

Could we get Reposado to have a 'Cascade' option that will do the sync
from the master repo and rewrite the catalogs?


Thanks,
Mike

Greg Neagle

unread,
Mar 16, 2012, 9:57:48 AM3/16/12
to repo...@googlegroups.com
reposado is an open source product and I accept pull requests!

(I can only justify working on tasks I can use myself, or that aren't too difficult to do quickly. Writing and testing this desired change would require setting up a second reposado server and a fair amount of time. Since I currently have no need for this functionality, and plenty of other work on my plate for other projects, I can't justify the time and resources requires to work on this.)

-Greg

MikeW

unread,
Mar 17, 2012, 9:34:09 AM3/17/12
to reposado
Understood.
I've been meaning to get my head around Python, this might just give
me the push I need to get started.

Thanks,
Mike

On Mar 16, 1:57 pm, Greg Neagle <greg.nea...@disneyanimation.com>
wrote:

Adam Raymond

unread,
Mar 28, 2012, 8:29:08 AM3/28/12
to repo...@googlegroups.com
I've been able to get this set up to have my remote repositories pull from my master repo by editing the reposado preferences.plist and changing the AppleCatalogURLs.

MR IT

unread,
Apr 9, 2012, 9:58:00 PM4/9/12
to repo...@googlegroups.com
Hello Ken,

Did you find a solution for this?

im currently in the same dilemma.
Im currently running Jamf Nation SUS Appliance Linux Based.
I would like to cascade to 80 mac mini Servers...
Using the Built in function from Server 10.7 "Software Update" Service.


Any light could be shed on this? 

Regards
Isaac

Anurag Mohanty

unread,
Apr 9, 2012, 11:07:06 PM4/9/12
to repo...@googlegroups.com
Hi. First posting here... Check docs/reposado_preferences.txt. I believe the setting you're looking for is AppleCatalogURLs, which is the array of apple sus catalogs that you are replicating. If you chose to use a custom value and point it to your master reposado server, then you should be set. For example you would set the following in your preferences.plist
    <key>AppleCatalogURLs</key>
    <array>
        <string>http://my.reposado.server.com/content/catalogs/others/index-leopard.merged-1.sucatalog</string>
        <string>http://my.reposado.server.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog</string>
        <string>http://my.reposado.server.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog</string>  
    </array>


Just a shot in the dark... 

-- Anurag

Greg Neagle

unread,
Jun 18, 2012, 12:50:25 PM6/18/12
to repo...@googlegroups.com
If "the plist file located in .../var/lib/reposado" is "preferences.plist", and this is the same directory that contains repo_sync and repoutil, then you almost certainly have identified the correct file.

-Greg (Not a NetSUS user)

On Jun 18, 2012, at 9:34 AM, Myron Joffe wrote:

Im using JAMF's NetSUS appliance and im trying to setup a cascading SUS.
Do i edit the plist file located in .../var/lib/reposado ?

Myron Joffe

unread,
Jun 19, 2012, 11:40:00 AM6/19/12
to repo...@googlegroups.com
The preferences.plist now looks like below:
Its pointing to the Master SUS catalogue - testing
Does that look correct? 




?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>CurlPath</key>
        <string>/usr/bin/curl</string>
        <key>LocalCatalogURLBase</key>
<string></string>
        <key>UpdatesMetadataDir</key>
        <string>/srv/SUS/metadata/</string>
        <key>UpdatesRootDir</key>
        <string>/srv/SUS/html/</string>
        <key>AppleCatalogURLs</key>
        <array>
        </array>
</dict>
</plist>

Greg Neagle

unread,
Jun 19, 2012, 11:49:36 AM6/19/12
to repo...@googlegroups.com
I don't know what your desired result is.

This will replicate ONLY the Lion Software Update catalog, and will only replicate the testing branch from what I assume is another reposado server you have?

-Greg

Myron Joffe

unread,
Jun 19, 2012, 11:55:51 AM6/19/12
to repo...@googlegroups.com
Correct about the other reposado server. I thought index-lion-snowleopard-leopard.merged-1.sucatalog Did all updates from 10.5 -> 10.7 

Greg Neagle

unread,
Jun 19, 2012, 12:26:41 PM6/19/12
to repo...@googlegroups.com
Nope.
Reply all
Reply to author
Forward
0 new messages