Skip to content

Commit 1d83039

Browse files
authored
Merge pull request #203 from kenyon/readme
2 parents 39199e2 + 6b10271 commit 1d83039

File tree

1 file changed

+1
-352
lines changed

1 file changed

+1
-352
lines changed

README.md

Lines changed: 1 addition & 352 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* [Requirements](#requirements)
1818
* [Incompatibilities](#incompatibilities)
1919
3. [Usage - Configuration options and additional functionality](#usage)
20-
4. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
2120
4. [Limitations - OS compatibility, etc](#limitations)
2221
5. [Development - Guide for contributing to the module](#development)
2322
6. [Support - When you need help with this module](#support)
@@ -370,333 +369,6 @@ autofs::service_conf_options:
370369
VALUE_ATTRIBUTE: 'automountInformation'
371370
```
372371

373-
## Reference
374-
375-
### Classes
376-
377-
#### Public Classes
378-
379-
* `autofs`: Main class. Contains or calls all other classes or defines.
380-
381-
#### Private Classes
382-
383-
* `autofs::package`: Handles autofs packages.
384-
* `autofs::service`: Handles the service.
385-
386-
### Parameters
387-
388-
#### `mounts`
389-
390-
Optional.
391-
392-
Data type: Hash
393-
394-
A hash of options that describe Autofs mount points for which entries
395-
should appear in the master map. Each entry is equivalent to the title and
396-
a hash of the parameters of one `autofs::mount` resource.
397-
398-
#### `mapfiles`
399-
400-
Optional.
401-
402-
Data type: Hash
403-
404-
A hash of options that describe Autofs map files that should be managed.
405-
Each entry is equivalent to the title and a hash of the parameters of one
406-
`autofs::mapfile` resource.
407-
408-
#### `package_name`
409-
410-
Data type: String or Array[String]
411-
412-
The name of the Autofs package(s). System-appropriate values for a variety
413-
of target environments are included with the module, so this parameter
414-
does not usually need to be specified explicitly.
415-
416-
#### `package_ensure`
417-
418-
Data type: String
419-
420-
Determines the required state of the autofs package. Can be set to: `installed`, `absent`, `lastest`, or a specific
421-
version string.
422-
423-
Default: 'installed'
424-
425-
#### `service_name`
426-
427-
Data type: String
428-
429-
The name of the Autofs service, as appropriate for use with the target
430-
environment's tools. System-appropriate values for a variety of
431-
target environments are included with the module, so this parameter
432-
does not usually need to be specified explicitly.
433-
434-
#### `service_ensure`
435-
436-
Data type: Enum['running', 'stopped']
437-
438-
Determines required state of the autofs service.
439-
440-
Default: 'running'
441-
442-
#### `service_enable`
443-
444-
Data type: Boolean
445-
446-
Determines whether the autofs service should start at system boot.
447-
448-
Default: `true`
449-
450-
#### `reload_command`
451-
452-
Optional.
453-
454-
Data type: String
455-
456-
If specified, a command to execute in the target environment to reload
457-
Autofs configuration without restarting the service.
458-
459-
#### `auto_master_map`
460-
461-
Data type: String
462-
463-
The absolute path to the Autofs master map. The standard paths used on
464-
a variety of supported environments are included with the module, so this
465-
parameter does not usually need to be specified explicitly.
466-
467-
#### `map_file_owner`
468-
469-
Data type: String
470-
471-
The system user who should own the master map and any managed map files.
472-
May be expressed either as a name or as a uid (in string form). The
473-
module defaults to 'root' for most environments and provides alternative
474-
defaults for supported target environments that ordinarily differ in this
475-
regard, so it is rarely necessary to specify this parameter explicitly
476-
unless a non-standard value is desired.
477-
478-
#### `map_file_group`
479-
480-
Data type: String
481-
482-
The system group to which the master map and any managed map files should
483-
be assigned. May be expressed either as a name or as a gid (in string
484-
form). The module defaults to 'root' for most environments and provides
485-
alternative defaults for supported target environments that ordinarily
486-
differ in this regard, so it is rarely necessary to specify this
487-
parameter explicitly unless a non-standard value is desired.
488-
489-
### Defines
490-
491-
#### Public Defines
492-
493-
* `autofs::mount`: Describes an entry in the master map.
494-
* `autofs::mapfile`: Describes a (sun-format) map file and, optionally, some or all of its contents.
495-
* `autofs::mapping`: Describes one (sun-format) filesystem mapping in a specific map file.
496-
497-
### Parameters for autofs::mount
498-
499-
#### `ensure`
500-
501-
Data type: String
502-
503-
The desired state of the mount definition in the master map. If set to
504-
`absent`, the resulting master map will not contain a mountpoint definition
505-
corresponding to this resource. Defaults to `present`.
506-
507-
#### `mount`
508-
509-
Data type: Stblib::Absolutepath
510-
511-
The Autofs mountpoint described by this resource. When this parameter has the value `/-`, this resource describes a direct
512-
mount, and the keys in the corresponding map file must be absolute paths to mountpoint directories. Otherwise, this
513-
resource describes an indirect map, and this parameter is a base path to the automounted directories
514-
described by the corresponding map file. Defaults to the `title` of this `autofs::mount`.
515-
516-
#### `mapfile`
517-
518-
Data type: Stdlib::Absolutepath or Autofs::MapEntry
519-
520-
This parameter designates the automount map serving this mount. Autofs supports a variety of options
521-
here, but most commonly this is either an absolute path to a map file or the special string `-hosts`.
522-
523-
#### `options`
524-
525-
Optional.
526-
527-
Data type: String
528-
529-
This parameter provides Autofs and/or mount options to be specified for this
530-
mount point in the master map.
531-
532-
#### `order`
533-
534-
Data type: Integer
535-
536-
This parameter specifies the relative order of this mount point in the master map.
537-
538-
Default: 1
539-
540-
#### `master`
541-
542-
Data type: Stdlib::Absolutepath
543-
544-
This parameter specifies the path to the master map. It's system-dependent
545-
default value is usually the right choice.
546-
547-
Default: (system-dependent)
548-
549-
#### `map_dir`
550-
551-
Data type: Stdlib::Absolutepath
552-
553-
This parameter specifies the path to the Autofs master map drop-in directory
554-
in which this mount's definition should reside. This may differ from mount
555-
to mount. Applies only to autofs 5.0.5 or later, and only when the `use_dir`
556-
parameter is set to `true`.
557-
558-
Default: '/etc/auto.master.d'
559-
560-
#### `purge_map_dir`
561-
562-
Data type: Boolen
563-
564-
This parameter specifies if the $map_dir path should be purged of unmanaged files.
565-
566-
Default: false
567-
568-
#### `use_dir`
569-
570-
Data type: Boolean
571-
572-
This parameter specifies whether to manage this mount point via its own file
573-
in a drop-in directory, as opposed to recording it directly in the master
574-
map. Relevant only for autofs 5.0.5 or later.
575-
576-
Default: `false`
577-
578-
### Parameters for autofs::mapfile
579-
580-
#### `ensure`
581-
582-
Data type: String
583-
584-
This parameter specifies the target state of this map file, either `present` or `absent`.
585-
586-
Default: 'present'
587-
588-
#### `path`
589-
590-
Data type: Stdlib::Absolutepath
591-
592-
The absolute path to the map file managed by this resource. e.g '/etc/auto.data'.
593-
594-
Default: the `title` of this resource.
595-
596-
#### `mappings`
597-
598-
Data type: Array of Autofs::Fs_mapping
599-
600-
Each element corresponds to one (sun-format) mapping in the file, with a key,
601-
usually some mount options, and a specification of the filesystem(s) to
602-
mount. The filesystem specification format is extremely loose, accommodating
603-
not only the typical case of a single remote filesystem spec, but also the
604-
wide variety of Autofs-recognized alternatives such as shared mounts,
605-
multi-mounts, and replicated mounts.
606-
607-
Example:
608-
609-
```puppet
610-
[
611-
{ 'key' => 'dataA', 'options' => 'rw,noexec', 'fs' => 'remote.net:/exports/dataA' }
612-
]
613-
```
614-
615-
Default: []
616-
617-
#### `replace`
618-
619-
Data type: Boolean
620-
621-
This parameter specifies whether this map file's contents should be managed
622-
in the event that the file already exists at the start of the Puppet run.
623-
It affects not only mappings specified directly in this resource, but also
624-
any that are specified for this map file via separate `autofs::mapping`
625-
resources.
626-
627-
Default: `true`
628-
629-
#### `execute`
630-
631-
Data type: Boolean
632-
633-
This parameter specifies whether this map file should be executable.
634-
635-
Default: `false`
636-
637-
### Parameters for autofs::mapping
638-
639-
#### `ensure`
640-
641-
Data type: String
642-
643-
This parameter specifies whether the mapping it describes should be
644-
present in the target map file, provided that that map file is managed
645-
via an `autofs::mapfile` resource or the equivalent data among the
646-
parameters of class `autofs`. Setting the value `absent` is
647-
substantially equivalent to altogether omitting any declaration of this
648-
resource.
649-
650-
Default: 'present'
651-
652-
#### `mapfile`
653-
654-
The absolute path to the target map file hosting this mapping.
655-
656-
#### `key`
657-
658-
Data type: String matching /\A\S+\z/
659-
660-
The autofs key for this mapping.
661-
662-
#### `fs`
663-
664-
Data type: String matching /\S/
665-
666-
The filesystem specification for this mapping. The Sun map format
667-
permits a number of alternatives beyond simple, single mappings, and
668-
this module opts to allow wide latitude in filesystem specification
669-
instead of trying to codify all the alternatives.
670-
671-
Simple example: 'remote.net:/exports/data'
672-
673-
#### `options`
674-
675-
Optional.
676-
677-
Data type: String matching /A\S+\z/, or an Array of such Strings
678-
679-
Autofs and mount options specific to this mapping. If given as and array
680-
then elements are joined with commas (,) to form a single option string.
681-
Options _should not_ be prefixed with a hyphen (-) unless that is part of
682-
the option itself. Options whose names do begin with a hyphen must not
683-
be first.
684-
685-
example: 'rw,noexec,nodev'
686-
687-
example: \[ 'rw', 'noexec', 'nodev' \]
688-
689-
#### `order`
690-
691-
Data type: Integer
692-
693-
The relative order of this mapping in the target map file. Does not
694-
ordinarily need to be specified, because the map file order will be stable
695-
either way, and the order matters only if the map contains more than one
696-
mapping for the same key.
697-
698-
Default: 10
699-
700372
## Limitations
701373

702374
### Removals
@@ -718,30 +390,7 @@ Compatible with Puppet 4 or greater only. Puppet 4.6.0 or greater
718390

719391
### Operating Systems
720392

721-
* Supported
722-
* Ubuntu
723-
* 18.04
724-
* CentOS/RHEL/Scientific/Oracle Linux
725-
* 7.x
726-
* 8.x
727-
* SLES
728-
* 11 Service Pack 4
729-
* 12 Service Pack 1
730-
* OpenSUSE 13.1
731-
* Debian
732-
* 9
733-
* 10
734-
* Self Support - should work, support not provided by developer
735-
* Solaris 10, 11
736-
* AIX 7.1, 7.2
737-
* Fedora 24, 25
738-
* SLES 10
739-
* CentOS/RHEL/Scientific/Oracle Linux 5.x
740-
* Unsupported
741-
* Windows (Autofs not available)
742-
* Mac OS X
743-
744-
For an up2date list of supported modules, take a look at the metadata.json.
393+
For an up2date list of supported operating systems, take a look at the metadata.json.
745394

746395
## Development
747396

0 commit comments

Comments
 (0)