Coder Social home page Coder Social logo

wpowell-ossg / puppet-mount_windows_smb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geoffwilliams/puppet-mount_windows_smb

0.0 0.0 0.0 7 KB

Add a `mount` provider `windows_smb` to enable mapping windows shares to drive letters using Puppet

Ruby 68.25% Makefile 1.00% Puppet 18.83% Shell 11.92%

puppet-mount_windows_smb's Introduction

Build Status

mount_windows_smb

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Add a mount provider windows_smb to enable mapping windows shares to drive letters using Puppet

Usage

Mapping a drive

mount { "D:":
  ensure   => mounted,
  provider => windows_smb,
  device   => "//VAGRANT-2012-R2/shared",
  options  => '{"user":"VAGRANT-2012-R2/test","password":"Password123!"}',
}

Notes

  • You must specify the drive letter as the resource name, in capitals, with a colon
  • To avoid a sea of backslashes, use a forward slash in any share names and user names. The provider will convert them for you
  • options semi-officially has to be a string acording to the type documentation... but no one said I couldn't load the string with JSON ;-)
  • Omit password if there isn't one
  • Other options such as dump, pass etc are ignored
  • We claim the default mount provider on windows
  • Havent tested what happens if the UNC path is changed

Un-mapping a drive

mount { "D:":
  ensure   => absent,
  provider => windows_smb,
}

Reference

generated documentation.

Reference documentation is generated directly from source code using puppet-strings. You may regenerate the documentation by running:

bundle exec puppet strings

Limitations

  • Not supported by Puppet, Inc.

Development

PRs accepted :)

Testing

This module supports testing using PDQTest.

Test can be executed with:

bundle install
make

See .travis.yml for a working CI example

Acknowledgement

  • Thanks to Paul Tötterman and Rob Reynolds - I was able to construct a working provider from the notes left on MODULES-4927

puppet-mount_windows_smb's People

Contributors

geoffwilliams 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.