Jira (PUP-7995) Puppet can't mask systemd's static unit

0 views
Skip to first unread message

Branan Riley (JIRA)

unread,
Sep 26, 2017, 1:20:03 PM9/26/17
to puppe...@googlegroups.com
Branan Riley moved an issue
 
Puppet / Bug PUP-7995
Puppet can't mask systemd's static unit
Change By: Branan Riley
Affects Version/s: puppet-agent 1.10.6
Affects Version/s: PUP 4.10.6
Key: PA PUP - 1403 7995
Project: Puppet  Agent
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Branan Riley (JIRA)

unread,
Sep 26, 2017, 1:50:04 PM9/26/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Sprint: Platform OS  Triage  Grooming

Branan Riley (JIRA)

unread,
Sep 26, 2017, 1:58:04 PM9/26/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Sprint: Platform OS Grooming

Branan Riley (JIRA)

unread,
May 14, 2018, 3:40:02 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: linux service systemd type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 14, 2018, 3:40:02 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: linux service systemd triaged type_and_provider

Josh Cooper (Jira)

unread,
Jun 9, 2021, 10:08:02 PM6/9/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
I'm trying to stop rpc-svcgssd.service on some servers.

This service is marked as static:
{noformat}
systemctl status  rpc-svcgssd.service
rpc-svcgssd.service - RPC security service for NFS server
  Loaded: loaded (/usr/lib/systemd/system/rpc-svcgssd.service; static; vendor preset: disabled)
  Active: inactive (dead)
{noformat}
And that prevent it to be masked;
{noformat}
puppet resource service rpc-svcgssd.service enable=mask
service { 'rpc-svcgssd.service':
enable => 'true',
}
{noformat}

And I I launch with --debug:
{noformat}
Debug: Executing: '/usr/bin/systemctl is-enabled rpc-svcgssd.service'
Debug: Unable to enable or disable static service rpc-svcgssd.service
{noformat}
Indeed, that's why I want to mask it instead of simply disable it.

systemctl says:
{noformat}
/usr/bin/systemctl is-enabled rpc-svcgssd.service
static
{noformat}

But worst;
If I put that in my modules:
{code:puppet}
   service{'rpc-svcgssd':
       enable => mask,
   }
{code}

It don't fails, so I'm even not aware that masking fails.

The easy work around is to add a symlink to /dev/null, that's how mask works.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages