itamae-plugin-recipe-bedrock_server 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b04b8a0e45f424d5a4fb2291b679874cafa237ab320c9556e493a5cdca3cd159
4
- data.tar.gz: 1cdc1a04baa6326a3865135de5390ec777ede3eef6922dc52260fa2d39171cad
3
+ metadata.gz: 2d8c6c043d8df11258b85810c7f8a9da7da5bc3607bf31daee60893938b3ed66
4
+ data.tar.gz: 7aaf21c89202a709645344f64e260c2d11ecc5fa2c7061198970c6b5bedd55ec
5
5
  SHA512:
6
- metadata.gz: 9075092fe8c24cfdb724475129fca664c697f32f0d725d344f7231a3c0a77e737bdf95cbb69649508a461c657efffc854f1dbc98def1aab311ef13e044e46bd5
7
- data.tar.gz: e453f52cbaec34f8a3f08cf8fea10b3fb1d1af26a638a97e5d621aed1c48be6b6a5044ed12968f636b4553484cc4cf33fba47768aac544b41d7cab1adf8dfac1
6
+ metadata.gz: 7892611447478997371d6dcb17e0a4b9d7d9f63e049edfa2760877a4e37a7acc061810b62e018e1124097182dfe5be72f9677296fcd93ffe51b3b7b662868a5c
7
+ data.tar.gz: dc954c33183675dd7f19a7640f73cee62deb1ee2fe4f81d9a9d0b2b38d1438cc3336d828af03439c2d04e15f693547881d7016c7e40b59d626ea1e518e47cb8c
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.2.0](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/tree/v0.2.0) (2021-01-23)
4
+
5
+ [Full Changelog](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/compare/v0.1.0...v0.2.0)
6
+
3
7
  ## [v0.1.0](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/tree/v0.1.0) (2021-01-22)
4
8
 
5
9
  [Full Changelog](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/compare/116c84f7f2e3d15fc681a1fd3f9156d85949c8a3...v0.1.0)
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at 3257272+kyohah@users.noreply.github.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Itamae::Plugin::Recipe::BedrockServer
2
2
 
