cookbook 'cafe-core', '~> 0.0.2'
cafe-core (2) Versions 0.0.2 Follow0
OpsCafe common core infrastructure.
cookbook 'cafe-core', '~> 0.0.2', :supermarket
knife supermarket install cafe-core
knife supermarket download cafe-core
cafe-core
Description
OpsCafe common core infrastructure.
Usage
This Chef cookbook is a volume in the
OpsCafe infrastructure cookbook series.
It can function independently
or integrate seamlessly with other cafe-*
cookbooks.
Requirements
Platforms
- Ubuntu (~> 14.04)
Cookbooks:
- apt (~> 2.7.0)
- ntp (~> 1.8.6)
- openssh (~> 1.5.0)
- sudo (~> 2.7.1)
- users (~> 1.8.2)
- zsh (~> 1.0.1)
- vim (~> 1.1.2)
Attributes
Attribute | Description | Default | Choices |
---|---|---|---|
node['cafe']['core']['common']['enable'] |
Include the common recipe by default. |
true | |
node['cafe']['core']['ssh']['enable'] |
Include the ssh recipe by default. |
true | |
node['cafe']['core']['sudo']['enable'] |
Include the sudo recipe by default. |
true |
Recipes
- cafe-core::default - Installs and configures core services.
- cafe-core::common - Configures smart defaults.
- cafe-core::ssh - Configures an ssh server.
- cafe-core::sudo - Configures and enables sudo.
cafe-core::default
Includes each other recipe
in this cookbook according to
the corresponding attribute:
node['cafe']['core'][recipe]['enable']
cafe-core::common
Includes a set of practical cookbooks to setup the following:
- Network Time Protocol (NTP)
- Zsh
- Vim
Also includes the apt::default
recipe on Debian based platforms.
cafe-core::ssh
Installs and enables the openssh server.
Sets practical and secure sshd defaults:
- Disables root login.
- Disables password login.
- Enables agent forwarding.
cafe-core::sudo
Enables sudo configuration through sudoers.d
.
Creates and configures the sysadmin
group for passwordless sudo.
The sysadmin
group is created only if the uses
data bag exists
and contains at least one sysadmin user.
For example, see
[sudoroot.json](./test/integration/sudo/data_bags/users/sudoroot.json).
Development and Testing
Source Code
The cafe-core source
is hosted on GitHub.
To clone the project run
$ git clone https://github.com/opscafe/core.git
Rake
Run rake -T
to see all Rake tasks.
rake all # Run all tasks
rake doc # Build documentation
rake foodcritic # Lint Chef cookbooks
rake kitchen:all # Run all test instances
rake kitchen:default-ubuntu-1404 # Run default-ubuntu-1404 test instance
rake readme # Generate README.md from _README.md.erb
rake rubocop # Run RuboCop
rake rubocop:auto_correct # Auto-correct RuboCop offenses
rake spec # Run RSpec code examples
rake test # Run kitchen integration tests
rake yard # Generate YARD Documentation
Thor
Run thor -T
to see all Thor tasks.
Guard
Guard tasks have been separated into the following groups:
doc
lint
unit
integration
By default, Guard will generate documentation, lint, and run unit tests.
The integration group must be selected manually with guard -g integration
.
Contributing
Please submit and comment on bug reports and feature requests.
To submit a patch:
- Fork it (https://github.com/opscafe/core/fork).
- Create your feature branch (
git checkout -b my-new-feature
). - Make changes. Write and run tests.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create a new Pull Request.
License
Copyright 2015 Evan Sosenko
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
https://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.
Warranty
This software is provided "as is" and without any express or
implied warranties, including, without limitation, the implied
warranties of merchantibility and fitness for a particular
purpose.
Dependent cookbooks
apt ~> 2.7.0 |
ntp ~> 1.8.6 |
openssh ~> 1.5.0 |
sudo ~> 2.7.1 |
users ~> 1.8.2 |
zsh ~> 1.0.1 |
vim ~> 1.1.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
ChangeLog
0.0.2
- Update Berkshelf to 3.3.0.
0.0.1
Initial release.
Collaborator Number Metric
0.0.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.2 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.0.2 failed this metric
FC066: Ensure chef_version is set in metadata: cafe-core/metadata.rb:1
FC069: Ensure standardized license defined in metadata: cafe-core/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: cafe-core/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.2 passed this metric
Testing File Metric
0.0.2 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.0.2 passed this metric
0.0.2 failed this metric
0.0.2 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.0.2 failed this metric
FC066: Ensure chef_version is set in metadata: cafe-core/metadata.rb:1
FC069: Ensure standardized license defined in metadata: cafe-core/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: cafe-core/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.2 passed this metric
Testing File Metric
0.0.2 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.0.2 passed this metric
0.0.2 failed this metric
FC069: Ensure standardized license defined in metadata: cafe-core/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: cafe-core/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.2 passed this metric
Testing File Metric
0.0.2 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.0.2 passed this metric
0.0.2 failed this metric
0.0.2 passed this metric