Skip to content

A tool designed for CI/CD pipelines that automates the changing of Activation Codes in Jamf Pro servers.

Notifications You must be signed in to change notification settings

alectrona/replace-jamf-pro-activation-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Replace Jamf Pro Activation Code

A tool designed for CI/CD pipelines that automates the changing of Activation Codes in Jamf Pro servers.

Environmental Variables

The below Environmental Variables are required.

  • JAMF_PRO_ACTIVATION_CODE
  • JAMF_PRO_API_USER

Of course, this assumes you are using the same Activation Code and API username to perform this action on each server. If that is not the case, you can easily modify the code to pass these into the script as arguments.

How to Run

Once you've set up your environmental variables above, you can simply run the script by passing your Jamf Pro API password as argument 1 and your Jamf Pro server as argument 2.

bash scripts/replace-jamf-pro-activation-code.sh \
    "$JSS_API_PASS" \
    "https://YOUR_SERVER.jamfcloud.com"

Although you can run this locally, it is designed to be easily ran in your CI/CD platform. View a sample pipeline configuration file for Bitbucket.

Required Permissions

The Jamf Pro user account used with this tool must have the below permissions.

Jamf Pro Server Settings Read Update
Activation Code

About

A tool designed for CI/CD pipelines that automates the changing of Activation Codes in Jamf Pro servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages