0% found this document useful (0 votes)
52 views7 pages

Chef Cookbook Assignment

The document outlines 9 exercises to create Chef cookbooks for configuring various server stacks and services. The exercises include creating cookbooks to: install a web server stack; install an application server stack; install a database server stack with clustering; install an application server stack with clustering on two nodes; set/reset hostnames and FQDNs on Linux/CentOS servers; set/reset hostnames on Windows servers; configure information on a Network Information Service (NIS); install NIS clients on Linux servers.

Uploaded by

freshface stars
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
52 views7 pages

Chef Cookbook Assignment

The document outlines 9 exercises to create Chef cookbooks for configuring various server stacks and services. The exercises include creating cookbooks to: install a web server stack; install an application server stack; install a database server stack with clustering; install an application server stack with clustering on two nodes; set/reset hostnames and FQDNs on Linux/CentOS servers; set/reset hostnames on Windows servers; configure information on a Network Information Service (NIS); install NIS clients on Linux servers.

Uploaded by

freshface stars
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

Exercise 1:

Create a Cookbook to install and configure Web Server Stack.

Details:

By running this cookbook, Web server stack should be installed and configured on a node.

Web server stack cookbook:

1.
2. Install JDK 1.7.* and set the Java Path
3.
4. Install and configure Tomcat 7.*
5.
6. Create a new user i.e. devOps and assign
password
7.
8. Modify permission such that Tomcat can be started and
stopped by devOps user
9.

Exercise 2:
Create a Cookbook to install and configure Application Server Stack.

Details:

By running this cookbook, application server stack should be installed and configured on a
node.
Application server stack cookbook:

1.
2. Install JDK 1.7.* and set the Java Path
3.
4. Install and configure JBoss 7.*
5.
6. Create a new user i.e. devOps and assign
password
7.
8. Modify permission such that JBoss can be started and
stopped by devOps user
9.

Exercise 3:
Create a Cookbook to install and configure Database Server Stack.

Details:

By running this cookbook, database server stack with clustering should be installed and
configured on a node.

Database server stack cookbook:

1.
2. Install and configure MySQL 5.6.*
3.
4. Configure to start and stop MySQL automatically.
5.
6. Create a Test database i.e. RL_TestDB
7.
8. Add a table
9.
10. Insert, update and delete records from a table
11.
12. Drop a table
13.
14. Delete database
15.

Exercise 4:
Create a Cookbook to install and configure Application Server Stack with clustering, two node
setup.

Details:

By running this cookbook, application server stack with clustering should be installed and
configured on two nodes.

Application server stack with clustering cookbook:

Node 1:

1.
2. Install JDK 1.7.* and set the Java Path
3.
4. Install and configure JBoss AS
5.
6. Create a new user i.e. devOps and assign
password
7.
8. Modify permission such that JBoss can be started and
stopped by devOps user
9.

Repeat the above steps on Node 2

1.
2. Configure the JBoss clustering
3.

Exercise 5:
Create a Cookbook to set and reset hostname and FQDN for Linux/CentOS servers.

Details:

By running this cookbook:

1.
2. Should be able to set the new hostname by using
templates
3.
4. Should be able to set the new FQDN by using templates
5.

Exercise 6:
Create a Cookbook to set and reset hostname for Windows servers.

Details:

By running this cookbook:

1.
2. Should be able to set the new hostname by using templates
3.

Exercise 7:
Create a Cookbook to configure information on a Network Information Service (NIS)

Details:

By running this cookbook,


1.
2. Configure login names/passwords/home
directories (/etc/passwd)
3.
4. group information (/etc/group)
5.
6. host names and IP numbers (/etc/hosts)
7.

* For this exercise to be executed it would need the NIS server to be installed and configured.

Exercise 8:
Create a Cookbook to configure information on a Network Information Service (NIS)

Details:

By running this cookbook it should capable of configuring the below information.

1.
2. Configure login names/passwords/home
directories (/etc/passwd)
3.
4. group information (/etc/group)
5.
6. host names and IP numbers (/etc/hosts)
7.

* For this exercise to be executed it would need the NIS server to be installed and configured
with the RL Data center and also have some basic knowledge of NIS.

Exercise 9:
Create a Cookbook to install Network Information Service (NIS) client on a Linux/CentOS server
– only on Datacenter Nodes

Details:

By running this cookbook,

1.
2. Install and configure NIS client
3.
4. Start the NIS Client
5.

* For this exercise to be executed it would need the NIS server to be installed and configured
with the RL Data center and also have some basic knowledge of NIS.

You might also like