Created by: asteven
While experimenting with cdist-ng I implemented target host as always being a URI. Then used the scheme in the URI to select the…
Created by: lubo
@darko-poljak @telmich Your thoughts would be highly appreciated.
Created by: telmich
I like @asteven 's URL based way. Porting it to cdist from cdist-ng is a good idea.
Created by: darko-poljak
@adam-dej Are you starting to port this to cdist?
Created by: darko-poljak
@adam-dej
My current workaround is to use gencode-local, HOST is IP of the SNMP device I want to configure, and I prevent cdist from attempting to connect over SSH…
Created by: darko-poljak
This is due to config parser interpolation where all the '%' interpolations are…
Created by: darko-poljak
I think it should be detected if system is using systemd. Perhaps also if systemd version supports /etc/sysctl.conf.
Created by: asteven
Ubuntu and Centos have symlinks from /etc/sysctl.d/99-sysctl.conf -> ../sysctl.conf
Not sure if this is distro specific or comes from older version of systemd.
Safer impl…
Created by: darko-poljak
@lubo Do you have time or wish to re-implement it?
Created by: lubo
@asteven Seems like it's a distro-specific thing. By default, there's no /etc/sysctl.conf on Arch Linux and CoreOS. I don't agree with the implementation, though. If…
Created by: darko-poljak
@lubo If /etc/sysctl.d/99-sysct.conf is used then what with no-systemd systems?
Created by: lubo
Perhaps, do what everybody else does: create symlink /etc/sysctl.d/99-sysctl.conf -> /etc/sysctl.conf. Or, consider again using /etc/sysctl.d/99-sysctl.conf when systemd is…
Created by: asteven
We can not safely muck with the symlink /etc/sysctl.d/99-sysctl.conf -> /etc/sysctl.conf as that's owned by some rpm or deb or whatever.
I will not accept a impl that…
Created by: lubo
I agree that playing with the symlink is not a good idea, but what's wrong with detecting systemd? We can use the existing init explorer and we don't even have to bother with…
Created by: darko-poljak
@asteven @lubo It seems that it would be safest and easiest to implement it as you have suggested above. Detect if /etc/sysctl.d dir exists. If it does then use…
Created by: darko-poljak
@asteven One more way. Always use /etc/sysctl.conf. In code-remote check if /etc/sysctl.d exists. If it does then check if symlink to /etc/sysctl.conf exists under it. If…
Created by: asteven
@darko-poljak I think we should not create any symlinks. Also I can not imagine anybody switching init system without a re-install.
@lubo I think just detecting systemd and…