![]() ![]() So this file will defile all the different actions GitHub will need to perform for our deployment. Maby apizz In a previous role, I had created custom scripts with Parameter values to be used in Jamf Remote by my IT support colleagues. This script will do all the API calls to upload the script in the Jamf console. deploy.sh : The core of this automation.hello_world.sh : This is the script we want to deploy To use these scripts, you will need four things: A text file containing the Jamf Pro package or script IDs you wish to delete.Is it a new script or an update of an existing script, what is the category where the script is located, what are the different parameters and so on. config.json : Here, we will define the different options of our deployment.You’ll define the different actions to perform, the environment variables to use or the notifications to send for example. deploy.yml : This file contains the configuration for GitHub Actions.Let’s see what’s the purpose of each file : ![]() To display and create hidden folders, press Cmd + Shift +. On your computer, clone the repository, and then create the files and folders, following this structure : Select the Scripts payload and click Configure. Use the General payload to configure basic settings for the policy, including the trigger and execution frequency. Click the Computers tab at the top of the page. Enter the password and click on Add secret. Scripting helps Jamf admins to get the most out of Jamf, but it can be intimidating at first. Running a Script Using a Policy Log in to Jamf Pro. Now, create a secret called JAMF_PASSWORD. All scripts are using the 4, 5, 6 (etc) parameters as provided by Jamf Pro. In your repository, go in Settings, then Secrets and click on New repository secret. Scripts I use to customize systems with parameters and API access. Now, we will setup the repository in GitHub.įirst, you’ll have to add the password of the user you’ve just created as a secret in Github. In the Jamf Console, create a new user with just the rights to Create, Read and Update scripts. ![]() Prerequisites Creation of a dedicated user in Jamfįor security concerns, I prefer to create a user dedicated only for the deployment purpose, with very limited rights. All kudos should go to the original post. As it’s in Japanese and as I also did some additions to this, I wanted to share my implementation. I also found this post, describing exactly what I wanted to do. All scripts use a series of functions inside the Resources folder. As I was looking for a way to use Github as a version control tool, there was a session about this subject in VJNUC 2021. Collection of scripts using the Jamf Pro API to simplify repetitive tasks. Deploying scripts on Jamf Pro is very common, but I found we lack versioning, rollback and team work on that part. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |