Skip to main content

version number: 0.1.0

author: Geoff Lee

Overview

Question: How do you ensure that all changes you scripts in your JAMF JSS are logged, reversible, and match what you have in source control?

Answer: Automate it!

Git2jss allows you to make changes to JSS scripts in your dev/test environment, push them to a git repository, and then export a tagged copy to your JSS, complete with the git changelog in the ‘Notes’ field. Reverting a change is as easy as exporting the previous tagged version.

Templating of some important values is also supported, so your scripts automatically contain details of the last change, and where they can be found in source control.

Installation / Usage

NB: the python-jss module is a requirement. If manually installing, you’ll need to make sure it is present. Installing via pip should take care of this for you.

Install via pip:

pip install git2jss

pip install cryptography

Or manually

git clone https://github.com/gkluoe/git2jss.git

python setup.py install

Contributing

Issues and pull requests are very welcome!

Examples

You can use it like this:

# Create a new tag, v1.0.1, and export my_great_script.py to a script object of the same name on the JSS
git2jss --file my_great_script.py --create --tag v1.0.1

# Push script localscript.sh to a script object on the JSS called do_something_great.sh, using the existing tag v0.0.9
git2jss --file localscript.sh --name do_something_great.sh

# Push every script in the current folder which has a script object on the server with a matching name
git2jss --all --tag v1.0.2

# Show information about the currently configured JSS
git2jss --jss-info

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git2jss-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git2jss-0.1.0-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file git2jss-0.1.0.tar.gz.

File metadata

  • Download URL: git2jss-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git2jss-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b12aa8742df1a1bd488ab50b08548c28fba338757773bb0f06f138820145829f
MD5 d73c403154726a062678232556c35d2c
BLAKE2b-256 9ea0b256467b65fa98e39271f922c6aadb3305915ca2c17f5842cedb5ed56acb

See more details on using hashes here.

File details

Details for the file git2jss-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for git2jss-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e6278e7995b1cd7ccd9ba56680a2899db723e5cf9648dac69b8061b9f12ef39
MD5 ae3c0283a5646b9765d94f3db674f7d7
BLAKE2b-256 bd8bb794d1e72458c8437100055acd09320517aa4c9699161b943adbb278781f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page