From f3acc294a33653b05466d8c9cb2cad80f9c4eaea Mon Sep 17 00:00:00 2001 From: David Hollinger Date: Sun, 2 Jul 2017 11:22:58 -0500 Subject: [PATCH 1/2] Release 3.2.0 --- CHANGELOG.md | 12 ++++++++++++ metadata.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e4f653..b77fbda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not impact the functionality of the module. +## [v3.2.0](https://github.com/voxpupuli/puppet-autofs/tree/v3.2.0) (2017-07-02) +[Full Changelog](https://github.com/voxpupuli/puppet-autofs/compare/v3.1.0...v3.2.0) + +**Implemented enhancements:** + +- Add Puppet 5 compatibility [\#74](https://github.com/voxpupuli/puppet-autofs/pull/74) ([dhollinger](https://github.com/dhollinger)) + +**Closed issues:** + +- Not compatible with Puppet 5 [\#73](https://github.com/voxpupuli/puppet-autofs/issues/73) + ## [v3.1.0](https://github.com/voxpupuli/puppet-autofs/tree/v3.1.0) (2017-06-24) [Full Changelog](https://github.com/voxpupuli/puppet-autofs/compare/v3.0.2...v3.1.0) @@ -28,6 +39,7 @@ These should not impact the functionality of the module. **Merged pull requests:** +- Release 3.1.0 [\#72](https://github.com/voxpupuli/puppet-autofs/pull/72) ([bastelfreak](https://github.com/bastelfreak)) - bump minimal stdlib version to 4.13.1 [\#71](https://github.com/voxpupuli/puppet-autofs/pull/71) ([bastelfreak](https://github.com/bastelfreak)) - bump minimal puppet version to 4.7.0 [\#70](https://github.com/voxpupuli/puppet-autofs/pull/70) ([bastelfreak](https://github.com/bastelfreak)) - Fixes \#63 autofs::map mapcontent parameter to mapcontents [\#64](https://github.com/voxpupuli/puppet-autofs/pull/64) ([traylenator](https://github.com/traylenator)) diff --git a/metadata.json b/metadata.json index bb04bde..6104e93 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppet-autofs", - "version": "3.1.1-rc0", + "version": "3.2.0", "author": "Vox Pupuli", "summary": "Module for installing and managing autofs", "license": "Apache-2.0", From 9c12295d168065c69bd75137fccf3f3a8570fb49 Mon Sep 17 00:00:00 2001 From: David Hollinger Date: Sun, 2 Jul 2017 12:09:29 -0500 Subject: [PATCH 2/2] Added docs to the release --- docs/_index.html | 18 +- docs/file.README.html | 291 +++++++++++++--- docs/frames.html | 2 +- docs/index.html | 291 +++++++++++++--- docs/js/app.js | 7 +- docs/puppet_class_list.html | 11 +- docs/puppet_classes/autofs.html | 234 ++++++++++++- docs/puppet_classes/autofs_3A_3Apackage.html | 29 +- docs/puppet_classes/autofs_3A_3Aservice.html | 121 ++----- docs/puppet_defined_type_list.html | 9 +- .../puppet_defined_types/autofs_3A_3Amap.html | 319 ++++++++++++++++++ .../autofs_3A_3Amount.html | 150 +++++--- docs/top-level-namespace.html | 6 +- manifests/init.pp | 8 + manifests/map.pp | 5 +- 15 files changed, 1187 insertions(+), 314 deletions(-) create mode 100644 docs/puppet_defined_types/autofs_3A_3Amap.html diff --git a/docs/_index.html b/docs/_index.html index 42952aa..35e56f2 100644 --- a/docs/_index.html +++ b/docs/_index.html @@ -4,7 +4,7 @@ - Documentation by YARD 0.9.8 + Documentation by YARD 0.9.9 @@ -52,7 +52,7 @@
-

Documentation by YARD 0.9.8

+

Documentation by YARD 0.9.9

Alphabetic Index

@@ -73,11 +73,6 @@

Puppet Class Listing A-Z

