munkiadmin icon indicating copy to clipboard operation
munkiadmin copied to clipboard

Nested machine manifests write full path to included manifests

Open terrencer opened this issue 8 years ago • 2 comments

I have nested paths for manifests for companies, ie;

manifests
|____Company 1
|           |____ groupmanifest1
|           |____ serialnumber1
|____Company 2
            |____ groupmanifest2
            |____ serialnumber2

MunkiAdmin writes the following when saving serialnumber1 manifest: <string>Company 1\groupmanifest1</string>

When it should be: <string>groupmanifest1</string>

If I now manually edit the manifest, save, reload MunkiAdmin and Save within MunkiAdmin all is good

Please let me know if this is user error, I would like to resolve this asap

Also love the application, thanks!

terrencer avatar Sep 01 '17 03:09 terrencer

This is because MunkiAdmin expects that included manifests need to be referenced by their relative path from the main manifests directory. Are you setting a custom manifests URL in client side to point to the Company subfolder?

hjuutilainen avatar Sep 01 '17 11:09 hjuutilainen

I am, ManifestURL = http://server/munki_repo/manifests/Company1

When I have edited the serialnumber1 manifest in MunkiAdmin to add the included manifest groupmanifest1, Munki finds the serialnumber1 manifest and then looks for and cannot find the included manifest at: http://server/munki_repo/manifests/Company1/Company1/groupmanifest1

As I said above I then have to edit the serialnumber1 manifest to remove the "Company1" then Munki finds the included manifest at: http://server/munki_repo/manifests/Company1/groupmanifest1

I think I can understand why it does that, if my serialnumber1 manifest was located in http://server/munki_repo/manifests/ then I don't think it would have an issue.

Thoughts?

Thanks again

terrencer avatar Sep 02 '17 03:09 terrencer