Code Monkey home page Code Monkey logo

jssrecipecreator's Introduction

JSSRecipeCreator is no longer maintained

For archived information about JSSRecipeCreator, please visit our Wiki.

Acknowledgements

Huge thanks to Shea Craig, who wrote the bulk of this work and is still providing advice, though not currently involved in Jamf administration.

The world of Mac administration evolves fast, and continued functionality of JSSRecipeCreator and python-jss requires active engagement from the Jamf-using Mac Admin community. If you think you can help and have ideas, please go ahead and file issues and pull requests, or contact us in the MacAdmins Slack #jss-importer channel.

License

See the LICENSE file.

jssrecipecreator's People

Contributors

grahampugh avatar homebysix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jssrecipecreator's Issues

Am I doing something wrong?

Maybe I'm doing something wrong, but this is not producing any output at all for me.
I've tried several different options. I have JSSImporter setup and configured in AutoPkgr.
./jss_recipe_creator.py -r Templates/RecipeTemplate.plist -d ~/myDest

I've tried with -s and -r Templates/RecipeTemplate-package-only.plist.
I've also tried omitting -d so it writes to the local directory.
I just can't seem to get any output. Also, there are no errors on output.
What am I missing?
I'm running the latest version of Catalina and version 1.2.0 of RecipeCreator.

Preferences file not found

You knew I'd submit the first issue. :-)

Trying to build a Dropbox.jss from the existing Dropbox.pkg seems not to work without a preferences file.

$ ./JSSRecipeGenerator.py /Users/elliot/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Dropbox/Dropbox.pkg.recipe 
Please choose a Recipe Filename
Hit enter to accept default choice, or enter a number.
0: Dropbox.jss.recipe (DEFAULT)

Create a new Recipe Filename by entering name/path.
Choose and perish: (DEFAULT 'Dropbox.jss.recipe') 
Please choose a Recipe Identifier
Hit enter to accept default choice, or enter a number.
0: com.github.autopkg.jss.dropbox (DEFAULT)

Create a new Recipe Identifier by entering name/path.
Choose and perish: (DEFAULT 'com.github.autopkg.jss.dropbox') 
Traceback (most recent call last):
  File "./JSSRecipeGenerator.py", line 232, in <module>
    main()
  File "./JSSRecipeGenerator.py", line 225, in main
    recipe = JSSRecipeCreator(sys.argv[1])
  File "./JSSRecipeGenerator.py", line 77, in __init__
    jss_prefs = jss.JSSPrefs()
  File "/Library/Python/2.7/site-packages/python_jss-0.5.3-py2.7.egg/jss/jss.py", line 92, in __init__
    raise JSSPrefsMissingFileError("Preferences file not found!")
jss.exceptions.JSSPrefsMissingFileError: Preferences file not found!

Tested on two Macs, got the same error. Probably something simple.

Error if Policy and Policy group is not in template...

I need to upload just packages and put them in Package categories only.
However when I remove the Policy and Policy group info from the Recipe Template.xml I get this error:
leeta:JSSRecipeCreator-0.1.0 ega$ ./JSSRecipeCreator.py /Users/ega/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/MSOffice2011Updates/MSOffice2011Updates.pkg.recipe

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_convenience.py", line 659, in container_unwrap
    raise exc_type(*exc_args)
KeyError: 'POLICY_CATEGORY'

It was my impression these could be skipped or left out. Or did I confuse this with a dev version to come?

Here is my RecipeTemplate.xlm

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Description</key>
        <string></string>
        <key>Identifier</key>
        <string></string>
        <key>Input</key>
        <dict>
            <key>NAME</key>
            <string></string>
            <key>CATEGORY</key>
            <string>aaUNC-System-Test</string>
            <key>DESCRIPTION</key>
            <string>[email protected] Default AutoPKG install PKG.</string>
        </dict>
        <key>MinimumVersion</key>
        <string></string>
        <key>ParentRecipe</key>
        <string></string>
        <key>Process</key>
        <array>
            <dict>
                <key>Arguments</key>
                <dict>
                    <key>prod_name</key>
                    <string>UNCWide-AutoPKG-%NAME%</string>
                    <key>category</key>
                    <string>%CATEGORY%</string>
                </dict>
                <key>Processor</key>
                <string>JSSImporter</string>
            </dict>
        </array>
    </dict>
</plist>


TypeError: coercing to Unicode: need string or buffer, NoneType found

Tried again to build a Dropbox.jss from the autopkg Dropbox.pkg recipe.

I pressed Enter to use all the default settings, and it errored out:

Traceback (most recent call last):
  File "./JSSRecipeGenerator.py", line 262, in <module>
    main()
  File "./JSSRecipeGenerator.py", line 255, in main
    recipe = JSSRecipeCreator(args.ParentRecipe, args.recipe_template)
  File "./JSSRecipeGenerator.py", line 155, in __init__
    self.recipe = self.build_recipe()
  File "./JSSRecipeGenerator.py", line 212, in build_recipe
    recipe = self.replace_text(f.read())
  File "./JSSRecipeGenerator.py", line 236, in replace_text
    text = text.replace(key, value)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Creator or Generator?

Minor point - all the docs talk about JSSRecipeCreator but the script is actually JSSRecipeGenerator.py. Did I miss something ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.