add craftbukkit role
This commit is contained in:
19
roles/craftbukkit/templates/craftbukkit.service.j2
Normal file
19
roles/craftbukkit/templates/craftbukkit.service.j2
Normal file
@ -0,0 +1,19 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Craftbukkit server %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/java -Xmx{{ craftbukkit_java_xmx | default('1024M') }} -Xms{{ craftbukkit_java_xms | default('1024M') }} -jar {{ craftbukkit_opt_path }}/bin/{{ craftbukkit_jar }} nogui
|
||||
SuccessExitStatus=143
|
||||
Type=simple
|
||||
User={{ craftbukkit_user }}
|
||||
Group={{ craftbukkit_group }}
|
||||
WorkingDirectory={{ craftbukkit_var_path }}/%i
|
||||
Restart=on-failure
|
||||
SyslogIdentifier=craftbukkit
|
||||
SyslogFacility={{ craftbukkit_syslog_facility }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
11
roles/craftbukkit/templates/rsyslog/craftbukkit.conf.j2
Normal file
11
roles/craftbukkit/templates/rsyslog/craftbukkit.conf.j2
Normal file
@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
module(load="omprog")
|
||||
|
||||
if ( $programname == "craftbukkit" ) then {
|
||||
action(
|
||||
type="omprog"
|
||||
binary="{{ craftbukkit_opt_path }}/bin/craftbukkit-discord --config {{ craftbukkit_opt_path }}/etc/discord.cfg"
|
||||
confirmmessages="on"
|
||||
)
|
||||
}
|
47
roles/craftbukkit/templates/server.properties.j2
Normal file
47
roles/craftbukkit/templates/server.properties.j2
Normal file
@ -0,0 +1,47 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
spawn-protection=16
|
||||
max-tick-time=60000
|
||||
query.port: {{ craftbukkit_port | default(25565) }}
|
||||
generator-settings=
|
||||
force-gamemode=false
|
||||
allow-nether=true
|
||||
enforce-whitelist: {{ (craftbukkit_config.enfoce_whitelist | default(true)) | ternary('true', 'false') }}
|
||||
gamemode=survival
|
||||
broadcast-console-to-ops=true
|
||||
enable-query=false
|
||||
player-idle-timeout=0
|
||||
difficulty=easy
|
||||
spawn-monsters=true
|
||||
broadcast-rcon-to-ops=true
|
||||
op-permission-level=4
|
||||
pvp=true
|
||||
snooper-enabled=true
|
||||
level-type=default
|
||||
hardcore=false
|
||||
enable-command-block=false
|
||||
max-players=20
|
||||
network-compression-threshold=256
|
||||
resource-pack-sha1=
|
||||
max-world-size=29999984
|
||||
function-permission-level=2
|
||||
rcon.port=25575
|
||||
server-port: {{ craftbukkit_port | default(25565) }}
|
||||
debug=false
|
||||
server-ip=
|
||||
spawn-npcs=true
|
||||
allow-flight=false
|
||||
level-name=world
|
||||
view-distance=10
|
||||
resource-pack=
|
||||
spawn-animals=true
|
||||
white-list: {{ (craftbukkit_config.whitelist | default(true)) | ternary('true', 'false') }}
|
||||
rcon.password=
|
||||
generate-structures=true
|
||||
max-build-height=256
|
||||
online-mode=true
|
||||
level-seed=
|
||||
use-native-transport=true
|
||||
prevent-proxy-connections=false
|
||||
enable-rcon=false
|
||||
motd=A Minecraft Server
|
Reference in New Issue
Block a user