Code Monkey home page Code Monkey logo

puppet-samba's Introduction

puppet-samba

Overview

Install, enable and configure a SAMBA Windows share server. Should work on Red Hat Enterprise Linux (and clones such as CentOS), Debian (and derivatives such as Ubuntu) and FreeBSD.

  • samba::server : Main class to manage a Samba server

Example Usage

class { '::samba::server':
  workgroup            => 'EXAMPLE',
  server_string        => 'Example File Server 01',
  netbios_name         => 'F01',
  interfaces           => [ 'lo', 'eth0' ],
  hosts_allow          => [ '127.', '192.168.' ],
  local_master         => 'yes',
  map_to_guest         => 'Bad User',
  os_level             => '50',
  preferred_master     => 'yes',
  extra_global_options => [
    'printing = BSD',
    'printcap name = /dev/null',
  ],
  shares => {
    'homes' => [
      'comment = Home Directories',
      'browseable = no',
      'writable = yes',
    ],
    'pictures' => [
      'comment = Pictures',
      'path = /srv/pictures',
      'browseable = yes',
      'writable = yes',
      'guest ok = yes',
      'available = yes',
    ],
  },
  selinux_enable_home_dirs => true,
}
---
classes:
  - '::samba::server'
samba::server::workgroup: 'EXAMPLE'
samba::server::server_string: 'Example File Server 01'
samba::server::netbios_name: 'F01'
samba::server::interfaces:
  - 'lo'
  - 'eth0'
samba::server::hosts_allow:
  - '127.'
  - '192.168.'
samba::server::local_master: 'yes'
samba::server::map_to_guest: 'Bad User'
samba::server::os_level: '50'
samba::server::preferred_master: 'yes'
samba::server::extra_global_options:
  - 'printing = BSD'
  - 'printcap name = /dev/null'
samba::server::shares:
  homes:
    - 'comment = Home Directories'
    - 'browseable = no'
    - 'writable = yes'
  pictures:
    - 'comment = Pictures'
    - 'path = /srv/pictures'
    - 'browseable = yes'
    - 'writable = yes'
    - 'guest ok = yes'
    - 'available = yes'
samba::server::selinux_enable_home_dirs: true

puppet-samba's People

Contributors

thias avatar up2datecyborg avatar spredzy avatar amateo avatar chris-hall-hu avatar t0mmyt avatar

Watchers

James Cloos 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.