Skip to content

Instantly share code, notes, and snippets.

@scarolan
Created October 16, 2014 14:55
Show Gist options
  • Save scarolan/b98301c9ed486c6dafdc to your computer and use it in GitHub Desktop.
Save scarolan/b98301c9ed486c6dafdc to your computer and use it in GitHub Desktop.
I think a basic example is defining a user and then trying to access ohai facts about the user. Even if you use run_action to invoke it right away the ohai data is not populated. You can tell ohai to rebuild it’s data but it’s all rather awkward. In puppet or in general I would imagine you have different stages / ordering that allows you to create users before you try to use data about them. Then also the fact that dependencies stop working if you run an action at compile time doesn’t seem very ideal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment