homebysix / auto-update-magic

Methods for keeping Mac apps up to date automatically in the background with Jamf and AutoPkgr.
Apache License 2.0
126 stars 20 forks source link

JSS Importer - Issues with Site #32

Closed bandoned closed 5 months ago

bandoned commented 7 years ago

I've been successfully using AutoPkgr with Sites by manually specifying the Site ID and name in the SmartGroupTemplate and PolicyTemplates in AutoPkgr. So as long as you keep using groups/objects in the same site you are creating a policy for everything is working great.

However, lately some apps we need to deploy on both sites. For this, Autopkgr does not seem to accept Site ID "-1" and name "None" if one of the Computer Groups/Object being scoped to is in a site.

On the JSS interface doing this working completely fine. Would it be possible to fix this? This is probably some check that was thrown in that is assuming if a site is specified then it only works with Computer Groups that are in that particular site. Which is true, except when the site is "None". In which case, the policy can access Groups/Objects in any site.

For now the workaround is to create 2 different entries, one that would create a Policy for Site A and another that would create a Policy for Site B. But this means you loose the ability to have policies that Site administrators cannot modify, that are for the entire system.

homebysix commented 7 years ago

Hi @bandoned. I have two initial thoughts:

I'll keep this issue open until the first bullet is answered, but I think you'll need to ask elsewhere about the second bullet. Thanks!

bandoned commented 7 years ago

@homebysix I will definitely do that. Thanks

Yes, I did try removing the Site ID instead of setting it to None first. But seems like it detects one of the groups that the policy is being scoped to is in a site it throws an error.

Response Code: 409 Response: Conflict. Error: ComputerGroup (ID:62, Name:SiteB-SmartGroup) is not site-enabled for this site

This was scoped to two groups, SiteA-SmartGroup and SiteB-SmartGroup

homebysix commented 7 years ago

Well, you're beyond my wheelhouse. I've never found the added complexity of Sites has been worth it.

homebysix commented 5 months ago

Closing due to repo deprecation and archival.