Jira (PUP-11842) Add support for user services

5 views
Skip to first unread message

Frank (Jira)

unread,
Apr 21, 2023, 1:15:02 AM4/21/23
to puppe...@googlegroups.com
Frank created an issue
 
Puppet / Improvement PUP-11842
Add support for user services
Issue Type: Improvement Improvement
Affects Versions: PUP 7.23.0
Assignee: Unassigned
Components: Types and Providers
Created: 2023/04/20 10:14 PM
Priority: Normal Normal
Reporter: Frank

The systemd provider of puppet for services can only handle system services (/etc/systemd/system). But in container environment's like podman, the container's are running very often as none root. So the service's must controlled for the user.

Example for user foo:

/<User foo Home>/.config/systemd/user/<service>.service

or for an timer

/<User foo Home>/.config/systemd/user/<timer>.timer

The systemd command will be:

sudo machinectl shell <user>@ /usr/bin/systemctl --user status|enable|etc. <service>|<timer>|<etc.>

instant of  /usr/bin/systemctl status|enable|etc. <service>|<timer>|<etc.>

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Michael Hashizume (Jira)

unread,
Apr 25, 2023, 4:12:01 PM4/25/23
to puppe...@googlegroups.com
Michael Hashizume updated an issue
Change By: Michael Hashizume
Team: Comply EMEA Phoenix

Aria Li (Jira)

unread,
May 23, 2023, 4:26:02 PM5/23/23
to puppe...@googlegroups.com
Aria Li assigned an issue to David Piekny
Change By: Aria Li
Assignee: David Piekny
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages