Change default smart group

293 views
Skip to first unread message

Adam Vadala

unread,
Jan 15, 2015, 3:07:44 PM1/15/15
to autopkgr...@googlegroups.com
Hey fellas..

Quick Question... Instead of the default smart group called Testing, I'd like for each smart group created by autopkgr to be based on another existing collection that contains all clients.  How might I do that?

-A

zack.m...@bsd7.org

unread,
Jan 15, 2015, 10:31:56 PM1/15/15
to autopkgr...@googlegroups.com
autopkg make-override RECIPE.jss

Make an override and adjust the smart group? I haven't used any jss recipes as we don't use JAMF

Elliot Jordan

unread,
Jan 16, 2015, 11:23:45 AM1/16/15
to Adam Vadala, autopkgr...@googlegroups.com
Hi Adam,

If you want to remove the "Testing" criteria from the smart group (and thus scope in all your clients), you'd want to edit the SmartGroupTemplate.xml file in your RecipeOverrides folder. Remove these lines:

        <criterion>
            <name>Computer Group</name>
            <priority>2</priority>
            <and_or>and</and_or>
            <search_type>member of</search_type>
            <value>Testing</value>
        </criterion>

You can also create your own custom SmartGroupTemplate file (for example, if you want some recipes to scope to testing and other recipes to scope to all). For that change, you'd need to override the GROUP_TEMPLATE key in the recipe override, and point it to your custom xml file in the RecipeOverrides folder. For example, something like this:

            <key>GROUP_TEMPLATE</key>
            <string>%RECIPE_DIR%/SmartGroupTemplate-ITDeptOnly.xml</string>

Hope that points you in the right direction!

Elliot



--
You received this message because you are subscribed to the Google Groups "autopkgr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkgr-discu...@googlegroups.com.
To post to this group, send email to autopkgr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autopkgr-discuss/8fce0b3a-bf14-4c39-b312-c98ed17645f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Vadala

unread,
Feb 23, 2015, 12:31:28 PM2/23/15
to autopkgr...@googlegroups.com, ava...@gmail.com
Hi Elliot,

I created an Override, but all I get in the Overrides folder is the .jss.recipe file.  

Where / how to I get the SmartGroupTemplate.xml file???

-A

Elliot Jordan

unread,
Feb 23, 2015, 1:41:23 PM2/23/15
to ava...@gmail.com, autopkgr...@googlegroups.com
Hi Adam,

You'll need to copy the SmartGroupTemplate.xml from its default location:
~/Library/AutoPkg/RecipeRepos/com.github.sheagcraig.jss-recipes/SmartGroupTemplate.xml

to your RecipeOverrides folder, probably located at:
~/Library/AutoPkg/RecipeOverrides/

You'll also need to do this for the other JSSImporter xml files you'd like to customize (for example, PolicyTemplate.xml), and for any icons you want to use in Self Service policies.

Elliot



--
You received this message because you are subscribed to the Google Groups "autopkgr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkgr-discu...@googlegroups.com.
To post to this group, send email to autopkgr...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages