Skip to content
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

Kernel_parameter subscribe executes on every run #41

Closed
ztnewman opened this issue Nov 13, 2018 · 1 comment
Closed

Kernel_parameter subscribe executes on every run #41

ztnewman opened this issue Nov 13, 2018 · 1 comment

Comments

@ztnewman
Copy link

I am currently using augeasproviders_grub version 3.0.1 with Puppet master version 2018.1.2 and agent version 5.5.3.

I have a notify resource that subscribes to a kernel_parameter resource as below:

kernel_parameter { 'audit':
  value  => '1',
}

notify { 'The audit kernel parameter has changed, please reboot':
  subscribe => Kernel_parameter['audit']
}

The notify occurs every time that puppet runs instead of whenever there is a change to the kernel_parameter. Is that intentional?

@raphink
Copy link
Member

raphink commented Nov 19, 2018

I don't think this has anything to do with the kernel_parameter resource type actually. As far as I know, notify resources are executed every time and do not support subscribing to other resources.

You might want to use an exec resource with refreshonly set to true instead.

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

No branches or pull requests

2 participants