I've run into a chicken-and-egg problem with Casper Imaging and the Jamf Cloud Distribution Point: in order to add a disk image file (.dmg) to an imaging Configuration, it has to be in my main repository. But when I try to upload it to my Jamf Cloud Distribution Point, it fails. Update: I was wrong in my original post by attributing the problem to the current 5GB file limit from Amazon S3), specifically,
With a single PUT operation you can upload objects up to 5 GB in size.
But in order to use that .dmg file in Casper Imaging (like with Target Mode imaging), you need that .dmg file to be available in a Configuration (which you create with Casper Admin) as well as in your local repository.
Here is how I work around the 5GB limitation with an empty placeholder file. Your workflow might vary from mine, but I hope this gives you a start.
I've been told that I should be able to upload via Jamf Pro instead of Casper Admin, but I tried and it failed for me, at least with hosted Jamf Pro. If it works for you, then you don't need my workaround.
- Prepare to replicate your JAMF Cloud Distribution Point to a local volume of a Mac you'll use for imaging:
Use Terminal to create a local repository and allow yourself to write to it:
sudo mkdir /jamf
(you can replace /jamf with /casper or whatever you like, but be consistent)
sudo chown ladmin /jamf
(of course, replace ladmin with the name of your local administrator name)
Open Casper Admin.
Open a new Finder window, choose Go > Computer.
Double-click your boot volume so you can see the /jamf folder (it won't be displayed with the leading slash; I just refer to it like that in written instructions)
Drag your /jamf folder to the sidebar in Casper Admin. - Create two folders, one for the real AutoDMG file, and one for the empty placeholder file (in the commands below, the tilde, ~, signifies the home folder of the currently-logged-in user):
mkdir ~/Desktop/Zero-Byte-File
mkdir ~/Desktop/Real-DMG-File - Use AutoDMG to create an image:
Use AutoDMG, the latest version of the OS X or macOS installer ("Install macOS Sierra" - but from 10.11 make a 10.11 image, and use 10.12 to make a 10.12 image), and any additional apps or packages in .pkg format, to make a never-been-booted .dmg of the OS. Let's say you name this "MyUnbootedImage.hfs.dmg"
Save the file to ~/Desktop/Real-DMG-File. - Use Terminal to create an empty placeholder file:
Use the touch command, which either updates the time stamp on an existing file, or creates a new file if one doesn't exist yet. Use the same name as you used for the real AutoDMG file:
touch ~/Desktop/Zero-Byte-File/MyUnbootedImage.hfs.dmg
- Copy the placeholder file to your local repository:
cp ~/Desktop/Zero-Byte-File/MyUnbootedImage.hfs.dmg /jamf/Packages/MyUnbootedImage.hfs.dmg
- Copy the placeholder file to the JAMF Cloud Distribution Point:
Open Casper Admin if it isn't open yet.
In the Casper Admin sidebar, in the Repository section in the upper-left corner, select All Items.
Drag the empty ~/Desktop/Zero-Byte-File/MyUnbootedImage.hfs.dmg file into Casper Admin. - Configure the settings for the placeholder file:
In Casper Admin double-click the placeholder file you just dragged into Casper Admin.
Click the General tab then set the Category if applicable (I usually use "OS").
Don't select the checkbox ("Item is a DMG...")
Click the Options tab then set the Priority to 1.
Leave the other options at their defaults.
Close the Information for MyUnbootedImage.hfs.dmg window. - Add the placeholder to a Configuration:
Drag the placeholder into the appropriate Configuration in the Casper Admin sidebar.
If you don't already have an imaging configuration, click New Config in the Casper Admin toolbar. - Replicate:
Select the local repository (/jamf) in Casper Admin, then click Replicate.
Don't worry that when you open Casper Admin again, the placeholder appears in red. - Save and quit Casper Admin.
- Copy the useful .dmg file to your local repository so that Casper Imaging can use it:
cp ~/Desktop/Real-DMG-File/MyUnbootedImage.hfs.dmg /jamf/Packages/MyUnbootedImage.hfs.dmg
- Use Casper Imaging:
In Casper Imaging, the configuration with the dmg should now be available, and you can use Target Mode imaging.
Don't worry, you do not need to copy the empty .dmg back to your local repository when you replicate again!