Chef Cookbook Assignment
Chef Cookbook Assignment
Details:
By running this cookbook, Web server stack should be installed and configured on a node.
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.
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.
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.
1.
2. Configure the JBoss clustering
3.
Exercise 5:
Create a Cookbook to set and reset hostname and FQDN for Linux/CentOS servers.
Details:
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:
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:
* 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:
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:
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.