Installs and configures Minecraft
- Ubuntu (tested using 14.04)
- apt (soft dependency - make sure to include this in your run-list prior to this cookbook)
node['minecraft']['eula']
= must manually be set to true, by setting this you are agreeing to the Minecraft EULA, defaultfalse
(string).node['minecraft']['user']
= user the Minecraft server will run as, defaultminecraft
.node['minecraft']['group']
= group the Minecraft server will run as, defaultminecraft
.node['minecraft']['install_dir']
= location Minecraft will be installed to, default/srv/minecraft
.node['minecraft']['server_download_file']
= Minecraft server file to download, defaulthttps://s3.amazonaws.com/Minecraft.Download/versions/1.8/minecraft_server.1.8.jar
.node['minecraft']['server_file']
= what to save the Minecraft server file to locally, defaultminecraft_server.jar
.
node['minecraft']['init_mem']
= default1024M
.node['minecraft']['max_mem']
= default1024M
.node['minecraft']['backup']['excluded']
= an array of files to exclude when running backups, default[]
.
node['minecraft']['server_properties']
= hash of all server properties to configure. (see this for more information)node['minecraft']['configs']['banned-ips']
= default[]
.node['minecraft']['configs']['banned-players']
= default[]
.node['minecraft']['configs']['ops']
= default[]
.node['minecraft']['configs']['usercache']
= default[]
.node['minecraft']['configs']['whitelist']
= default[]
.
Include the default recipe in a run list to have Minecraft completely installed and configured
Adds all configuration files necessary for Minecraft to run
Installs Minecraft and other needed packages
Installs Minecraft as an init.d service and starts/enables it
name "minecraft"
description "Install Minecraft"
override_attributes(
"minecraft" => {
"eula" => "true"
}
)
run_list(
"recipe[apt]",
"recipe[minecraft]"
)
Author:: Jeff Way (jeff.way@me.com)