Defined Type: dbus::session
- Defined in:
- manifests/session.pp
Overview
Manage per-application session bus configuration.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/session.pp', line 13
define dbus::session (
String $content,
String $application = $title,
) {
include dbus
$validate_cmd = $dbus::validate ? {
true => '/usr/bin/xmllint --noout --valid %',
default => undef,
}
file { "${dbus::session_dir}/${application}.conf":
ensure => file,
owner => 0,
group => 0,
mode => '0644',
content => $content,
validate_cmd => $validate_cmd,
notify => Class['dbus::reload'],
}
}
|