cookbook 'platform_utils', '= 0.8.0'
platform_utils
(17) Versions
0.8.0
-
Follow0
Platform Utilities
cookbook 'platform_utils', '= 0.8.0', :supermarket
knife supermarket install platform_utils
knife supermarket download platform_utils
platform_utils Cookbook
This cookbook provides platform utility recipes.
Contents
- Requirements
- Attributes
-
Usage
-
Recipes
- platform_utils::default
- platform_utils::grub_default
- platform_utils::crond (ver. 0.4.0 or later)
- platform_utils::kernel_modules (ver. 0.4.2 or later)
- platform_utils::kernel_user_namespace (ver. 0.4.2 or later)
- platform_utils::ntpd (ver. 0.4.0 or later)
- platform_utils::pip (ver. 0.5.0 or later)
- platform_utils::platform_update
- platform_utils::rc_local (ver. 0.6.0 or later)
- platform_utils::subid
- platform_utils::sudo
- platform_utils::sysctl (ver. 0.4.3 or later)
- platform_utils::tcp_wrappers (ver. 0.4.0 or later)
-
Recipes
- License and Authors
Requirements
Platforms
- CentOS, Red Hat Enterprise Linux
- Debian, Ubuntu
Packages
- none.
Cookbooks
- none.
Attributes
Key | Type | Description, example | Default |
---|---|---|---|
['platform_utils']['grub_default'] |
Hash | GRUB2 configurations. This settings are expanded to the /etc/default/grub.d/override.cfg . |
{} |
['platform_utils']['kernel_modules']['loaded_modules'] |
Array | Loaded extra kernel module names. | [] |
['platform_utils']['mount']['autopilot'] |
Hash | mount autopilot configurations. | See attributes/default.rb
|
['platform_utils']['networking']['autopilot'] |
Hash | networking autopilot configurations. | See attributes/default.rb
|
['platform_utils']['platform_update']['auto_update'] |
Boolean | whether update automatically or not. | true |
['platform_utils']['platform_update']['timer'] |
Symbol | update execution timing. | :delayed |
['platform_utils']['platform_update']['apt-get']['command'] |
String | apt-get upgrade/dist-upgrade command string. | 'apt-get upgrade -y' |
['platform_utils']['platform_update']['yum']['command'] |
String | yum update command string. | 'yum update -y' |
['platform_utils']['rc_local'] |
Array |
/etc/rc.local lines. |
[] |
['platform_utils']['resolver']['autopilot'] |
Hash | systemd-resolved autopilot configurations. | See attributes/default.rb
|
['platform_utils']['subid']['users'] |
Array | Subordinate user (=group) names. | [] |
['platform_utils']['subid']['notifies'] |
Array, Hash | Notifies by the subordinate user/group file update. |
[] , See attributes/default.rb
|
['platform_utils']['sudo']['sudoers.d'] |
Hash | sudoers file configurations. |
{} See attributes/default.rb
|
['platform_utils']['sudo']['group']['members'] |
Array | Members appended to the sudo group. |
[] |
['platform_utils']['sysctl']['configs'] |
Hash | sysctl configurations. (ver. 0.4.3 or later) |
{} , See attributes/default.rb
|
['platform_utils']['tcp_wrappers']['host_allow'] |
Array | Entries in /etc/hosts.allow (ver. 0.4.0 or later) |
[] |
['platform_utils']['tcp_wrappers']['host_deny'] |
Array | Entries in /etc/hosts.deny (ver. 0.4.0 or later) |
[] |
Usage
Recipes
platform_utils::default
This recipe does nothing.
platform_utils::grub_default
This recipe adds GRUB2 extra configurations.
platform_utils::crond (ver. 0.4.0 or later)
This recipe installs cron package and enables & starts the service.
platform_utils::kernel_modules (ver. 0.4.2 or later)
This recipe loads the extra kernel modules.
platform_utils::kernel_user_namespace (ver. 0.4.2 or later)
This recipe activates the kernel user namespace feature.
platform_utils::ntpd (ver. 0.4.0 or later)
This recipe installs ntpd package and enables & starts the service.
platform_utils::pip (ver. 0.5.0 or later)
This recipe installs pip.
platform_utils::platform_update
This recipe updates the platform.
platform_utils::rc_local (ver. 0.6.0 or later)
This recipe deploys the /etc/rc.local
.
platform_utils::subid
This recipe sets up the /etc/subuid
and the /etc/subgid
.
platform_utils::sudo
This recipe sets up sudo.
platform_utils::sysctl (ver. 0.4.3 or later)
This recipe sets up sysctl (Kernel parameters).
platform_utils::tcp_wrappers (ver. 0.4.0 or later)
This recipe sets up hosts.allow and hosts.deny.
License and Authors
- Author:: whitestar at osdn.jp
Copyright 2016-2018, whitestar Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
platform_utils CHANGELOG
0.8.0
- adds the
platform_utils::grub_default
recipe.
0.7.0
- adds autopilot features.
0.6.0
- adds the
platform_utils::rc_local
recipe.
0.5.0
- adds the
platform_utils::pip
recipe.
0.4.4
- improves the
platform_utils::kernel_modules
recipe.
0.4.3
- adds the
platform_utils::sysctl
recipe.
0.4.2
- adds the
platform_utils::kernel_modules
recipe. - adds the
platform_utils::kernel_user_namespace
recipe.
0.4.1
- adds the
PlatformUtils::VirtUtils
module.
0.4.0
- adds the
platform_utils::crond
recipe. - adds the
platform_utils::ntpd
recipe. - adds the
platform_utils::tcp_wrappers
recipe.
0.3.2
- adds the
['platform_utils']['subid']['notifies']
attribute. - refactoring.
0.3.1
- adds the
PlatformUtils::Helper.append_subusers
method. - bug fix.
0.3.0
- adds the
platform_utils::subid
recipe.
0.2.0
- adds the
platform_utils::sudo
recipe.
0.1.2
- adds the
['platform_utils']['platform_update']['timer']
attribute.
0.1.1
- improves update command string validation.
0.1.0
- Initial release of platform_utils
Collaborator Number Metric
0.8.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.8.0 passed this metric
No Binaries Metric
0.8.0 passed this metric
Testing File Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.8.0 failed this metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.8.0 passed this metric
No Binaries Metric
0.8.0 passed this metric
Testing File Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.8.0 passed this metric
0.8.0 passed this metric
Testing File Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.8.0 failed this metric
0.8.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number