Jira (PUP-11051) Systemd not recognized as service_provider on Ubuntu 17 +

5 views
Skip to first unread message

Jack Casey (Jira)

unread,
Apr 30, 2021, 12:53:04 PM4/30/21
to puppe...@googlegroups.com
Jack Casey created an issue
 
Puppet / Bug PUP-11051
Systemd not recognized as service_provider on Ubuntu 17 +
Issue Type: Bug Bug
Affects Versions: PUP 4.10.12
Assignee: Jack Casey
Created: 2021/04/30 9:52 AM
Priority: Low Low
Reporter: Jack Casey

Puppet Version: 4.10.12
Puppet Server Version: 2.8.1
OS Name/Version: Ubuntu 20.04 (Focal Fossa)

The service_provider fact is resolved as `debian` on Ubuntu 20 and Puppet 4.10.x. This should be resolved as `systemd`. In more recent versions of Puppet this is resolved with the `notdefaultfor` function future-proofing. However for Puppet 4.10.x the versions need to be explicitly specified.

Desired Behavior: 

**The service_provider should be recognized as `systemd`

Actual Behavior:

The service_provider is recognized as `debian`

Examples:

```

$ puppet --version
4.10.12

$ facter -p | grep service_provider
service_provider => systemd

$ hostnamectl | grep "Operating System"
Operating System: Ubuntu 20.04.2 LTS

```

 

A PR to fix this issue is available here: 

https://github.com/puppetlabs/puppet/pull/8591

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Jack Casey (Jira)

unread,
Apr 30, 2021, 12:55:03 PM4/30/21
to puppe...@googlegroups.com
Jack Casey updated an issue
Change By: Jack Casey
*Puppet Version: 4.10.12*
*Puppet Server Version: 2.8.1*
*OS Name/Version: Ubuntu 20.04 (Focal Fossa)*


The service_provider fact is resolved as `debian` on Ubuntu 20 and Puppet 4.10.x. This should be resolved as
` systemd ` . In more recent versions of Puppet this is resolved with the ` notdefaultfor ` function future-proofing. However for Puppet 4.10.x the versions need to be explicitly specified.

*Desired Behavior:* 

** The service_provider should be recognized as ` systemd `

*Actual Behavior:*


The service_provider is recognized as
` debian `

*Examples:*

```

$ puppet --version
4.10.12

$ facter -p | grep service_provider
service_provider => systemd

$ hostnamectl | grep "Operating System"
Operating System: Ubuntu 20.04.2 LTS

```

 

A PR to fix this issue is available here: 

[ https://github.com/puppetlabs/puppet/pull/8591 ]

Jack Casey (Jira)

unread,
Apr 30, 2021, 1:09:03 PM4/30/21
to puppe...@googlegroups.com
Jack Casey updated an issue
*Puppet Version: 4.10.12*
*Puppet Server Version: 2.8.1*
*OS Name/Version: Ubuntu 20.04 (Focal Fossa)*

The service_provider fact is resolved as `debian` on Ubuntu 20 and Puppet 4.10.x. This should be resolved as systemd. In more recent versions of Puppet this is resolved with the notdefaultfor function future-proofing. However for Puppet 4.10.x the versions need to be explicitly specified.

*Desired Behavior:* 

The service_provider should be recognized as systemd

*Actual Behavior:*

The service_provider is recognized as debian

*Examples:*

$ puppet --version
4.10.12

$ facter -p | grep service_provider
service_provider => systemd

$ hostnamectl | grep "Operating System"
Operating System: Ubuntu 20.04.2 LTS

 

A PR to fix this issue is available here: 

Reply all
Reply to author
Forward
0 new messages