week1 – Overview of Chef.pdf
week1 – Overview of Chef.pdf week1 – Overview of Chef.pdf
From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.
With Motoshare, every parked vehicle finds a purpose.
Owners earn. Renters ride.
🚀 Everyone wins.
week1 – Overview of Chef.pdf week1 – Overview of Chef.pdf
Chef Server All logs generated by the Chef server can be found in /var/log/opscode. Each service enabled on the system also has a sub-directory in which service-specific logs are located, typically found in /var/log/opscode/service_name. The Chef server has built-in support for easily tailing the logs that are generated. To view all the logs being generated … Read more
Chef notifies and subscribes explained with examples A notification is a property on a resource that listens to other resources in the resource collection and then takes actions based on the notification type (notifies or subscribes). Timers A timer specifies the point during the chef-client run at which a notification is run. The … Read more
What is the significance of the default directory under chef cookbook /templates? A cookbook is frequently designed to work across many platforms and is often required to distribute a specific template to a specific platform. This is a New in Chef Client 12.0. A cookbook can be designed to support the distribution of templates … Read more
What is Role? A role is a way to define certain patterns and processes that exist across nodes in an organization as belonging to a single job function. Each role consists of zero (or more) attributes and a run-list. Each node can have zero (or more) roles assigned to it. When a role is run … Read more
Problems Area – Our infrastructure has many cookbooks that aim to be reusable, primarily through encapsulating behaviour in LWRPs. This led to an explosion of LWRPs and sometimes the documentation didn’t keep up or did just not exist. Solution 1: Follow Best Practices This command will create a README.rdoc by default, and I prefer Markdown, … Read more
What is Metadata in chef? In order to understand cookbooks without evaluating them every files, we generate metadata about cookbooks What is metadata.rb? Before unerstanding about metadata.json, we need to understand about metadata.rb. Every cookbook requires a small amount of metadata. Metadata is stored in a file called metadata.rb that lives at the top of … Read more