Jira (FACT-852) Add support for systemd and systemd_version facts

1 view
Skip to first unread message

Yanis Guenane (JIRA)

unread,
Mar 12, 2015, 5:17:26 AM3/12/15
to puppe...@googlegroups.com
Yanis Guenane created an issue
 
Facter / New Feature FACT-852
Add support for systemd and systemd_version facts
Issue Type: New Feature New Feature
Assignee: Eric Sorenson
Created: 2015/03/12 2:16 AM
Priority: Normal Normal
Reporter: Yanis Guenane

In Puppet some actions can be taken or not based on if the system is running systemd or not.

Initially I thought that basing those criteria out of $::osfamily and $::operatingsystemmajrelease would be enough. But with Debian Jessie for example, user can decide whether or not to enable it.

This can make the $::osfamily and $::operatingsystemmajrelease not discriminating enough.

Hence the RFE for a systemd and systemd_version fact

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Chris Tessmer (JIRA)

unread,
Mar 12, 2015, 10:05:42 AM3/12/15
to puppe...@googlegroups.com
Chris Tessmer commented on New Feature FACT-852
 
Re: Add support for systemd and systemd_version facts

it would be more flexible to provide the identity of the init system, instead of specifically testing for systemd.

I would rather see something like $::osinitsystem, which would return a String like 'systemd', 'sysv-init', or 'upstart'.

Melissa Stone (JIRA)

unread,
Mar 12, 2015, 12:41:39 PM3/12/15
to puppe...@googlegroups.com
Melissa Stone updated an issue
 
Change By: Melissa Stone
Component/s: Community

Julien Pivotto (JIRA)

unread,
Nov 9, 2015, 5:34:05 AM11/9/15
to puppe...@googlegroups.com
Julien Pivotto commented on New Feature FACT-852
 
Re: Add support for systemd and systemd_version facts

I do think that three facts would be good:

  • systemd_running (systemctl is-system-running)
  • sytemd version (string)
  • systemd flags (structured fact/list: +PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD -IDN
    ) (systemctl --version)
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Branan Riley (JIRA)

unread,
Mar 22, 2017, 1:13:03 PM3/22/17
to puppe...@googlegroups.com
Branan Riley updated an issue
 
Change By: Branan Riley
Component/s: Community
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Branan Riley (JIRA)

unread,
Mar 22, 2017, 1:14:04 PM3/22/17
to puppe...@googlegroups.com
Branan Riley commented on New Feature FACT-852
 
Re: Add support for systemd and systemd_version facts

Moving this back to `open` as it's still a reasonable feature request even though we didn't land the code in Facter 2.

Maggie Dreyer (JIRA)

unread,
May 17, 2017, 1:05:04 PM5/17/17
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
 
Change By: Maggie Dreyer
Labels: help_wanted triaged

Geoff Nichols (JIRA)

unread,
Jul 25, 2017, 5:16:02 PM7/25/17
to puppe...@googlegroups.com

Emerson Prado (JIRA)

unread,
Oct 5, 2017, 4:38:02 PM10/5/17
to puppe...@googlegroups.com
Emerson Prado commented on New Feature FACT-852
 
Re: Add support for systemd and systemd_version facts

I have also being bitten by this, and ended um writing a custom fact for a module I contribute to. This fact detects the actual init system in use, instead of trying to guess by distro and version or just check which systems are installed and picking the most probably used. It is only 100% reliable in RedHat and Debian families because, in some situations, we have to deal with the package manager directly - and I am only familiar with rpm and dpkg.

I'd be happy to have this code moved to Facter and improved as needed. What do you think?

Branan Riley (JIRA)

unread,
Mar 21, 2018, 5:54:04 PM3/21/18
to puppe...@googlegroups.com
Branan Riley updated an issue
 
Change By: Branan Riley
Labels: help_wanted triaged
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:44:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: help_wanted new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages