Skip to content

Commit

Permalink
Merge pull request #487 from deric/docs
Browse files Browse the repository at this point in the history
Update readme to reflect changes in #485
  • Loading branch information
kenyon committed Aug 28, 2024
2 parents 2b232ef + 8b26146 commit ff0c85e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,17 @@ class { 'systemd':
}
```

With enabled `udev_reload` modified rules would be applied immediately by executing `udevadm control --reload-rules`.

```yaml
systemd::udev_reload: true
systemd::manage_udevd: true
systemd::udev_rules:
50-md.rules:
rules:
- 'SUBSYSTEM=="block", KERNEL=="md*", ACTION=="change", TEST=="md/stripe_cache_size", ATTR{md/stripe_cache_size}="4096"'
```

### udev::rules configuration

Custom udev rules can be defined for specific events.
Expand All @@ -453,7 +464,7 @@ systemd::udev::rule:
notify: "Service[systemd-udevd]"
rules:
- 'ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"'
- 'ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw2 %N"',
- 'ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw2 %N"'
```

### oomd configuration
Expand Down

0 comments on commit ff0c85e

Please sign in to comment.