NetSUS trick to share

roiegat
Contributor III

So I've been working on getting three NetSUS up and running and playing around with configurations and best setups. My goal is to get just the updates for Yosemite and also be able to use the Software Update Server portion in Computer Management settings on our Casper server.

Just for info, I basically added this to my preferences.plist file in reposado: <key>AppleCatalogURLs</key> <array> <string>http://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string> </array> <key>LocalCatalogURLBase</key>

So the issue is that when you fine tune your catalogs, it no longer has an "index.sucatalog" on the root directory. Now I could write a script or configuration profile that points the computers to correct NetSuS...but I wanted to really use the Software Update Server method because I want to be able use the network regions to set it. To use this, the "index.sucatalog" has to be on the root.

So my fix.....use a symbolic link. It's very simple and works great. SSH into the Netsus and go to the /srv/SUS/html folder and do the following:
ln -s index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog index.sucatalog

Enjoy!

2 REPLIES 2

calumhunter
Valued Contributor

you should probably do that with http rewrite rules based on user agent os version

otherwise if you hit that software update server with a 10.8 client.....

eg. https://github.com/wdas/reposado/blob/master/docs/URL_rewrites.txt

roiegat
Contributor III

@calumhunter Thats a good point...this only works well when all your machines are on the same OS. I've been working the last 3-4 months upgrading all our 10.8 and 10.9 machines to Yosemite and we only have a couple stranglers at this point.

With the URL_rewrites, wouldn't you need to download all the catalogs to being with? Currently I'm only bringing down the Yosemite one (even though it's still 200g).