Giter Site home page Giter Site logo

puppet-samba's Introduction

rehan-samba

Puppet Forge Build Status

Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Dependencies
  6. Development

Overview

The rehan-samba module manages the Samba/CIFS, the virtual filesystem based on SMB protocol.

Module Description

A puppet module for managing the installation and configuration of samba. This module installs and configures the samba server and client packages and allows configuration of user specific SMB shares.

Implemented Features:

  • Installs samba server package
  • Installs samba client package
  • Allows managing global SMB configurations parameters.
  • Allows managing SMB shares.

Setup

In order to install rehan-samba, run the following command:

$ puppet module install rehan-samba

The module does expect all the data to be provided through 'Hiera'. See Usage for examples on how to configure it.

Requirements

This module is designed to be as clean and compliant with latest puppet code guidelines.

Usage

Example Usage for Samba Server (puppet dsl)

    class { 'samba':
      package_ensure       => 'installed'
      os_level             => 50,
      workgroup            => 'EXAMPLE',
      wins_server          => '10.10.10.10',
      server_string        => 'Example File Server 01',
      netbios_name         => 'F01',
      interfaces           => [ 'lo', 'eth0' ],
      hosts_allow          => [ '127.', '192.168.' ],
      hosts_deny           => [ 'ALL' ]
      local_master         => 'yes',
      preferred_master     => 'yes',
      map_to_guest         => 'Bad User',
      shares => {
        'homes' => {
          comment    => 'Home Directories',
          browseable => false,
          path       => '/home',
          writable   => true,
        },
        'pictures' => {
          comment        => 'Pictures',
          path           => '/srv/pictures',
          browseable     => true,
          writable       => true,
          create_mask    => '1777',
          directory_mask => '1777',
        },
      },
    }

Example Usage for Samba Client (puppet dsl)

contain samba::client

Example Usage (hiera)

All of this data can be provided through Hiera.

YAML

samba::package_ensure: 'installed'
samba::os_level: 50
samba::workgroup: 'EXAMPLE'
samba::wins_server: '10.10.10.10'
samba::server_string: 'Example File Server 01'
samba::netbios_name: 'F01'
samba::interfaces:
   - 'lo'
   - 'eth0'
samba::hosts_allow:
   - '127.'
   - '192.168.'
samba::hosts_deny:
   - 'ALL'
samba::local_master: 'yes'
samba::preferred_master: 'yes'
samba::map_to_guest: 'Bad User'
samba::firewall_manage: true
samba::shares:
  'homes':
    comment: 'Home Directories'
    browseable: false
    path: '/home'
    writable: true
  'pictures':
    comment: 'Pictures'
    path: '/srv/pictures'
    browseable: true
    writable: true
    create_mask: '1777'
    directory_mask: '1777'

Dependencies

Development

You can submit pull requests and create issues through the official page of this module on GitHub. Please do report any bug and suggest new features/improvements.

puppet-samba's People

Contributors

rehanone avatar welchnut avatar thaylin 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.