nbalonso.com

DeployStudio Meets Reposado

| Comments

Well it seems that I am lately talking only about reposado, sorry for that but is just that I really  think is a great tool specially after so many headaches using the Apple service for years.

It turns out that when you deploy computer using the great DeployStudio and specify a server URL it does check what version the client is running and “fixes” the URL with the full path. That is including the catalog name for that specific version of OSX.

This would not be a problem if you are running the official Apple’s SUS but with reposado and the .htaccess file I posted on the Bye Bye Apple SUS it encounters a problem. By default on Lion with our current (current as in following the tutorials) it will try to find this http://YourCoolDNSName:8088/index-lion-snowleopard-leopard.merged-1$.sucatalog and will be redirected to http://YourCoolDNSName:8088/content/catalogs/others/index-lion-snowleopard-leopard.merged-1index-lion-snowleopard-leopard.merged-1_production.sucatalog

We can fix this easily by changing the now famous .htaccess file. My approach is to change the file so it re-directs any request that ends in .sucatalog to the correct URL. Here it is:

1
2
3
4
5
6
7
8
9
10
11
12
13
RewriteEngine On
Options FollowSymLinks
RewriteBase  /
RewriteCond %{HTTP_USER_AGENT} Darwin/8
RewriteRule ^.*.sucatalog$ content/catalogs/index$1_production.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/9
RewriteRule ^.*.sucatalog$ content/catalogs/others/index-leopard.merged-1$1_production.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^.*.sucatalog$ content/catalogs/others/index-leopard-snowleopard.merged-1$1_production.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^.*.sucatalog$ content/catalogs/others/index-lion-snowleopard-leopard.merged-1$1_production.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^.*.sucatalog$ content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1$1_production.sucatalog [L]

And voila! fixed. Now you could even navigate to http://YourCoolDNSName:8088/nbalonso.sucatalog and get through.

PS: I promise to talk about something else in the next let say…. 3 posts :)

Comments