keeleysam / munki-exported

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

Ability to use Computer Name for ClientIdentifier (as defined in Sharing preferences) when requesting a manifest #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
re: http://code.google.com/p/munki/wiki/configuration

ClientIdentifier - Identifier for munki client. Usually is the same as a 
manifest name on the munki server. If this is empty or undefined, Munki will 
attempt the following identifiers, in order: fully-qualified hostname, "short" 
hostname, serial number and finally "site_default"

I'm using Munki in an environment where I don't have full control over the DNS, 
and there are a lot of Windows machines on the network. As a result, DNS is a 
bit of a mess for hosts that are on DHCP.

Would it be possible for Munki to try sending the Computer Name, as defined in 
System Preferences > Sharing (either the short or the long name will do but 
preferably the short one) when it requests a manifest from the Munki repository.

As an example, say I've got a workstation called iMac001 but in DNS it's 
hostname is win028.example.private as that's what it's picking up from the 
Windows DNS server. When this machine requests a manifest, it's asking for 
win028 and then win028.example.private (as well as serial number and 
site_default) As a result, I have to make a manifest with the machine's serial 
number for it to automatically pick it up.

It's much easier to manage manifests by machine name rather than by serial 
number as I've got the machine names on big labels on each unit!

Original issue reported on code.google.com by kai.howells@gmail.com on 17 Apr 2013 at 3:58

GoogleCodeExporter commented 9 years ago
Why don't you just set the ClientIdentifier in 
/Library/Preferences/ManagedInstalls.plist to your desired name?

Since you appear to be setting the ComputerName manually, just set the 
ClientIdentifier manually as well. Or write a script that reads the 
ComputerName and writes it to ManagedInstalls.plist.

-Greg

Original comment by gregnea...@mac.com on 17 Apr 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Closing. No communications from original reporter for several weeks.

Original comment by gregnea...@mac.com on 8 May 2013 at 2:05