Automate Yosemite Upgrade
After a search, the open-source munki tool has the script I need. 


https://github.com/munki/createOSXinstallPkg


This works perfectly for my needs. Also, you could do far worse than AutoDMG which does a similar task for restore based workflows.


https://github.com/MagerValp/AutoDMG