Puppet Class: dbus

Defined in:
manifests/init.pp

Overview

Installs and manages D-Bus.

Examples:

Declaring the class

include dbus

Parameters:

  • conf_dir (Stdlib::Absolutepath)

    Top-level configuration directory, usually /etc/dbus-1.

  • local_session_conf (Stdlib::Absolutepath)

    The configuration file used to override the default session bus configuration, usually /etc/dbus-1/session-local.conf.

  • local_system_conf (Stdlib::Absolutepath)

    The configuration file used to override the default system bus configuration, usually /etc/dbus-1/system-local.conf.

  • package_name (String)

    The name of the package.

  • purge_session_dir (Boolean)

    Whether to purge any unmanaged session bus configuration files.

  • purge_system_dir (Boolean)

    Whether to purge any unmanaged system bus configuration files.

  • service_name (String)

    The name of the service.

  • service_restart (String)

    The command used to get dbus-daemon to reload its configuration, which is usually dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig. On platforms that use systemd, this is what the unit does anyway and so will rely on that where possible.

  • session_conf (Stdlib::Absolutepath)

    The configuration file containing the default session bus configuration, usually /etc/dbus-1/session.conf.

  • session_dir (Stdlib::Absolutepath)

    The directory used by applications to add additional session bus configuration, usually /etc/dbus-1/session.d.

  • system_conf (Stdlib::Absolutepath)

    The configuration file containing the default system bus configuration, usually /etc/dbus-1/system.conf.

  • system_dir (Stdlib::Absolutepath)

    The directory used by applications to add additional system bus configuration, usually /etc/dbus-1/system.d.

  • validate (Boolean)

    Whether to validate the XML configuration files prior to installing them.

See Also:



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'manifests/init.pp', line 35

class dbus (
  Stdlib::Absolutepath $conf_dir,
  Stdlib::Absolutepath $local_session_conf,
  Stdlib::Absolutepath $local_system_conf,
  String               $package_name,
  Boolean              $purge_session_dir,
  Boolean              $purge_system_dir,
  String               $service_name,
  String               $service_restart,
  Stdlib::Absolutepath $session_conf,
  Stdlib::Absolutepath $session_dir,
  Stdlib::Absolutepath $system_conf,
  Stdlib::Absolutepath $system_dir,
  Boolean              $validate,
) {

  contain dbus::install
  contain dbus::config
  contain dbus::service
  contain dbus::reload

  Class['dbus::install'] -> Class['dbus::service'] -> Class['dbus::reload']
  Class['dbus::install'] -> Class['dbus::config'] ~> Class['dbus::reload']
}