cookbook 'linux-basic', '= 2.1.4'
linux-basic (16) Versions 2.1.4 Follow1
Basic DevOps for single machine
cookbook 'linux-basic', '= 2.1.4', :supermarket
knife supermarket install linux-basic
knife supermarket download linux-basic
linux-basic Cookbook
Basic common configuration for linux machines
Requirements
Platform
- Debian/Ubuntu
- RHEL/CentOS/Scientific
- Fedora
- ArchLinux
- FreeBSD
Recipes
default
Linux basic configure: install packages, improve security level, add OS users, enable coredump, change repo, etc.security
Apply system patch; Switch whether sshd allow password authentication; on-demand configure for iptables; etc
Usage
Use the cookbook by recipe[linux-basic]
.
Attributes List
-
node['basic']['readonly_user]
- If given, create an OS normal user accordingly. Otherwise skip -
node['basic'][admin_user]
- If given, create an OS admin user accordingly. Otherwise skip -
node['basic'][security]
- enforcing means apply security change, otherwise disable security setting
License & Authors
- Author:: DennyZhang001 denny.zhang001@gmail.com
- Copyright:: 2015, http://DennyZhang.com
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
ntp >= 0.0.0 |
timezone-ii >= 0.0.0 |
openssh >= 0.0.0 |
selinux >= 0.0.0 |
systempatch >= 0.0.0 |
Contingent cookbooks
Foodcritic Metric
2.1.4 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:31
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:11
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:20
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:26
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:35
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:70
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:71
FC019: Access node attributes in a consistent manner: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:31
FC041: Execute resource used to run curl or wget commands: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:45
2.1.4 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:11
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:20
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:26
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:35
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:70
FC002: Avoid string interpolation where not required: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:71
FC019: Access node attributes in a consistent manner: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/packages.rb:31
FC041: Execute resource used to run curl or wget commands: /tmp/cook/7895c8e20364df334f47f98b/linux-basic/recipes/repo.rb:45