Skip to main content
Question

Using Git to Version Control Your JSS - Using Git-ception


Forum|alt.badge.img+11

I just released a project that I've been working on for a while, and mentioned during my JNUC API talk, that utilizes the JSS API to automatically merge changes that are made to git repositories. Effectively version controlling aspects of the JSS. I have included two git hooks, one to manage Extension Attribute objects and another to manage Script objects.

I hope the JAMFNation community finds this useful. It requires JSS 9.62 due to required API calls.

UPDATE:
Unfortunatley, I was asked to pull down this repository for internal reasons. And, shortly thereafter, I transitioned onto a different team and no longer work with the JAMF toolset. I had hoped that my old team would have been able to Open Source this in my absence, but it doesn't appear like they have been able to, and I'm not at liberty to do so at this time. My apologies to everyone still looking for this. I know there's a few copies floating around prior to me having to pull it down, and it was released under the BSD license which allows redistribution, with or without modification...

15 replies

mrowell11
Forum|alt.badge.img+8
  • Contributor
  • 41 replies
  • December 29, 2014

Josh this looks fantastic. Thanks for sharing.


Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • December 29, 2014

Awesome! Is it designed to work with a single JSS or can it be used to control lots of them?


Forum|alt.badge.img+11
  • Author
  • Contributor
  • 195 replies
  • December 29, 2014

@davidacland

As the provided hooks are currently written, it is designed to control 2 JSS per repository: a testing/staging JSS tied to the 'develop' branch and a production JSS tied to the 'master' branch. It would be relatively trivial to add additional JSS/branch associations. But, if you intend to manage multiple production JSS instances, I would have different repositories for each production environment. You still only need one 'git-ception' repository which can control all of the multiple script and extension attribute JSS repositories. You just need to name the hooks correctly so that they are copied into the correct repositories on your server.


Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • December 31, 2014

Cool, thanks for the info. Looks very interesting.


Forum|alt.badge.img+10
  • Contributor
  • 52 replies
  • December 13, 2015

Does any one have a copy of Git-ception @Josh_S I notice its gone from the github.

Thanks


Chris_Hafner
Forum|alt.badge.img+23
  • Jamf Heroes
  • 1716 replies
  • December 24, 2015

I'd be interested as well!


Forum|alt.badge.img+15
  • Honored Contributor
  • 394 replies
  • December 24, 2015

+1


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • April 27, 2016

@Josh_S Does this repo still exist? I'm getting a GitHub 404 error when I try to reach the project page.


Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • April 27, 2016

Seems they are looking to move it elsewhere.
https://github.com/Expedia-IT-CTE/Expedia-IT-CTE


Forum|alt.badge.img+14
  • Contributor
  • 74 replies
  • February 1, 2017

@mrowell or @davidacland, might you still have copies of this repo or this work anywhere that you could share out? Looks like @Josh_S hasn't moved it to the new Expedia repo yet.

Thanks!


Forum|alt.badge.img+3

Any word on this or pointers on it? Would really like to integrate this in our environment.


Forum|alt.badge.img+3
  • New Contributor
  • 16 replies
  • July 10, 2017

I know this is a bit old, but would be interested to see how folks integrate with Git or other version control.


Forum|alt.badge.img+6
  • Contributor
  • 20 replies
  • March 21, 2018

Long shot, but, does anyone still have a copy of this for reference? TIA


Forum|alt.badge.img+14
  • Contributor
  • 74 replies
  • March 21, 2018

We came across what looks to be a different repo (but does the same thing) here: give it a once over and see if that works for your needs: https://github.com/BadStreff/git2jss/


Forum|alt.badge.img+8
  • Contributor
  • 28 replies
  • December 13, 2022

Has anyone ever found or written anything similar to @Josh_S 's solution?
I am looking at options to better change control and automate our environments and have long seen something like this as the nirvana.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings