Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


minecraft (5) Versions 0.5.0

Installs/Configures minecraft server

cookbook 'minecraft', '= 0.5.0', :supermarket
cookbook 'minecraft', '= 0.5.0'
knife supermarket install minecraft
knife supermarket download minecraft
Quality -%

Minecraft Build Status


Installs and configures a Minecraft server.



Tested on chef 11



  • Debian 6+
  • Ubuntu 12.04+
  • Centos 6.4+



The default recipe ensures a vanilla minecraft is installed, and configured based on attributes you have specified.


The user recipe is called by default, and creates a new user/group mcserver for the server to run as.


The service recipe enables the runit service for minecraft.



  • minecraft['user']

    • The user the minecraft server runs under, default mcserver
  • minecraft['group']

    • The group the minecraft server runs under, default mcserver
  • minecraft['install_dir']

    • The default location minecraft is installed to, default /srv/minecraft
  • minecraft['base_url']

    • The base url to fetch minecarft releases from, default
  • minecraft['jar']

    • The name of the jar file to fetch, default minecraft_server
  • minecraft['version']

    • The version of minecraft server you want, default 1.6.4
  • minecraft['checksum']

    • The sha256 checksum of minecraft_server.jar
  • minecraft['xms']

    • The minimum ammount of ram java allow minecraft to consume, default 512M
  • minecraft['xmx']

    • The maximum ammount of ram java allow minecraft to consume, default 512M
  • minecraft['java-options']

    • You can use this to pass additional options to java, default blank
  • minecraft['init_style']

    • Currently only runit is support. default runit
  • minecraft['banned-ips']

    • An array of ips you would like banned, default blank
  • minecraft['banned-players']

    • An array of players you would like banned, default blank
  • minecraft['white-list]

    • An array of users you would like to white-list, default blank
  • minecraft['ops']

    • An array of admins, default blank


You can can customize any of the settings from They are kept up to date with upstream and you can read about each setting in more
detail here

Known issues

Minecraft internally regenerates all of its configuration files every startup. The order of sometimes changes, timestamps are
and headers are injected into all the configuration files.

This in turn causes chef to notice configuration files have been changed and will automatically restart the server again to pick up those changes. This may
cause your server to restart frequently, without notice.

This leaves you with two work arounds for now.

  1. Only run chef-client once a day or manually as you need to.
  2. Set minecraft['autorestart'] = false and restart minecraft manually when you make configuration changes.

I am hoping I can get this changed upstream. I will attempt to come up with a better work around in the mean time.


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request


Author: Greg Fitzgerald

Author: Sean Escriva

Copyright 2013, Greg Fitzgerald.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

java >= 0.0.0
runit >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found