3
- Itamae plugin to install [Minecraft](https://www.minecraft.net/) with init scripts
3
+ Itamae plugin to install [Minecraft](https://www.minecraft.net/) with init scripts.
4
+ You must read [Minecraft Server Download](https://www.minecraft.net/en-us/download/server/bedrock/)の[Minecraft End User License Agreement](https://account.mojang.com/terms) and [Privacy Policy](https://privacy.microsoft.com/ja-jp/privacystatement).
4
5
 
5
6
  [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-bedrock_server.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-bedrock_server)
6
7
  ![test](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/workflows/test/badge.svg)
@@ -8,7 +9,7 @@ Itamae plugin to install [Minecraft](https://www.minecraft.net/) with init scrip
8
9
  ![](https://ruby-gem-downloads-badge.herokuapp.com/itamae-plugin-recipe-bedrock_server?type=total)
9
10
 
10
11
  ## Supported
11
- * Ubuntu 18 or later [^1]
12
+ * Ubuntu 18 or later
12
13
 
13
14
  ## Installation
14
15
 
@@ -47,14 +48,16 @@ include_recipe "bedrock_server::service"
47
48
 
48
49
  ### Node
49
50
 
51
+ [default node.yml](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/blob/main/recipes/node.yml)
52
+
50
53
  ```yml
51
54
  # node.yml
52
55
  bedrock_server:
53
- # path to downloaded zip file (default: "/opt")
56
+ # path to bedrock server directory (default: "/opt")
54
57
  app_dir: "/opt"
55
58
 
56
- # start environment (default: ".")
57
- ld_library_path: "."
59
+ # bedrock-server download url (defailt is check from https://minecraft.net/en-us/download/server/bedrock/ and detect latest url)
60
+ url: "https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.201.02.zip"
58
61
 
59
62
  # bedrock_server service actions when after install (default: enable, start)
60
63
  service_actions:
@@ -62,20 +65,53 @@ bedrock_server:
62
65
  - start
63
66
  # - disable
64
67
  # - stop
68
+
69
+ # server.properties configuration
70
+ configuration:
71
+ server-name: "Dedicated Server"
72
+ gamemode: "survival"
73
+ difficulty: "easy"
74
+ allow-cheats: false
75
+ max-players: 10
76
+ online-mode: true
77
+ white-list: false
78
+ server-port: 19132
79
+ server-portv6: 19133
80
+ view-distance: 32
81
+ tick-distance: 4
82
+ player-idle-timeout: 30
83
+ max-threads: 8
84
+ level-name: "Bedrock level"
85
+ level-seed: ""
86
+ level-type: "DEFAULT"
87
+ default-player-permission-level: "member"
88
+ texturepack-required: false
89
+ content-log-file-enabled: false
90
+ compression-threshold: 1
91
+ server-authoritative-movement: "server-auth"
92
+ player-movement-score-threshold: 20
93
+ player-movement-distance-threshold: 0.3
94
+ player-movement-duration-threshold-in-ms: 500
95
+ correct-player-movement: false
65
96
  ```
66
97
 
67
98
  ## Development
68
99
 
69
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
70
-
71
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
100
+ ```
101
+ $ docker run --name tmp-ubuntu $IMAGE bash -c "apt-get update && apt-get install -y systemd-sysv"
102
+ $ docker commit tmp-ubuntu ubuntu-with-systemd
103
+ $ docker run --privileged -d ubuntu-with-systemd /sbin/init
104
+ $ bundle exec itamae docker --node-yaml=recipes/node.yml recipes/install.rb --container=container-with-service
105
+ ```
72
106
 
73
107
  ## Contributing
74
108
 
75
- Bug reports and pull requests are welcome on GitHub at https://github.com/kyohah/itamae-plugin-recipe-bedrock_server.
109
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kyohah/itamae-plugin-recipe-bedrock_server. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/blob/master/CODE_OF_CONDUCT.md).
76
110
 
77
111
  ## License
78
112
 
79
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
113
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
114
+
115
+ ## Code of Conduct
80
116
 
81
- [^1]: bedrock-server-1.16.201.02/bedrock_server_how_to.html
117
+ Everyone interacting in the Itamae::Plugin::Recipe::BedrockServer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kyohah/itamae-plugin-recipe-bedrock_server/blob/master/CODE_OF_CONDUCT.md).
@@ -1,13 +1,8 @@
1
- environment_content =
2
- <<-EOS
3
- LD_LIBRARY_PATH=#{node[:bedrock_server][:ld_library_path]}
4
- EOS
5
-
6
1
  environment_file = "/etc/default/bedrock_server"
7
2
 
8
- file environment_file do
3
+ template environment_file do
9
4
  mode "644"
10
- content environment_content
5
+ variables(environment: node[:bedrock_server][:environment])
11
6
  notifies :restart, "service[bedrock_server]"
12
7
  end
13
8
 
@@ -1,4 +1,6 @@
1
- # https" =>//minecraft.gamepedia.com/Server.properties
1
+ hash = YAML.load_file("#{__dir__}/../../../../../recipes/node.yml")
2
+
3
+ node.reverse_merge!(hash)
2
4
 
3
5
  node.validate! do
4
6
  {
@@ -33,7 +35,3 @@ node.validate! do
33
35
  }
34
36
  }
35
37
  end
36
-
37
- hash = YAML.load_file("#{__dir__}/../../../../../recipes/node.yml")
38
-
39
- node.reverse_merge!(hash)
@@ -0,0 +1,3 @@
1
+ <% @environment.each do |key, value| %>
2
+ <%= key %>=<%= value %>
3
+ <% end %>
@@ -4,7 +4,7 @@ module Itamae
4
4
  module Plugin
5
5
  module Recipe
6
6
  module BedrockServer
7
- VERSION = "0.2.0"
7
+ VERSION = "0.2.1"
8
8
  end
9
9
  end
10
10
  end
@@ -1,6 +1,7 @@
1
1
  bedrock_server:
2
2
  app_dir: "/opt"
3
- ld_library_path: "."
3
+ environment:
4
+ LD_LIBRARY_PATH: "."
4
5
  service_actions:
5
6
  - enable
6
7
  - start
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-bedrock_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyohah
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-23 00:00:00.000000000 Z
11
+ date: 2021-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - CHANGELOG.md
66
+ - CODE_OF_CONDUCT.md
66
67
  - Gemfile
67
68
  - LICENSE.txt
68
69
  - README.md
@@ -76,6 +77,7 @@ files:
76
77
  - lib/itamae/plugin/recipe/bedrock_server/service.rb
77
78
  - lib/itamae/plugin/recipe/bedrock_server/setup.rb
78
79
  - lib/itamae/plugin/recipe/bedrock_server/templates/bedrock-server/server.properties.erb
80
+ - lib/itamae/plugin/recipe/bedrock_server/templates/etc/default/bedrock_server.erb
79
81
  - lib/itamae/plugin/recipe/bedrock_server/templates/etc/systemd/system/bedrock_server.service.erb
80
82
  - lib/itamae/plugin/recipe/bedrock_server/version.rb
81
83
  - recipes/install.rb