Giter Site home page Giter Site logo

imkarrer / patchserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brysontyrrell/patchserver

0.0 2.0 0.0 546 KB

An implementation of an external patch source for Jamf Pro for custom patch title definitions (future v10 feature).

Python 55.29% CSS 0.41% JavaScript 18.72% HTML 25.58%

patchserver's Introduction

Jamf Pro Community Patch Server

An implementation of an external patch source for Jamf Pro. The Patch Server provides the endpoints for Jamf Pro to read and subscribe to your custom software title definitions and a API for managing those definitions.

This is a work in progress application. The UI and API are being iterated on with each update. Some buttons in the Web UI may not be functional yet.

Setup

Create a Python virtual environment and install the project requirements to it.

cd /path/to/PatchServer
virtualenv ./venv
source ./venv/bin/activate
pip install ./requirements.txt

Run the application.

python run.py

You will be able to access the application using localhost or your computer's IP address.

User Interface

Go to http://localhost/ in a browser to view all titles that are available on the Patch Server.

Jamf Pro Endpoints

http://localhost/jamf/v1/software

Lists all available titles for Jamf Pro.

http://localhost/jamf/v1/software/<Title>,<Title>

Lists a subset of titles, separated by comma, for Jamf Pro.

http://localhost/jamf/v1/patch/<Title>

Returns the full definition of a title.

API Endpoints

http://localhost/api/v1/title

POST: Create a new title. You may optionally send a full patch definition from another source to this endpoint.

{
    "id": "",
    "name": "",
    "publisher": "",
    "appName": "",
    "bundleId": ""
}

- Or full definition -

{
    "id": "",
    "name": "",
    "publisher": "",
    "appName": "",
    "bundleId": "",
    "requirements": [...],
    "patches": [...],
    "extensionAttributes": [...]
}

http://localhost/api/v1/title/<Title>

DELETE: Delete a title.

PUT: Update a title. You cannot change the id of a title. Additional objects included will be ignored with this operation.

{
    "name": "",
    "publisher": "",
    "appName": "",
    "bundleId": ""
}

http://localhost/api/v1/title/<Title>/requirements

POST: Add requirements to a title. These requirements must be within an array under an items key.

{
    "name": "",
    "operator": "",
    "value": "",
    "type": "",
    "and": ""
}

http://localhost/api/v1/title/<Title>/patches

GET: Returns all patch versions of a title.

POST: Add patch versions to a title.

{
    "version": "",
    "releaseDate": "",
    "standalone": true,
    "minimumOperatingSystem": "",
    "reboot": false,
    "capabilities": [...],
    "components": [...],
    "killApps": [...]
}

patchserver's People

Contributors

brysontyrrell avatar

Watchers

 avatar  avatar

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.