-
Notifications
You must be signed in to change notification settings - Fork 137
Quick demo v6
You can run a quick demo on your local machine to see what MunkiReport is all about. The only thing you need is a macOS machine, a terminal (Terminal.app) and a web browser. The demo uses the built-in web server of php, which is not very secure or robust but will suffice for the purpose of a quick demonstration and for development purposes.
- Download the v6 (beta) from the github site
- Open Terminal.app
- In the terminal, step into the downloaded (and unzipped) MunkiReport directory:
cd ~/Downloads/munkireport-php-v6
## Install the dependencies
- If you don't have composer installed on your mac run
./build/setup_composer.sh
- Using composer, you can install all dependencies:
composer install
- Now you can start with the default settings which are stored in a file named
.env
cp .env.example .env
- To set up the database, edit
.env
so thatDB_CONNECTION=sqlite
is uncommented. - MunkiReport needs the database file to exist so run:
touch app/db/db.sqlite
- With the database file in place, we can run migrations which will set up all necessary tables:
./please migrate
- MunkiReport needs a user account, so we create one:
./please user:create
You may have to add that user to the .env file changing:
ROLES_ADMIN="admin@localhost"
to:
ROLES_ADMIN="[email protected]"
- Start the internal development server:
php -S 127.0.0.1:8888 -t public
You're done! If you don't see any errors, you should be able to visit your demo MunkiReport instance by visiting http://127.0.0.1:8080 in your browser. You can login with the user account you just created.
munkireport v.6 requires Python 3. The recommended version is from Per Oloffson at:
https://github.com/MagerValp/MunkiReport-Python/releases
We're going to use your machine as client, type
sudo /bin/bash -c "$(curl -s 'http://localhost:8888/index.php?/install')"
This will install and configure MunkiReport on your local machine. Now run:
sudo /usr/local/munkireport/munkireport-runner
to populate your MunkiReport server with client data
If you want to stop the server, type Ctrl-C to quit
To uninstall MunkiReport just remove the installed files:
sudo rm -r /usr/local/munkireport/
sudo rm /usr/local/munki/postflight
sudo rm /usr/local/munki/report_broken_client
sudo rm /Library/Preferences/MunkiReport.plist
sudo rm -r /Library/MunkiReport
sudo rm /Library/LaunchDaemons/com.github.munkireport.runner.plist
sudo pkgutil --forget com.github.munkireport
- General Upgrade Procedures
- How to Upgrade Versions
- Troubleshooting Upgrades
- Migrating sqlite to MySQL