Giter Site home page Giter Site logo

univ-of-utah-marriott-library-apple / jamf_pro_in_a_virtual_box Goto Github PK

View Code? Open in Web Editor NEW
10.0 7.0 1.0 7 KB

This repository contains a collection of scripts that automatically configure a development Jamf Pro server on macOS.

License: MIT License

Python 100.00%
jamf jamf-pro vmware mac server python

jamf_pro_in_a_virtual_box's Introduction

Jamf Pro in a Virtual Box

Jamf Pro server can be a funny and fickle beast. When testing different policies that are unique or upgrading to a new version of Jamf Pro, it's best not to try it on the production server first. Sometimes the process of testing a new release or beta can easily break, and having an automated process to quickly rebuild a macOS test environment can save you tons of time and frustration. These instructions are built using macOS but the methodology might be able to be applied to other Operating Systems.

Contents

Download

Download the latest version of scripts to create a development Jamf Pro server here!

Contact

If you have any comments, questions, or other input, either file an issue or send an email to us. Thanks!

Purpose

Jamf Pro server can be a funny and fickle beast. When testing different policies that are unique or upgrading to a new version of Jamf Pro, it's best not to try it on the production server first. Sometimes the process of testing a new release or beta can easily break, and having an automated process to quickly rebuild a macOS test environment can save you tons of time and frustration. These instructions are built using macOS but the methodology might be able to be applied to other Operating Systems.

Usage

In the process of creating a development Jamf Pro server, we need to configure the server while the virtual machine is booting up. Using the Configure Jamf Pro script, it will configure MySQL and start Tomcat to the specificed settings. When the configuration is complete and the computer is logged in, the Start Safari script will launch the webpage to finish configuring the Jamf Pro server. The Apple Setup Done is a trigger to prevent the Apple Setup dialog boxes from displaying.

Configure_Jamf_Pro.py

Configure_Jamf_Pro.py is a Python script to mimic the Jamf Pro installer process but without all the prompts. The script will configure and start both MySQL and Tomcat. To configureMySQL, I needed to know what the admin password was without prompt the user. I found that when I removed /usr/local/mysql/data/mysql/db.frm and ran the initialize command again, MySQL would create a new password and return it. With the password in hand I can set the root password for MySQL and configure the database to the specifications of Jamf Pro. For Tomcat, I had to create the self signing certificate that the computer uses to authenticate to the Jamf Pro server. Tomcat also needed some specific logging directories before it would start.

Start_Safari.py

Start_Safari.py is a Python script and a launchagent. The launchagent is loaded when the Configure_Jamf_Pro.py script finishes. Once the user is completely login the script launches Safari and opens the webpage to setup Jamf Pro.

Apple Setup Done

Apple Setup Done is a package that contains the trigger file to prevent the Apple Setup dialog boxes from displaying when starting up the computer for the first time. To build the package from scratch follow the instructions on the blog.

For detailed instructions on building a development Jamf Pro server, check out: Jamf Pro in a Virtual Box

Update History

Date Version Notes
2017.08.23 1.0.0 Initial version.

jamf_pro_in_a_virtual_box's People

Contributors

tophernad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tophernad

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.