cookbook 'rsync_chroot', '~> 1.0.0'
rsync_chroot (1) Versions 1.0.0 Follow0
Installs/Configures rsync with chroot per ssh key
cookbook 'rsync_chroot', '~> 1.0.0', :supermarket
knife supermarket install rsync_chroot
knife supermarket download rsync_chroot
rsync_chroot Cookbook
Chef Cookbook to configure rsync with ssh and chroot
Requirements
Platforms
- Debian, Ubuntu
- CentOS 6+, Red Hat 6+, Fedora, Amazon
Attributes
-
node['rsync_chroot']['rsync_options']
- default rsync options to use,--server
is implied but this gives you control of some extra options -
node['rsync_chroot']['ssh_options']
- default ssh options to include inauthorized_keys
LWRP
This cookbook provides a provider to install a SSH key for use with rsync for a given user.
For example, the following snippet will configure the given SSH key to be mapped to
/data/staging
using user staging
:
rsync_chroot_user 'rsync_staging_data' do user "staging" key "HERE_BE_SSH_PUBLIC_KEY" directory "/data/staging" comment "user@org.com" end
Usage
rsync_chroot::default
Include rsync_chroot
in your node's run_list
or role's run_list
:
{ "name":"my_name", "run_list": [ "recipe[rsync_chroot]" ] }
Use the LWRP in recipes as desired.
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, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors:: Dan Fruehauf
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
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.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
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: rsync_chroot/metadata.rb:1
FC065: Ensure source_url is set in metadata: rsync_chroot/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rsync_chroot/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rsync_chroot/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rsync_chroot/providers/user.rb:55
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
1.0.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
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: rsync_chroot/metadata.rb:1
FC065: Ensure source_url is set in metadata: rsync_chroot/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rsync_chroot/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rsync_chroot/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rsync_chroot/providers/user.rb:55
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
FC065: Ensure source_url is set in metadata: rsync_chroot/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rsync_chroot/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rsync_chroot/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: rsync_chroot/providers/user.rb:55
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
1.0.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