Puppet Class: nut::cgi

Inherits:
nut::params
Defined in:
manifests/cgi.pp

Overview

Installs the Network UPS Tools (NUT) CGI scripts.

Examples:

Declaring the class

include ::nut::cgi

Managing the virtual host configuration elsewhere

class { '::nut::cgi':
  manage_vhost => false,
}

Parameters:

  • apache_resources (Hash) (defaults to: $::nut::params::apache_resources)

    Hash of Apache resources to create that configures the virtual host serving the CGI scripts.

  • conf_dir (Stdlib::Absolutepath) (defaults to: $::nut::params::cgi_conf_dir)

    Top-level configuration directory, usually /var/www/conf/nut or /etc/ups.

  • group (String) (defaults to: $::nut::params::group)

    The unprivileged group used to drop root privileges.

  • http_server (Enum['apache', 'httpd']) (defaults to: $::nut::params::http_server)

    Which HTTP server to configure a virtual host for.

  • manage_vhost (Boolean) (defaults to: $::nut::params::manage_vhost)

    Whether to create a virtual host for the CGI scripts or not.

  • package_name (String) (defaults to: $::nut::params::cgi_package_name)

    The name of the package.

  • user (String) (defaults to: $::nut::params::user)

    The unprivileged user used to drop root privileges.

See Also:



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

class nut::cgi (
  Hash                    $apache_resources = $::nut::params::apache_resources,
  Stdlib::Absolutepath    $conf_dir         = $::nut::params::cgi_conf_dir,
  String                  $group            = $::nut::params::group,
  Enum['apache', 'httpd'] $http_server      = $::nut::params::http_server,
  Boolean                 $manage_vhost     = $::nut::params::manage_vhost,
  String                  $package_name     = $::nut::params::cgi_package_name,
  String                  $user             = $::nut::params::user,
) inherits nut::params {

  contain nut::cgi::install
  contain nut::cgi::config

  Class['nut::cgi::install'] -> Class['nut::cgi::config']
}