cookbook 'smbfs', '~> 0.4.0', :supermarket
smbfs (2) Versions 0.4.0 Follow3
Installs/Configures smbfs and adds mount points according to data driven pattern
cookbook 'smbfs', '~> 0.4.0'
knife supermarket install smbfs
knife supermarket download smbfs
Description
A recipe that installs smbfs on linux hosts. It also includes a resource for mounting cifs shares and an attribute driven recipe managing smbfs mounts.
Requirements
Tested on Ubuntu 11.
Attributes
-
node['smbfs']['mounts']
- A map that describes zero or more cifs mounts. Used to drive theattribtue_driven
recipe.
Usage
There are two recipes provided:
-
smbfs::default
- Install the smbfs package. -
smbfs::attribute_driven
- Invokes thesmbfs::default
recipe and then interprets thenode['smbfs']['mounts']
attribtue and defines the resources for the mouts.
Resources
smbfs_mount
The smbfs_mount
resource helps define a mount for a cifs share.
- path: the path on which to mout the share. This is the name of the resource.
- cifs_path: The url for cifs mount.
- username: The username if authenticated access required to cifs share. Defaults to nil.
- password: The password. Must be present iff username is present. Defaults to nil.
- option: Arbitrary key value pairs passed to mount.
The simplest example for mounting a share;
smbfs_mount '/mnt' do
cifs_path '//san01.example.org/myshare$/Some/Path'
username 'MyUser',
password 'MyPass',
options {'rw' => nil}
end
Attribute Driven Recipe
The simplest example for mounting a share;
node['smbfs']['mounts']['/mnt'] =
{
'cifs_path' => '//san01.example.org/myshare$/Some/Path',
'username' => 'MyUser',
'password' => 'MyPass',
'options' =>
{
'rw' => nil,
'dir_mode' => '0700',
'file_mode' => '0600',
'noserverino' => nil,
'uid' => 'myuser',
'gid' => 'mygroup'
}
}
include_recipe 'smbfs::attribute_driven'
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.4.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.4.0 passed this metric
Foodcritic Metric
0.4.0 failed this metric
FC064: Ensure issues_url is set in metadata: smbfs/metadata.rb:1
FC065: Ensure source_url is set in metadata: smbfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: smbfs/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: smbfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: smbfs/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 failed this metric
smbfs should declare what platform(s) it supports.
Testing File Metric
0.4.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.4.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.4.0 failed this metric
0.4.0 passed this metric
Foodcritic Metric
0.4.0 failed this metric
FC064: Ensure issues_url is set in metadata: smbfs/metadata.rb:1
FC065: Ensure source_url is set in metadata: smbfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: smbfs/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: smbfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: smbfs/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 failed this metric
smbfs should declare what platform(s) it supports.
Testing File Metric
0.4.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.4.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.4.0 failed this metric
FC065: Ensure source_url is set in metadata: smbfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: smbfs/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: smbfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: smbfs/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 failed this metric
smbfs should declare what platform(s) it supports.
Testing File Metric
0.4.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.4.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.4.0 passed this metric
0.4.0 failed this metric
smbfs should declare what platform(s) it supports.
Testing File Metric
0.4.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.4.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.4.0 failed this metric
0.4.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