Defined Type: udev::rule

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

Overview

Parameters:

  • content (Optional[String]) (defaults to: undef)
  • source (Optional[String]) (defaults to: undef)
  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • priority (Integer) (defaults to: 40)


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

define udev::rule (
    Optional[String] $content = undef,
    Optional[String] $source = undef,
    Wmflib::Ensure   $ensure = 'present',
    Integer          $priority = 40,
) {
    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'],
    }
}