Resource Type: esx_syslog

Defined in:
lib/puppet/type/esx_syslog.rb
Providers:
esx_syslog

Overview

Manage vCenter esx hosts syslog config.

Properties

  • default_rotate (defaults to: 8)

    The maximum number of log files to keep locally on the ESXi host in the configured logDir. Does not affect remote syslog server retention. Defaults to 8.

    Supported values:
    • /\d+/
  • default_size (defaults to: 1024)

    The maximum size, in kilobytes, of each local log file before it is rotated. Does not affect remote syslog server retention. Defaults to 1024 KB.

    Supported values:
    • /\d+/
  • log_dir

    A location on a local or remote datastore and path where logs are saved to. Has the format [DatastoreName] DirectoryName/Filename, which maps to /vmfs/volumes/DatastoreName/DirectoryName/Filename. The [DatastoreName] is case sensitive and if the specified DirectoryName does not exist, it will be created. If the datastore path field is blank, the logs are only placed in their default location. If /scratch is defined, the default is []/scratch/log.

  • log_dir_unique (defaults to: false)

    A boolean option which controls whether a host-specific directory is created within the configured logDir. The directory name is the hostname of the ESXi host. A unique directory is useful if the same shared directory is used by multiple ESXi hosts. Defaults to false.

    Supported values:
    • true
    • false
  • log_host

    A remote server where logs are sent using the syslog protocol. If the logHost field is blank, no logs are forwarded. Include the protocol and port, similar to tcp://hostname:514

Parameters

  • host

    ESX hostname or ip address.

  • provider

    The specific backend to use for this ‘esx_syslog` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.