$ sudo defaults write /Library/Preferences/ManagedInstalls.plist SoftwareRepoURL "http://<web_address_of_server>/MunkiRepo"
Password:
$ sudo defaults read /Library/Preferences/ManagedInstalls.plist
{
SoftwareRepoURL = "http://<web_address_of_server>/MunkiRepo";
}
$
Step Two: test the connection and see if the server is found (at this point there is no "stable" manifest made, intentional as a troubleshooting step)
--log--
$ sudo managedsoftwareupdate -vvv
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
Checking for available updates...
Manifest base URL is: http://<web_address_of_server>/MunkiRepo/manifests/
Manifest base URL is: http://<web_address_of_server>/MunkiRepo/manifests/
Getting manifest client_manifest...
follow_redirects is False
WARNING: Skipping invalid HTTP header: Cookie:
Retrieving list of software for this machine...
Download error: http://<web_address_of_server>/MunkiRepo/manifests/stable. Failed (22) with: The requested URL returned error: 404
ERROR: Could not retrieve manifest client_manifest from the server.
ERROR: Error 22: The requested URL returned error: 404
ERROR: Could not retrieve managed install primary manifest.
Finishing...
Getting info on currently installed applications...
Done.
$
Step Three: create "Stable" manifest on server to make sure that works, and gets pulled properly (I just have one app enabled in the manifest for clarity)
--log--
$ sudo managedsoftwareupdate -vvv
Password:
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
Checking for available updates...
Manifest base URL is: http://<web_address_of_server>/MunkiRepo/manifests/
Manifest base URL is: http://<web_address_of_server>/MunkiRepo/manifests/
Getting manifest client_manifest...
follow_redirects is False
WARNING: Skipping invalid HTTP header: Cookie:
HTTP/1.1 200 OK
Date: Tue, 10 Dec 2013 16:48:17 GMT
Server: Apache/2.2.22 (Unix) DAV/2
Last-Modified: Tue, 10 Dec 2013 16:45:00 GMT
ETag: "b77db-149-4ed30d5525b00"
Accept-Ranges: bytes
Content-Length: 329
Content-Type: text/plain
Retrieving list of software for this machine...
0..20..40..60..80..100
Using manifest: stable
**Checking for installs**
** Processing manifest client_manifest.plist for managed_installs
Catalog base URL is: http://<web_address_of_server>/MunkiRepo/catalogs/
Getting catalog Stable...
follow_redirects is False
WARNING: Skipping invalid HTTP header: Cookie:
HTTP/1.1 200 OK
Date: Tue, 10 Dec 2013 16:48:17 GMT
Server: Apache/2.2.22 (Unix) DAV/2
Last-Modified: Tue, 10 Dec 2013 16:45:01 GMT
ETag: "b77e0-249e-4ed30d5619d40"
Accept-Ranges: bytes
Content-Length: 9374
Content-Type: text/plain
Retrieving catalog "Stable"...
0..20..40..60..80..100
* Processing manifest item Firefox for install
Looking for detail for: Firefox, version latest...
Considering 1 items with name Firefox from catalog Stable
Considering item Firefox, version 25.0 with minimum os version required 10.6
Our OS version is 10.8.5
Found Firefox, version 25.0 in catalog Stable
Looking for application Firefox with bundleid: org.mozilla.firefox, version 25.0...
Getting info on currently installed applications...
Skipped app Angry IP Scanner with path /Users/helpdesk/Downloads/Angry IP Scanner.app
Skipped app plugin-container with path /Users/helpdesk/.Trash/Firefox.app/Contents/MacOS/plugin-container.app
Skipped app SMART Utility with path /Users/helpdesk/Downloads/SMART Utility/SMART Utility.app
Skipped app crashreporter with path /Users/helpdesk/.Trash/Firefox.app/Contents/MacOS/crashreporter.app
Skipped app GoogleSoftwareUpdateAgent with path /Users/helpdesk/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app
Skipped app updater with path /Users/helpdesk/.Trash/Firefox.app/Contents/MacOS/updater.app
Did not find this application on the startup disk.
Need to install Firefox
Download base URL is: http://<web_address_of_server>/MunkiRepo/pkgs/
Package name is: Firefox 25.0.dmg
Download URL is: http://<web_address_of_server>/MunkiRepo/pkgs/Firefox%2025.0.dmg
Downloading to: /Library/Managed Installs/Cache/Firefox 25.0.dmg
Downloading Firefox 25.0.dmg from Firefox 25.0.dmg
Downloading Firefox 25.0.dmg from Firefox 25.0.dmg
follow_redirects is False
WARNING: Skipping invalid HTTP header: Cookie:
HTTP/1.1 200 OK
Date: Tue, 10 Dec 2013 16:48:20 GMT
Server: Apache/2.2.22 (Unix) DAV/2
Last-Modified: Sat, 26 Oct 2013 00:24:49 GMT
ETag: "78ec9-2cf4aab-4e999e50dd640"
Accept-Ranges: bytes
Content-Length: 47139499
Content-Type: application/octet-stream
Downloading Firefox 25.0.dmg...
0..20..40..60..80..100
Verifying package integrity...
Looking for updates for: Firefox
Looking for updates for: Firefox-25.0
Looking for updates for: Firefox--25.0
**Checking for removals**
** Processing manifest client_manifest.plist for managed_uninstalls
Catalog base URL is: http://<web_address_of_server>/MunkiRepo/catalogs/
**Checking for managed updates**
** Processing manifest client_manifest.plist for managed_updates
Catalog base URL is: http://<web_address_of_server>/MunkiRepo/catalogs/
** Processing manifest client_manifest.plist for optional_installs
Catalog base URL is: http://<web_address_of_server>/MunkiRepo/catalogs/
The following items will be installed or upgraded:
+ Firefox-25.0
Run managedsoftwareupdate --installonly to install the downloaded updates.
Finishing...
Done.
$
$ defaults read /Library/Preferences/ManagedInstalls.plist
{
AppleSoftwareUpdatesOnly = 0;
InstallAppleSoftwareUpdates = 0;
LastCheckDate = "2013-12-10 16:48:22 +0000";
LastCheckResult = 1;
LogFile = "/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log";
LoggingLevel = 1;
ManagedInstallDir = "/Library/Managed Installs";
PackageVerificationMode = hash;
SoftwareRepoURL = "http://<web_address_of_server>/MunkiRepo";
UseClientCertificate = 0;
}
$
$ sudo defaults write /Library/Preferences/ManagedInstalls.plist ClientIdentifier "ClientA"
Password:
$ defaults read /Library/Preferences/ManagedInstalls.plist
{
AppleSoftwareUpdatesOnly = 0;
ClientIdentifier = ClientA;
InstallAppleSoftwareUpdates = 0;
LastCheckDate = "2013-12-10 16:48:22 +0000";
LastCheckResult = 1;
LogFile = "/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log";
LoggingLevel = 1;
ManagedInstallDir = "/Library/Managed Installs";
PackageVerificationMode = hash;
SoftwareRepoURL = "http://<web_address_of_server>/MunkiRepo";
UseClientCertificate = 0;
}
$
Step Five: test again
--log--
$ sudo managedsoftwareupdate -vvv
Password:
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
Checking for available updates...
Manifest base URL is: http://<web_address_of_server>/MunkiRepo/manifests/
Manifest base URL is: http://<web_address_of_server>MunkiRepo/manifests/
Getting manifest client_manifest...
follow_redirects is False
WARNING: Skipping invalid HTTP header: Cookie:
Retrieving list of software for this machine...
Download error: http://<web_address_of_server>/MunkiRepo/manifests/stable. Failed (22) with: The requested URL returned error: 404
ERROR: Could not retrieve manifest client_manifest from the server.
ERROR: Error 22: The requested URL returned error: 404
ERROR: Could not retrieve managed install primary manifest.
The following items will be installed or upgraded:
+ Firefox-25.0
Run managedsoftwareupdate --installonly to install the downloaded updates.
Finishing...
Getting info on currently installed applications...
Done.
$
Step Six: check if the ClientA manifest is available on the server
--log--
$ curl http://<web_address_of_server>/MunkiRepo/manifests/ClientA
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>managed_installs</key>
<array>
<string>LibreOffice</string>
</array>
</dict>
</plist>
$
-------------
So what am I doing wrong?
From what I read I thought that Munki tries a series of checks for which manifest to use if the ClientIdentifier is set. The ClientIdentifer, then the $HOSTNAME, then a truncated version of the hostname, then (something I can't remember), then the site_default. I think "Stable" manifest == site_default, but correct me if I am wrong.
Thanks on advance for any assistance.
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I checked for the /var/root/Library/Preferences/ManagedInstalls.plist and it does not exist.