This repository has been archived by the owner. It is now read-only.

Setup on Linux

pslijkhuis edited this page Dec 20, 2013 · 7 revisions

Instructions for setting up Munkiserver on Linux. This was done with CentOS 6.0 x86_64 so a few package names and paths may need to be adjusted.

Notes

Since you are installing on munkiserver on Linux, you will be missing one feature of munkiserver — package introspection. On OS X installs of munkiserver, a copy of the munkitools package may be installed, and munkiserver will then generate a pkginfo file for you and parse it. In the case of a linux install, you’ll have to do this manually on a local Mac first (by running something like `/usr/local/munki/makepkginfo /path/to/my.dmg > ~/Desktop/my.dmg.pkginfo.plist`) and uploading it to munkiserver alongside the DMG.

Steps

Prerequisites

Ruby 1.9.3
  • Install RVM (http://rvm.beginrescueend.com/rvm/install/)
  • RVM will instruct what packages are necessary after it is installed, these were necessary for CentOS 6.0
    • yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel mysql mysql-devel
  • Install Ruby 1.9.3
    • rvm install 1.9.3
    • rvm use 1.9.3 --default
  • Optional: Create gemset for munkiserver
    • rvm gemset create munkiserver
    • rvm use 1.9.3 @munkiserver --default
Bundler
  • Install bundler
    • gem install --no-ri --no-rdoc bundler

Install Munkiserver

  • Clone munkiserver
    • cd /usr/share
    • git clone https://github.com/jnraine/munkiserver.git
    • cd munkiserver
  • Prerequisites before bundle install
    • yum install libxml2-devel libxslt-devel sqlite-devel ImageMagick ImageMagick-devel
  • Initialize munkiserver app (for production)
    • bundle install
    • cp config/database.yml.example config/database.yml
    • rake db:migrate RAILS_ENV=production
    • rake bootstrap:all RAILS_ENV=production
    • rake assets:precompile
  • Test install
    • rails s -e production
  • Connect to server
    • http://servername:3000 (development) or http://servername:80 (production)