Git Product home page Git Product logo

Comments (7)

clintoncwolfe avatar clintoncwolfe commented on July 17, 2024

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.

from sudo.

scottymarshall avatar scottymarshall commented on July 17, 2024

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

from sudo.

chrissnell avatar chrissnell commented on July 17, 2024

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.

   cookbook_file "/etc/sudoers.d/myuser" do
     source "myuser"
     mode '0440'
     owner 'root'
     group 'root'
     action :create
   end

from sudo.

luisbosque avatar luisbosque commented on July 17, 2024

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:
6565c80

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:
luisbosque@9e2111d

from sudo.

chrissnell avatar chrissnell commented on July 17, 2024

@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.

from sudo.

luisbosque avatar luisbosque commented on July 17, 2024

Ok, as I commented on the thread I was just covering the case where you had
a older version and the problem was node['fqdn'] in case it helped you.
That was actually my case.

Good luck with that

2015-01-15 18:10 GMT+01:00 Christopher Snell [email protected]:

@lbosque https://github.com/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.


Reply to this email directly or view it on GitHub
#50 (comment)
.

from sudo.

tas50 avatar tas50 commented on July 17, 2024

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.

from sudo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.