Skip to content

Support creation of sysusers.d entries#585

Merged
traylenator merged 2 commits intovoxpupuli:masterfrom
traylenator:sysusers
Nov 11, 2025
Merged

Support creation of sysusers.d entries#585
traylenator merged 2 commits intovoxpupuli:masterfrom
traylenator:sysusers

Conversation

@traylenator
Copy link
Contributor

@traylenator traylenator commented Nov 9, 2025

Pull Request (PR) description

Example:

systemd::sysuser { 'plato.conf':
  content => 'u plato - "Be kind"',
}

will do the following

  • Create the directory /etc/sysusers.d
  • Validate the new file systemd-sysuser --dry-run so long as the systemd version is more than 250.
  • Create thefile /etc/sysusers.d/plato.conf
  • Run systemd-sysusers.

Reference:

This Pull Request (PR) fixes the following issues

@traylenator traylenator added the enhancement New feature or request label Nov 9, 2025
Example:

```puppet
systemd::sysuser{ 'plato.conf':
  content => 'u plato - "Be kind"',
}
```

will do the following

* Create the directory `/etc/sysusers.d`
* Create thefile `/etc/sysusers.d/plato.conf`
* Run `systemd-sysusers`.

Reference:

* https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
* https://www.freedesktop.org/software/systemd/man/latest/systemd-sysusers.html
@traylenator traylenator marked this pull request as ready for review November 9, 2025 18:42
@traylenator traylenator merged commit f1a4aba into voxpupuli:master Nov 11, 2025
21 checks passed
@traylenator traylenator deleted the sysusers branch November 11, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for managing sysusers.d files

2 participants