Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request for socket unit files #348

Closed
mplaats opened this issue Jun 14, 2023 · 1 comment · Fixed by #350
Closed

Feature Request for socket unit files #348

mplaats opened this issue Jun 14, 2023 · 1 comment · Fixed by #350

Comments

@mplaats
Copy link

mplaats commented Jun 14, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.x
  • Ruby: 3.x
  • Distribution: debian
  • Module version: 5.0.0

Im missing a possibility to create socket unit files in the systemd module. As an example:

/etc/systemd/system/pdnsadmin.socket

[Unit]
Description=PowerDNS-Admin socket

[Socket]
ListenStream=/run/pdnsadmin/socket

[Install]
WantedBy=sockets.target

Would be very helpfull if the module would be extended with this.

@ekohl
Copy link
Member

ekohl commented Jun 14, 2023

Looks like systemd::manage_unit doesn't have a socket_entry property. This can be considered a missing feature.

You should be able to provide it manually though:

systemd::unit_file { 'pdnsadmin.socket':
  content => 'TheActualContent',
  enable  => true,
  active  => true,
}

@ekohl ekohl added the enhancement New feature or request label Jun 14, 2023
@kenyon kenyon changed the title Future Request for socket unit files Feature Request for socket unit files Jun 14, 2023
@traylenator traylenator removed the enhancement New feature or request label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants