Giter Site home page Giter Site logo

chef-smbfs's Introduction

Description

Build Status

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 the attribtue_driven recipe.

Usage

There are two recipes provided:

  • smbfs::default - Install the smbfs package.
  • smbfs::attribute_driven - Invokes the smbfs::default recipe and then interprets the node['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'

chef-smbfs's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.