Puppet module for installing and managing a (Vanilla) Minecraft Server (1.7.x).
Add this in your /etc/puppet/manifests/site.pp. All possible options and defaults are found in manifests/init.pp and manifests/defaults.pp respectively.
If you use the https://github.com/puppetlabs/puppetlabs-firewall module (i.e. if class['firewall'] is defined), the module will also add firewall rules automatically based on your $open_rcon_port, $open_query_port and $open_server_port settings.
node 'hostname' {
class {'minecraft':
jar_url => 'https://s3.amazonaws.com/Minecraft.Download/versions/1.7.4/minecraft_server.1.7.4.jar',
min_memory => '800M',
max_memory => '900M',
level_name => 'Berrybridge',
difficulty => 3,
level_seed => '-840222844129379185',
op_permission_level => 4,
server_name => 'The Experiment',
motd => '&1Experiments',
white_list => true,
max_players => 30,
enable_rcon => true,
rcon_password => 'abcdefgh876543210',
open_rcon_port => false,
}
}