Giter Site home page Giter Site logo

missing node attributes about ohai HOT 1 CLOSED

chef-boneyard avatar chef-boneyard commented on August 24, 2024
missing node attributes

from ohai.

Comments (1)

tas50 avatar tas50 commented on August 24, 2024

I believe what you're running into is a compile time vs. converge time problem in your recipe. Chef runs in two different phases. The first is a compile time phase where Ruby is evaluated. The 2nd phase involves actually converging each of the resources. The puts statements are actually running before the plugin is installed since the puts statements happen in the compile phase. You can work around some of this by adding compile_time true to the ohai plugin, but also testing with puts is going to be problematic since it's running during compile time. For troubleshooting you might have a better time adding chef log resources to the recipe as those will execute during the converge.

A nice blog explaining the Chef run process:
https://coderanger.net/two-pass/

The log resource:
https://docs.chef.io/resource_log.html

from ohai.

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.