Defined Type: udev::rule

Defined in:
modules/udev/manifests/rule.pp

Overview

Parameters:

  • content (Any) (defaults to: undef)
  • source (Any) (defaults to: undef)
  • ensure (Any) (defaults to: 'present')
  • priority (Any) (defaults to: 40)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/udev/manifests/rule.pp', line 16

define udev::rule (
    $content = undef,
    $source = undef,
    $ensure = 'present',
    $priority = 40,
) {
    validate_ensure($ensure)

    include udev

    file { "/etc/udev/rules.d/${priority}-${title}.rules":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => $content,
        source  => $source,
        notify  => Exec['udev_reload'],
    }
}