• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

rackspace-orchestration-templates/minecraft: Rackspace Heat template to deploy M ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

rackspace-orchestration-templates/minecraft

开源软件地址(OpenSource Url):

https://github.com/rackspace-orchestration-templates/minecraft

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

Description

Production

Instructions

Getting Started

Review the settings for your server to make sure they are in line with the game you wish to run. For example, you can set whether or not to allow pvp. The configuration file is in /home/minecraft/. The server can be restarted by restarting the "minecraft-server" service.

Lock it down

This deployment will create a Cloud Server with Minecraft. Once the server is online, you should set a white-list in your server.properties file. This will lock down your server to only players you specify.

Logging in via SSH

The private key provided in the passwords section can be used to login as root via SSH. We have an article on how to use these keys with Mac OS X and Linux as well as Windows using PuTTY.

Requirements

  • A Heat provider that supports the following:
    • OS::Heat::SoftwareConfig
    • OS::Heat::SoftwareDeployment
    • OS::Nova::KeyPair
    • OS::Nova::Server
  • An OpenStack username, password, and tenant id.
  • python-heatclient >= v0.2.8:
pip install python-heatclient

We recommend installing the client within a Python virtual environment.

Parameters

Parameters can be replaced with your own values when standing up a stack. Use the -P flag to specify a custom parameter.

  • minecraft_difficulty: Difficulty level for Minecraft. 0 - Peaceful, 1 - Easy, 2 - Normal, 3 - Hard (Default: 2)
  • minecraft_monsters: Enable or disable spawning of hostile mobs (Default: True)
  • minecraft_hardcore: Enable or disable Hardcore mode. In Hardcore mode, users will be banned from the server upon death (Default: False)
  • minecraft_animals: Enable or disable spawning of passive mobs (Default: True)
  • minecraft_npcs: Enable or disable spawning of villagers (Default: True)
  • minecraft_motd: Message to be displayed in the server list (Default: A Minecraft Server)
  • minecraft_max_players: Maximum number of players able to connect at any given time (Default: 20)
  • minecraft_online: Online mode requires clients to have a valid Minecraft account. (Default: True)
  • server_flavor: Flavor of Cloud Server to use for Minecraft (Default: 4 GB General Purpose v1)

Outputs

Once a stack comes online, use heat output-list to see all available outputs. Use heat output-show <OUTPUT NAME> to get the value of a specific output.

  • minecraft_public_ip: Server Public IP
  • ssh_private_key: SSH Private Key

For multi-line values, the response will come in an escaped form. To get rid of the escapes, use echo -e '<STRING>' > file.txt. For vim users, a substitution can be done within a file using %s/\\n/\r/g.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap