edingc / munki-enroll

Scripts to automatically enroll clients in Munki, allowing for very flexible manifest structures.
MIT License
74 stars 25 forks source link

Computer manifest does not exist. Will create. #3

Closed morgrowe closed 9 years ago

morgrowe commented 9 years ago

First of all, thanks for writing this tool. I can't wait to get it up and running.

I've installed munki-enroll into my munki_repo just like your instructions state. I've then configured and copied the munki_enroll.sh script to one of my client machines that has munki installed and configured on it. All good so far.

However, when I execute the script (sudo ./munki_enroll.sh) I get this message:

Computer manifest does not exist. Will create.

If I look inside the /Library/Preferences/ManagedInstalls file on the client machine, I can see it has updated the ClientIdentifier key as expected. However, if I look on my munki server in the manifests directory, nothing has been created. Reading through the php file, it looks like it's supposed to create a folder within the manifests directory, but it doesn't get that far.

I'm running this on 10.10.2. The munki server is served using OS X Server application (version 4.0.3)

Any idea what's causing this problem? Maybe I haven't configured something properly or the tool is no longer compatible with OS X 10.10?

Kind regards, Morgan

edingc commented 9 years ago

Hi Morgan:

Does the web server have write access to your Munki repository?

Thanks!

Cody

morgrowe commented 9 years ago

Hi Cody,

Ahhh, silly me. As soon as gave the web server write access all was well. Thanks for your help!

Morgan

letrast commented 8 years ago

I'm using OS X 10.11.5 with Server 5.1.5 as my munki repo. Everything works fine except I can't get the machine manifests to auto create. I saw this thread and blew permissions wide open to see if I could get it to work and it did. Now I'm having trouble scaling it back.

Could someone tell me exactly what permissions need to be set for what folders in the repo for this to work? Thanks!

edingc commented 8 years ago

@letrast -

I'm not sure what permissions you have changed, but the web server will need write access to the manifests folder inside your Munki repository at the very least.

letrast commented 8 years ago

@edingc

Thanks. I did a little more experimenting and figured out the issue, but your reply (and a good night's sleep) helped to unscramble my brain.