-
  • - autofs::mounts - -
  • -
  • autofs::package @@ -108,6 +103,11 @@

    Defined Type Listing A-Z

  • A
  • diff --git a/docs/file.README.html b/docs/file.README.html index 71fdbc6..d402b16 100644 --- a/docs/file.README.html +++ b/docs/file.README.html @@ -6,7 +6,7 @@ File: README - — Documentation by YARD 0.9.8 + — Documentation by YARD 0.9.9 @@ -115,15 +115,26 @@

    Usage

    include autofs
     
    -

    By default this installs and starts the autofs service with the default master -file. No parameters exist yet, but are in active development to allow for more -granular control.

    +

    By default this installs and starts the autofs service with the module's default master +file.

    -

    To manage the service, use the following code in your profile:

    +

    You can also manage the state of the autofs package or service.

    + +

    By default the module will install the autofs package and start/enable the autofs service. +You can configure this by using the parameters defined in the main init class.

    + +

    For example, to ensure the package is absent:

    + +
    class { 'autofs':
    +  package_ensure => 'absent',
    +}
    +
    + +

    To ensure that a service is disabled and not running:

    class { 'autofs':
    +  service_ensure => 'stopped',
       service_enable => false,
    -  service_ensure => 'stopped'
     }
     
    @@ -158,8 +169,7 @@
    auto.home

    In hiera, there's a autofs::mounts class you can configure, for example:

    -
    ---
    -autofs::mounts:
    +
    autofs::mounts:
       home:
         mount: '/home'
         mapfile: '/etc/auto.home'
    @@ -188,8 +198,7 @@ 
    Examples:

    Hiera:

    -
    ---
    -autofs::mounts:
    +
    autofs::mounts:
       foo:
         mount: '/-'
         mapfile: '/etc/auto.foo'
    @@ -220,8 +229,7 @@ 
    Usage

    Hiera:

    -
    ---
    -autofs::mounts:
    +
    autofs::mounts:
       home:
         mount: '/home'
         mapfile: '/etc/auto.home'
    @@ -232,59 +240,240 @@ 
    Usage
    use_dir: true
    +

    Map Entries

    + +

    In addition to adding map entries via the mapcontents parameter to autofs::mount theautofs::map` type can also be used.

    + +
    Usage
    + +

    Define:

    + +
    autofs::map{'data':
    +  map => '/etc/auto.data',
    +  mapcontents => 'data -user,rw,soft server.example.com:/path/to/data,
    +}
    +
    + +

    Hiera:

    + +
    autofs::maps:
    +  data:
    +    map: '/etc/auto.data'
    +    mapcontent: 'data -user,rw server.example.com:/path/to/data'
    +
    + +

    It is assumed that the map file itself has already been defined with +and autofs::mount first.

    + +
    autofs::mount{'auto.data':
    +  mapfile => '/etc/auto.data',
    +  mount   => '/big',
    +}
    +
    +

    Reference

    -

    Parameters

    +

    Classes

    + +

    Public Classes

      -
    • mount_name - This is a logical, descriptive name for what what autofs will be -mounting. This is represented by the home: and tmp: entries above.
    • -
    • mount - This Mapping describes where autofs will be mounting to. This map -entry is referenced by concat as part of the generation of the /etc/auto.master -file.
    • -
    • mapfile - This Mapping describes the name and path of the autofs map file. -This mapping is used in the auto.master generation, as well as generating the map -file from the auto.map.erb template. This parameter is no longer required.
    • -
    • mapcontent - This Mapping describes the folders that will be mounted, the -mount options, and the path to the remote or local share to be mounted. Used in -mapfile generation.
    • -
    • options - This Mapping describes the auto.master options to use (if any) -when mounting the automounts.
    • -
    • order - This Mapping describes where in the auto.master file the entry will -be placed. Order CANNOT be duplicated.
    • -
    • master - This Parameter sets the path to the auto.master file. Defaults to -/etc/auto.master.
    • -
    • map_dir - This Parameter sets the path to the Autofs configuration directory -for map files. Applies only to autofs 5.0.5 or later. Defaults to -/etc/auto.master.d.
    • -
    • use_dir - This Parameter tells the module if it is going to use $map_dir. -Defaults to false.
    • -
    • direct - Boolean to allow for indirect map. Defaults to true to be backwards compatible.
    • -
    • execute - Boolean to set the map to be executable. Defaults to false to be backward compatible.
    • -
    • replace - Boolean to set the map file to not be replaced. Defaults to true as Puppet File resource does.
    • +
    • autofs: Main class. Contains or calls all other classes or defines.
    -

    Limitations

    +

    Private Classes

    -

    Puppet platforms

    +
      +
    • autofs::package: Handles autofs packages.
    • +
    • autofs::service: Handles the service.
    • +
    -

    Release 2.0.0 (and above) only support Puppet 4.x and Puppet Enterprise 2015.2.0 or newer

    +

    Parameters

    -

    Puppet 3.x Compatibility

    +

    mounts

    -

    Puppet 3.x was End of Life starting January 1st, 2017, if Puppet 3.x functionality is still needed, please install using one of the following method:

    +

    Optional.

    -
      -
    • git clone git@github.com:voxpupuli/puppet-autofs.git -b puppet3 <module_path>/autofs
    • -
    +

    Data type: Hash

    + +

    A hash of options that will build the configuration. This hash is passed to the Defined type. +Each hash key is the equivalent to a parameter in the autofs::mount defined type.

    + +

    Default: undef

    + +

    package_ensure

    + +

    Data type: String

    + +

    Determines the state of the package. Can be set to: installed, absent, lastest, or a specific version string.

    + +

    Default: 'installed'

    + +

    service_ensure

    + +

    Data type: Enum['running', 'stopped']

    + +

    Determines state of the service.

    + +

    Default: 'running'

    + +

    service_enable

    -

    Support for Puppet 3.x Functionality:

    +

    Data type: Boolean

    + +

    Determines if the service should start with the system boot.

    + +

    Default: true

    + +

    Defines

    + +

    Public Defines

      -
    • No new features will be added to the puppet3 branch.
    • -
    • No new deployments will be issued to the Puppet Forge.
    • +
    • autofs::mount: Builds the autofs configuration.
    • +
    • autofs::map: Builds map entires for autofs configuration.
    +

    Parameters for autofs::mount

    + +

    mount_name

    + +

    Data type: String

    + +

    This is a logical, descriptive name for what what autofs will be +mounting. This is represented by the home: and tmp: entries above.

    + +

    mount

    + +

    Data type: Stblib::Absolutepath

    + +

    This Mapping describes where autofs will be mounting to. This map +entry is referenced by concat as part of the generation of the /etc/auto.master +file. Defaults to the title of the autofs::mount

    + +

    mapfile

    + +

    Data type: Stdlib::Absolutepath or Autofs::MapEntry

    + +

    This Mapping describes the name and path of the autofs map file. +This mapping is used in the auto.master generation, as well as generating the map +file from the auto.map.erb template. This parameter is no longer required. +When anything other than a simple file path is used mapfile_manage must be false.

    + +

    mapfile_manage

    + +

    Data type: Boolean

    + +

    If true the the mapfile file will be created and maintained. Defaults +to true. Set this to false when the map file is maintained some other way, +e.g auto.smb from the autofs package.

    + +

    mapcontents

    + +

    Data type: Array

    + +

    This Mapping describes the folders that will be mounted, the +mount options, and the path to the remote or local share to be mounted. Used in +mapfile generation.

    + +

    Default: []

    + +

    options

    + +

    Optional.

    + +

    Data type: String

    + +

    This Mapping describes the auto.master options to use (if any) +when mounting the automounts.

    + +

    Default: ''

    + +

    order

    + +

    Data type: Integer

    + +

    This Mapping describes where in the auto.master file the entry will +be placed. Order CANNOT be duplicated.

    + +

    Default: undef

    + +

    master

    + +

    Data type: Stdlib::Absolutepath

    + +

    This Parameter sets the path to the auto.master file.

    + +

    Default: '/etc/auto.master'

    + +

    map_dir

    + +

    Data type: Stdlib::Absolutepath

    + +

    This Parameter sets the path to the Autofs configuration directory +for map files. Applies only to autofs 5.0.5 or later.

    + +

    Default: '/etc/auto.master.d'

    + +

    use_dir

    + +

    Data type: Boolean

    + +

    This Parameter tells the module if it is going to use $map_dir.

    + +

    Default: false

    + +

    direct

    + +

    Data type: Boolean

    + +

    Enable or disable indirect maps.

    + +

    Default: true

    + +

    execute

    + +

    Data type: Boolean

    + +

    Set mapfile to be executable.

    + +

    Default: false

    + +

    replace

    + +

    Data type: Boolean

    + +

    Whether or not to replace the mapfile if it already exists.

    + +

    Default: true

    + +

    Parameters for autofs::map

    + +

    mapfile

    + +

    Data type: Stdlib::Absolutepath

    + +

    mapfile file to add entry to. e.g '/etc/auto.data'.

    + +

    mapcontent

    + +

    Data type: String

    + +

    This Mapping describes a folder that will be mounted, the +mount options, and the path to the remote or local share to be mounted. Used in +mapfile generation. e.g. 'data -rw nfs.example.org:/data/big

    + +

    Limitations

    + +

    Removals

    + +

    Directly calling the autofs::package and autofs::service classes is disabled in 3.0.0. +These are now private classes.

    + +

    Puppet platforms

    + +

    Compatible with Puppet 4 only. Puppet 4.6.0 will provide best results.

    +

    Operating Systems

      @@ -346,9 +535,9 @@

      Authors

    diff --git a/docs/frames.html b/docs/frames.html index b6c2338..0cb1371 100644 --- a/docs/frames.html +++ b/docs/frames.html @@ -2,7 +2,7 @@ - Documentation by YARD 0.9.8 + Documentation by YARD 0.9.9 + + + + + + + + + + + +
    + + +

    Defined Type: autofs::map

    +
    +
    +
    Defined in:
    +
    + manifests/map.pp +
    +
    +
    + +

    Overview

    +
    +
    +

    Define: autofs::map

    + +

    Defined type to generate autofs map entry +configuration files.

    + +
    +
    +
    + +
    +

    Examples:

    + + +

    Using the autofs::map defined type to setup automount for nfs data directory.

    +

    + +
    autofs::map { 'data':
    +  mapcontents => 'mydata -user,rw,soft,intr,rsize=32768,wsize=32768  nfs.example.org:/path/to/some/data',
    +  mapfile => '/etc/auto.data',
    +  order   => '01',
    +}
    + +
    +

    Parameters:

    +
      + +
    • + + mapcontents + + + (Array) + + + + — +

      The mount point options and parameters, +Example: '* -user,rw,soft nfs.example.org:/path/to'

      +
      + +
    • + +
    • + + mapfile + + + (Stdlib::Absolutepath) + + + + — +

      Name of the "auto." configuration file that will be generated.

      +
      + +
    • + +
    • + + template + + + (Enum['autofs/auto.map.erb', 'autofs/auto.map.exec.erb']) + + + (defaults to: 'autofs/auto.map.erb') + + + — +

      Template to use to generate the mapfile.

      +
      + +
    • + +
    • + + mapmode + + + (String) + + + (defaults to: '0644') + + + — +

      UNIX permissions to be added to the file.

      +
      + +
    • + +
    • + + replace + + + (Boolean) + + + (defaults to: true) + + + — +

      Whether or not to replace an existing mapfile of the same filename/path.

      +
      + +
    • + +
    • + + order + + + (Integer) + + + (defaults to: 1) + + + — +

      Order in which entries will appear in the autofs map file.

      +
      + +
    • + +
    + + +

    See Also:

    + +

    Author:

    + + +
    + + + + + +
    +
    +
    +
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +
    +
    # File 'manifests/map.pp', line 29
    +
    +define autofs::map (
    +  Array $mapcontents,
    +  Stdlib::Absolutepath $mapfile,
    +  Enum['autofs/auto.map.erb', 'autofs/auto.map.exec.erb'] $template = 'autofs/auto.map.erb',
    +  String $mapmode                                                   = '0644',
    +  Boolean $replace                                                  = true,
    +  Integer $order                                                    = 1,
    +) {
    +
    +  ensure_resource(concat,$mapfile,{
    +    ensure  => present,
    +    owner   => 'root',
    +    group   => 'root',
    +    mode    => $mapmode,
    +    replace => $replace,
    +    require => Package['autofs'],
    +    notify  => Service['autofs'],
    +  })
    +
    +  concat::fragment{"${mapfile}_${name}_entries":
    +    target  => $mapfile,
    +    content => template($template),
    +    order   => $order,
    +  }
    +
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/docs/puppet_defined_types/autofs_3A_3Amount.html b/docs/puppet_defined_types/autofs_3A_3Amount.html index e11a36d..1e76aa0 100644 --- a/docs/puppet_defined_types/autofs_3A_3Amount.html +++ b/docs/puppet_defined_types/autofs_3A_3Amount.html @@ -6,7 +6,7 @@ Defined Type: autofs::mount - — Documentation by YARD 0.9.8 + — Documentation by YARD 0.9.9 @@ -68,6 +68,7 @@ +

    Overview

    @@ -76,6 +77,8 @@

    Overview

    Defined type to generate autofs mount point configuration files.

    +

    }

    +
    @@ -88,13 +91,23 @@

    Overview

    autofs::mount { 'home':
    -  mount       => '/home',
    -  mapfile     => '/etc/auto.home',
    -  mapcontents => ['* -user,rw,soft,intr,rsize=32768,wsize=32768,tcp,nfsvers=3,noacl server.example.com:/path/to/home/shares'],
    -  options     => '--timeout=120',
    -  order       => 01
    +  mount          => '/home',
    +  mapfile        => '/etc/auto.home',
    +  mapcontents    => ['* -user,rw,soft,intr,rsize=32768,wsize=32768,tcp,nfsvers=3,noacl server.example.com:/path/to/home/shares'],
    +  options        => '--timeout=120',
    +  order          => 01
     }
    + +

    Using autofs::mount defined type to create an enty for an existing auto.smb file.

    +

    + +
    autofs::mount { 'smb':
    + mount          => '/smb',
    + mapfile        => 'program:/etc/auto.smb',
    + mapfile_manage => false,
    + options        => '--timeout=120',
    +

    Parameters:

      @@ -104,9 +117,11 @@

      Overview

      mount - (String) + (Stdlib::Absolutepath) + (defaults to: $title) + —

      Location where you will mount the remote NFS Share.

      @@ -119,14 +134,15 @@

      Overview

      mapfile - (String) + (Optional[Variant[Stdlib::Absolutepath,Autofs::Mapentry]]) - (defaults to: '') + (defaults to: undef) — -

      Name of the "auto." configuration file that will be generated.

      +

      Name of the "auto." configuration file that will be generated. +can be a filepath or maptype and path.

      @@ -154,7 +170,7 @@

      Overview

      master - (String) + (Stdlib::Absolutepath) (defaults to: '/etc/auto.master') @@ -171,7 +187,7 @@

      Overview

      map_dir - (String) + (Stdlib::Absolutepath) (defaults to: '/etc/auto.master.d') @@ -207,7 +223,7 @@

      Overview

      options - (String) + (Optional[String]) (defaults to: '') @@ -227,6 +243,8 @@

      Overview

      (Integer) + (defaults to: 1) + —

      Order in which entries will appear in the autofs master file.

      @@ -270,6 +288,24 @@

      Overview

      +
    • + + mapfile_manage + + + (Boolean) + + + (defaults to: true) + + + — +

      Boolean will manaage the map file specifed in mapfile +paramter.

      +
      + +
    • +
    • replace @@ -336,17 +372,6 @@

      Overview

       
       
      -40
      -41
      -42
      -43
      -44
      -45
      -46
      -47
      -48
      -49
      -50
       51
       52
       53
      @@ -423,26 +448,45 @@ 

      Overview

      124 125 126 -127
      +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 -
      # File 'manifests/mount.pp', line 40
      +        
      # File 'manifests/mount.pp', line 51
       
       define autofs::mount (
      -  String $mount,
      -  Integer $order,
      -  String $options    = '',
      -  String $master     = '/etc/auto.master',
      -  String $map_dir    = '/etc/auto.master.d',
      -  Boolean $use_dir   = false,
      -  Boolean $direct    = true,
      -  Boolean $execute   = false,
      -  String $mapfile    = '',
      -  Array $mapcontents = [],
      -  Boolean $replace   = true
      +  Stdlib::Absolutepath $mount             = $title,
      +  Integer $order                          = 1,
      +  Optional[Variant[Stdlib::Absolutepath,Autofs::Mapentry]] $mapfile = undef,
      +  Optional[String] $options               = '',
      +  Stdlib::Absolutepath $master            = '/etc/auto.master',
      +  Stdlib::Absolutepath $map_dir           = '/etc/auto.master.d',
      +  Boolean $use_dir                        = false,
      +  Boolean $direct                         = true,
      +  Boolean $execute                        = false,
      +  Boolean $mapfile_manage                 = true,
      +  Array $mapcontents                      = [],
      +  Boolean $replace                        = true
       ) {
      +  include '::autofs'
       
      -  if $mapfile != '' {
      +  if $mapfile.is_a(Autofs::Mapentry) and $mapfile_manage {
      +    fail("Parameter 'mapfile_manage' must be false for complicated 'mapfile' ${mapfile}")
      +  }
      +
      +  if $mapfile {
           $contents = "${mount} ${mapfile} ${options}\n"
         } else {
           $contents = "${mount} ${options}\n"
      @@ -463,7 +507,7 @@ 

      Overview

      group => 'root', mode => '0644', ensure_newline => true, - notify => Service[ 'autofs' ], + notify => Service['autofs'], } } @@ -487,7 +531,7 @@

      Overview

      target => $master, content => "+dir:${map_dir}", order => $order, - require => File[ $map_dir ], + require => File[$map_dir], } } @@ -497,24 +541,20 @@

      Overview

      group => 'root', mode => $mapperms, content => $contents, - require => File[ $map_dir ], - notify => Service[ 'autofs' ], + require => File[$map_dir], + notify => Service['autofs'], } } - if $mapfile != '' { - file { $mapfile: - ensure => present, - owner => 'root', - group => 'root', - mode => $mapperms, - replace => $replace, - content => template($maptempl), - require => Package[ 'autofs' ], - notify => Service[ 'autofs' ], + if $mapfile and $mapfile_manage { + autofs::map { $title: + mapfile => $mapfile, + mapcontents => $mapcontents, + replace => $replace, + template => $maptempl, + mapmode => $mapperms, } } - }
      @@ -523,9 +563,9 @@

      Overview

    • diff --git a/docs/top-level-namespace.html b/docs/top-level-namespace.html index d230bc5..f4154df 100644 --- a/docs/top-level-namespace.html +++ b/docs/top-level-namespace.html @@ -6,7 +6,7 @@ Top Level Namespace - — Documentation by YARD 0.9.8 + — Documentation by YARD 0.9.9 @@ -90,9 +90,9 @@
      diff --git a/manifests/init.pp b/manifests/init.pp index e1968d1..e0595a6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -59,6 +59,14 @@ # @option mounts [Array] :mapcontents Mount point options and parameters. Each # array element represents a line in the configuration file. # @option mounts [Boolean] :replace Enforce the configuration state or not. +# @param maps the options to build an autofs mapfile. +# @option maps [Array]:mapcontents Mount point options and parameters. Each +# array element represents a line in the mapfile. +# @option maps [Stdlib::Absolutepath] :mapfile Full path to where the mapfile will be placed +# @option maps [Enum['autofs/auto.map.erb', 'autofs/auto.map.exec.erb']] :template Template to use the generate the mapfile +# @option maps [String] :mapmode The UNIX permissions to apply to the mapfile. +# @option maps [Boolean] :replace Replace the file if it changes or not. +# @option maps [Integer] :order The order in which to place mapfile contents. # @param package_ensure Determines the state of the package. Can be set to: installed, absent, lastest, or a specific version string. # @param service_ensure Determines state of the service. Can be set to: running or stopped. # @param service_enable Determines if the service should start with the system boot. true diff --git a/manifests/map.pp b/manifests/map.pp index 3678e59..f5b6591 100644 --- a/manifests/map.pp +++ b/manifests/map.pp @@ -21,8 +21,11 @@ # @param mapcontents The mount point options and parameters, # Example: '* -user,rw,soft nfs.example.org:/path/to' # @param mapfile Name of the "auto." configuration file that will be generated. +# @param template Template to use to generate the mapfile. +# @param mapmode UNIX permissions to be added to the file. +# @param replace Whether or not to replace an existing mapfile of the same filename/path. # @param order Order in which entries will appear in the autofs map file. - +# define autofs::map ( Array $mapcontents, Stdlib::Absolutepath $mapfile,