3.Bootstrap the Application Nodes on workstation using the knife bootstrap command from chef-repo/ directory.
knife bootstrap ‹‹appNodeIP ›› -x ‹‹username › › -i .chef/appnodeprivatekey.pem --sudo --run-list role["appServerNode"]
where “username” is the username of the app node and “appnodeprivatekey.pem” is the private key for the application server node.
knife bootstrap ‹‹webNodeIP ››-x ‹‹username ›› -i .chef/webnodeprivatekey.pem --sudo --run-list role["webNode"]
where “username” is the username of the web node and “webnodeprivatekey.pem” is the private key for the web node.
knife bootstrap ‹‹dbNodeIP›› -x ‹‹username›› -i .chef/dbnodeprivatekey.pem --sudo --run-list ro le["dbNode"]
where “username” is the username of the db node and “dbnodeprivatekey.pem” is the private key for the db node.
“dbNode”, “appServerNode”, “webNode” roles consists of attributes and run list associated with nodes.