Installs and configures a Minecraft server. Recipes are included for the vanilla (Mojang) written server, as well as the Bukkit open source server and it's various plugins. Plugins are managed similar to the Apache cookbook - the Bukkit recipe will install all plugins specified in the node attribute default_plugins
which can be specified in a role.
- Debian, Ubuntu
Tested on:
- Debian 6 (Squeeze)
- screen
- java
General settings
node['minecraft']['server_dir']
- Location of the minecraft server directory.node['minecraft']['user']
- User to run the server as. Default is 'minecraft'.
Server-specific settings
node['minecraft']['server_ip']
- Server IP addressnode['minecraft']['server_port']
- Port to run server onnode['minecraft']['min_mem']
- Minimum amount of memory to assign to server processnode['minecraft']['max_mem']
- Maximum amount of memory to assign to server processnode['minecraft']['max_players']
- Maximum number of players to allow on the server at one timenode['minecraft']['rcon']
- Enable/Disable rconnode['minecraft']['snooper']
- Enable/Disable snoopernode['minecraft']['online_mode']
- Enable/Disable online modenode['minecraft']['white_list']
- Enable/Disable server login whitelistnode['minecraft']['motd']
- Server MOTDnode['minecraft']['ops']
- List of users with ops privileges
Game options
node['minecraft']['main_world']
- Name of the primary world filenode['minecraft']['nether']
- Enable/Disable nethernode['minecraft']['level_seed']
- Set world seed to this stringnode['minecraft']['allow_flight']
- Enable/Disable flightnode['minecraft']['pvp']
- Enable/Disable pvpnode['minecraft']['difficulty']
- Set server difficultynode['minecraft']['game_mode']
- Set server game modenode['minecraft']['spawn_animals']
- Enable/Disable animal spawningnode['minecraft']['spawn_npcs']
- Enable/Disable npc spawningnode['minecraft']['spawn_monsters']
- Enable/Disable monster mob spawningnode['minecraft']['generate_structures']
- Enable/Disable structure generation
Bukkit
node['minecraft']['bukkit']['use_bukkit']
- Deploy bukkit server instead of vanillanode['minecraft']['bukkit']['default_plugins']
- Default plugin recipes to install with bukkit
Author:: Chris Spicer (code@cspicer.ca)
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.