-
Notifications
You must be signed in to change notification settings - Fork 163
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
sudo resource failing under 11.16.2 #50
Comments
Hrm, when using chef 11.12.8, and the sudo LWRP with a template/variables mode, I get a similar error - the Erubis evaluation doesn't see the variables that were set. |
I just ran into this problem upgrading from chef 11.4.0 to 11.16.4 and fixed this by upgrading from the sudo cookbook version 2.0.4 to 2.7.1 |
We finally gave up on trying to make the sudo resource work correctly. Now we just use the cookbook_file resource to drop a file in sudoers.d. It's a crappy work-around. Sure with someone could fix this cookbook.
|
I've been struggling with this too. Things changed in Chef 11.6 so if you are having problems with a version previous to this commit: You have two options: either you update your code with the mentioned commit or if you want to keep node['fqdn'] you can apply a patch like this: |
@lbosque You reference a commit dating to 2013. I actually have that commit applied already and I'm still having problems (well...was having problems...I started using cookbook_file as detailed above). While node['fqdn'] may have caused a problem, I'm not sure if it's the cause of the problem I'm reporting. |
Ok, as I commented on the thread I was just covering the case where you had Good luck with that 2015-01-15 18:10 GMT+01:00 Christopher Snell notifications@github.com:
|
This should be resolved in the latest cookbook as the fqdn logic is removed. Feel free to open it up if it's still a problem. |
The text was updated successfully, but these errors were encountered: