1.

How Do You Apply An Updated Cookbook To Your Node?

Answer»

We mentioned two ways.

Run knife Ssh from your workstation.

SSH directly into your server and run CHEF-client.

You can also run chef-client as a daemon, or service, to check in with the Chef server on a regular interval, say every 15 or 30 minutes.

UPDATE your Apache cookbook to display your node’s host NAME, platform, total installed memory, and number of CPUs in addition to its FQDN on the home page.

Update index.html.erb like this.

<html&GT;

<body>

<h1>hello from <%= node [‘fqdn’] %>< /h1>

<pre>

<%= node [‘hostname’] %>

<%= node [‘platform’] %> – <%= node[‘platform_version’] %>

<%= node [‘memory’][‘total’] %> RAM

<%= node [‘cpu’][‘total’] %> CPUs

</pre>

</body>

</html>

Then upload your cookbook and run it on your node.

We mentioned two ways.

Run knife Ssh from your workstation.

SSH directly into your server and run chef-client.

You can also run chef-client as a daemon, or service, to check in with the Chef server on a regular interval, say every 15 or 30 minutes.

Update your Apache cookbook to display your node’s host name, platform, total installed memory, and number of CPUs in addition to its FQDN on the home page.

Update index.html.erb like this.

<html>

<body>

<h1>hello from <%= node [‘fqdn’] %>< /h1>

<pre>

<%= node [‘hostname’] %>

<%= node [‘platform’] %> – <%= node[‘platform_version’] %>

<%= node [‘memory’][‘total’] %> RAM

<%= node [‘cpu’][‘total’] %> CPUs

</pre>

</body>

</html>

Then upload your cookbook and run it on your node.



Discussion

No Comment Found