Puppet Class: autofs::service

Defined in:
manifests/service.pp

Overview

Class: autofs::service

The autofs::service class configures the autofs service. This class can be used to disable or limit the autofs service if necessary. Such as allowing the service to run, but not at startup.

Parameters:

  • ensure (String) (defaults to: running)

    Determines state of the service. Can be set to: running or stopped.

  • enable (Boolean) (defaults to: true)

    Determines if the service should start with the system boot. true will start the autofs service on boot. false will not start the autofs service on boot.

  • service_restart (Boolean) (defaults to: true)

    Determines if the service has a restart command. If true, puppet will use the restart command to restart the service. If false, the stop, then start commands will be used instead.

  • service_status (Boolean) (defaults to: true)

    Determines if service has a status command.

See Also:

Author:



24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'manifests/service.pp', line 24

class autofs::service (
  String $ensure           = running,
  Boolean $enable          = true,
  Boolean $service_restart = true,
  Boolean $service_status  = true
){
  service { 'autofs':
    ensure     => $ensure,
    enable     => $enable,
    hasstatus  => $service_status,
    hasrestart => $service_restart,
    require    => Package['autofs'],
  }
}