cookbook 'rssh', '~> 0.1.5'
rssh (3) Versions 0.1.5 Follow0
Installs/Configures rssh
cookbook 'rssh', '~> 0.1.5', :supermarket
knife supermarket install rssh
knife supermarket download rssh
rssh Cookbook
This is a Chef Cookbook to Manage and Configure rssh
.
Repository
https://github.com/vkhatri/chef-rssh
Recipes
-
rssh::default
- install and configure rssh
rssh user LWRP
LWRP
You could and should use the user LWRP if you want to define rssh users from
various cookbooks around chef such as:
rssh_user "some_user" do
options "some_options"
end
rssh_user "another_user" do
options "more options"
end
LWRP Options
- name (required) - rssh user name
- action (optional) - default :add
- options (options) - rssh user options
- config_path (optional) - rssh config file path
Core Attributes
-
default[:rssh][:config_path]
(default: '/etc/rssh.conf'): rssh config file path -
default[:rssh][:options]
(default: 'LOG_USER'): Hash of rssh options attributes, e.g. {"option_name" => "option_value"} -
default[:rssh][:options][:logfacility]
(default: 'LOG_USER'): syslog facility rssh logs to -
default[:rssh][:options][:umask]
(default: '022'): umask value for file creations in the scp/sftp session -
default[:rssh][:user]
(default: {}): rssh users options attribute, e.g. {"user_name" => "options"} -
default[:rssh][:allow]
(default: ["scp", "rsync", "sftp"]): rssh allow* service options attribute
Usage
Add User via Node attribute
"default_attributes": {
"rssh": {
"user": {
"foo": "foo-options"
}
}
}
Add User via LWRP
rssh_user 'foo' do
options "foo-options"
end
Add to run_list
Just include rssh
in your node's run_list
or role's run_list
:
{
"name":"my_name",
"run_list": [
"recipe[rssh::default]"
]
}
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests (
rake
), ensuring they all pass - Write new resource/attribute description to
README.md
- Write description about changes to PR
- Submit a Pull Request using Github
License and Authors
Authors:: Virender Khatri, Dan Fruehauf and Contributors
<pre>
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.
</pre>
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
rssh CHANGELOG
This file is used to list changes made in each version of the rssh cookbook.
0.1.5
Virender Khatri - added rubocop, food critic, knife and spec lint tests
Virender Khatri - fixed for rubocop syntax
Virender Khatri - added rake tasks
0.1.3
Virender Khatri - re formatted README
Virender Khatri - foodcritic ready
Dan Fruehauf - updated README for lwrp
Dan Fruehauf - added user lwrp
0.1.1
- Virender Khatri - initial release of rssh
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.5 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.5 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.1.5 failed this metric
FC064: Ensure issues_url is set in metadata: rssh/metadata.rb:1
FC065: Ensure source_url is set in metadata: rssh/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rssh/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rssh/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:25
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:29
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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.1.5 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.1.5 failed this metric
0.1.5 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.1.5 failed this metric
FC064: Ensure issues_url is set in metadata: rssh/metadata.rb:1
FC065: Ensure source_url is set in metadata: rssh/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rssh/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rssh/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:25
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:29
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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.1.5 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.1.5 failed this metric
FC065: Ensure source_url is set in metadata: rssh/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rssh/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rssh/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:25
FC085: Resource using new_resource.updated_by_last_action to converge resource: rssh/providers/user.rb:29
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.5 passed this metric
Testing File Metric
0.1.5 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.1.5 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.1.5 failed this metric
0.1.5 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