-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add capability to manage /etc/systemd/*.conf files #232
Comments
I think anything generic would just be a trivial wrapper around puppetlabs-inifile so may as well just use inifile type. |
On 2021-10-06 08:13:31, Steve Traylen wrote:
I think anything generic would just be a trivial wrapper around
puppetlabs-inifile so may as well just use inifile type.
Agreed, I've used the `puppetlabs-inifile` for the configuration myself,
for example:
```
ini_setting { 'ManageForeignRoutes':
ensure => present,
path => '/etc/systemd/networkd.conf',
section => 'Network',
setting => 'ManageForeignRoutes',
value => 'false'
}
```
The benefit of having things in this module is the strong validation.
Precisely.
|
Many of those configs can already be managed with this module. See https://github.com/voxpupuli/puppet-systemd/tree/master/manifests where we have |
On 2021-10-06 12:10:39, Kenyon Ralph wrote:
Many of those configs can already be managed with this module. See
https://github.com/voxpupuli/puppet-systemd/tree/master/manifests
where we have `journald.pp`, `logind.pp`, `networkd.pp`, `system.pp`,
and `timesyncd.pp`.
If you look at
https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/networkd.pp
you will find that the `/etc/systemd/networkd.conf` is not managed by
that file.
|
Sounds like that would be something nice to add with a pull request if you need that functionality. I use this module to configure my systems to use |
I think the benefit of this module is to allow hiera to manage most of the data change, which when looking at the mentioned services is the creation of ".d" directories, file creation with content and reload of service. This seems more than just a simple wrapper of the "puppetlabs-inifile" library. I'm sure that with a little bit of tweeting, we can get systemd::dropin to do the heavy lifting. Is anyone working on a PR for this? If not, I might look to raise one? |
@ptiggerdine Can't tell if someone is working on this, but I believe it would be valuable if someone did, and so far no one raised their voice. Therefore, please do. :) |
Since ticket was written , logind.conf , crashcore.conf journald.conf and others are all supported. Doing each file one file at a time makes sense. Configuring Re the networkd.conf for sure open a particular issue. Can we close this. |
Thanks, I think this could be closed. |
modulesync 5.1.0
I really don't understand the logic and decision here to "not" control /etc/systemd/*.conf files. Then someone goes and does something like this? https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/system.pp#L8 Technically, I can define any setting in system.conf with this very class, however the was implemented to only consider accounting settings and forces them. So something like this: hiera.yaml
results:
Why not make make make control of these files configurable?
I would be happy to submit a PR but I don't want to put in the effort if the community does not agree with this module taking control of these files. Thoughts? |
@derekmpage there is no such single thing as "
That was added in 2018 with #65. This issue was created in 2021.
Being able to manage more of system.conf, and systemd in general, sounds like a good enhancement to me. |
While this module does give you the capability to configure some systemd configurations (eg.
/etc/systemd/logind.conf
), it would be nice if it was able to configure the other configurables available (eg./etc/systemd/networkd.conf
).I don't know if a generic mechanism would be the way to approach that, or to have specific entry points into the different config files and track them over time, adding them as they appear in systemd versions.
At the moment I see on my system
journald.conf
,logind.conf
,networkd.conf
,pstore.conf
,resolved.conf
,sleep.conf
,system.conf
,timesyncd.conf
, anduser.conf
.The text was updated successfully, but these errors were encountered: