Updated READ MEs and sample ManagedInstalls.plist.

git-svn-id: http://munki.googlecode.com/svn/trunk@90 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-05-22 19:19:37 +00:00
parent e83002dddd
commit ef9f700ef0
3 changed files with 20 additions and 9 deletions

View File

@@ -5,10 +5,16 @@
<key>managed_install_dir</key>
<string>/Library/Managed Installs</string>
<key>manifest_url</key>
<string>http://webserver/swrepo/catalogs/</string>
<string>http://webserver/repo/manifests/</string>
<key>client_identifier</key>
<string>arbitrary_catalog_name</string>
<key>sw_repo_url</key>
<string>http://webserver/swrepo</string>
<string>http://webserver/repo</string>
<key>logging_level</key>
<integer>1</integer>
<key>do_apple_softwareupdate</key>
<false/>
<key>softwareupdateserver_url</key>
<string>http://xserve.myorg.com:8088/</string>
</dict>
</plist>

View File

@@ -1,7 +1,10 @@
The tools get their configuration from /Library/Preferences/ManagedInstalls.plist
Currently only four values are defined, and if the file is missing munki uses these defaults:
If the file is missing munki uses these defaults:
prefs['managed_install_dir'] = "/Library/Managed Installs"
prefs['manifest_url'] = "http:/managedinstalls/cgi-bin/getmanifest"
prefs['sw_repo_url'] = "http://managedinstalls/swrepo"
prefs['manifest_url'] = "http:/munki/repo/manifests/"
prefs['sw_repo_url'] = "http:/munki/repo"
prefs['logging_level'] = 1
prefs['client_identifier'] = (fully-qualified hostname)
prefs['do_apple_softwareupdate'] = False
prefs['softwareupdateserver_url'] = None

View File

@@ -79,12 +79,14 @@ Change the managed_install_dir key to point to your desired directory. My eventu
Change the manifest_url in /Library/Preferences/ManagedInstalls.plist to http:/yourwebserver/repo_root/manifests/
Change the client_identifier to the name of the actual catalog file on the webserver (perhaps simply client_manifest.plist for now...)
Change the sw_repo_url to the url to repo_root.
Copy this file to /Library/Preferences.
Copy this file to /Library/Preferences/.
Now, from the code/client directory:
Run installcheck. You should get a copy of the client_manifest.plist in your managed_install_dir/manifests/. It should get more info on the items in the manifest by consulting the catalog(s) and decide if they need to be installed. If so, the installer items will be copied to managed_install_dir/Cache/
Finally: as root, run ManagedInstaller, and the items in managed_install_dir/Cache should be installed. Logs from this process go in managed_install_dir/Logs
The process logs its activities at managed_install_dir/Logs/ManagedInstallerCheck.log
Finally: as root, run managedinstaller, and the items in managed_install_dir/Cache should be installed. Logs from this process go in managed_install_dir/Logs/ManagedInstaller.log
More notes:
@@ -110,11 +112,11 @@ For items that are not installed, or have an older version, we download installe
Using the dependency info and the catalog items, we build a list of items to be installed and their order. (InstallInfo.plist)
Tool: ManagedSoftwareUpdate.app
Tool: Managed Software Update.app
This app will be used to notify the user that there are updates to be installed, and ask them to log out to have them installed, or notify them that they will be installed at next logout.
Tool: ManagedInstaller
Tool: managedinstaller
This tool uses the InstallInfo.plist file generated by installcheck (to determine install order) and the staged installer items and installs everything, removing the cached installer items as they are installed. If a reboot is required, the machine is rebooted after all installs are complete.