Skip to content

Conversation

nuclearsandwich
Copy link
Collaborator

I did this completely blind and haven't yet tested it at all.

Repo recipe run is showing:
* NoMethodError: undefined method `notifies' for cookbook: ros_buildfarm"

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
@Crola1702 Crola1702 force-pushed the nuclearsandwich/repo-host-sshd-restart branch from edb88fd to c587ffd Compare April 18, 2025 16:29
@Crola1702
Copy link
Contributor

Crola1702 commented Apr 18, 2025

Just added c587ffd. notifies was outside a resource block.

I tested it and this change shows at the end of the chef run:

  * service[ssh] action restart
    - restart service service[ssh]

This was the intent and operating in the context of a file resource will
mean that sshd only restarts when one of these files actually changes.
Which is preferred rather than notifying unconditionally as it would
with the ruby_block resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants