Skip to content

notify Service['sshd_service'] when file resource in config_file_server class changes #407

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

Closed
absld opened this issue May 30, 2023 · 0 comments · Fixed by #419
Closed

notify Service['sshd_service'] when file resource in config_file_server class changes #407

absld opened this issue May 30, 2023 · 0 comments · Fixed by #419

Comments

@absld
Copy link

absld commented May 30, 2023

Hi,

in class ssh::server, there is a subscribe from service {'sshd_service': } resource declaration to File['sshd_config'] resource, which causes the sshd service to be restarted after changes in sshd_config file.

Instead of defining our sshd settings within sshd_config file, we use the Include mechanism in combination with defining our custom sshd settings via ssh::server::config_files hash. This results in the configuration parameters get written into /etc/ssh/sshd_config.d/somefile. So far so good.

Unfortunately, there is no notify in the file resource within ssh::config_file_server class, which is declared in ssh::server class for each $config_files hash key. So, if configuration parameters change in /etc/ssh/sshd_config.d/somefile, the sshd service is not refreshed or restarted

treydock added a commit to treydock/puppet-module-ssh that referenced this issue Nov 15, 2023
treydock added a commit to treydock/puppet-module-ssh that referenced this issue Nov 15, 2023
treydock added a commit to treydock/puppet-module-ssh that referenced this issue Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant