Please help me with the recipe to get the name and version of the cookbook while the chef-client is running. I want to store values โโin variables and use as part of my recipe.
I find it difficult to get the version and name of the cookbook from the recipe while the chef is working on node.
Thanks in advance.
You can access the current cookbook name using a variable cookbook_name.
cookbook_name
A version of this cookbook (and other cookbooks) can be obtained through run_context:
run_context
run_context.cookbook_collection[cookbook_name].version
Source: https://habr.com/ru/post/1534794/More articles:chrome memory processing - linuxWhy don't I have a Qt Gui Application? - user-interfaceHow to get one line at a time from an eloquent query in laravel? - sqlreporting in Jenkins - junitManually signing email with DKIM in Python - pythonInfrastructure and internationalization of web applications (s) using only the JSON API - javascriptAdd new role to Chef.json file with sed - pythonUsing RoboSpice in BroadcastReceiver - androidAdd new property to MVC ModelMetadata - asp.net-mvcDifference between iconify () and recall () in Python Tkinter - pythonAll Articles