Improved Bootstrapping#2
Improved Bootstrapping#2janatzend wants to merge 2 commits intozend-patterns:masterfrom janatzend:master
Conversation
…stored in attributes and can be used for ZS actions.
|
@mkherlakian the idea was to provide an independent WebAPI user for Chef, 1 - the random key is stored after the first run and is not overwritten by 2014-01-29 Maurice Kherlakian notifications@github.com
|
|
@janatzend reviewed the PR - the idea is good I think but will only work in a Chef Server/Client environment. Most cloud vendors tend to use Chef solo (at least Rightscale and AWS Opsworks do) it would be great therefore if you could check if a key was manually provided, and if not then generate and store in the node's config. |
No initial API Key Name/Secret has to be set in attributes before bootstrapping. Random key and secret specifically for Chef is generated and used in this recipes for restarting Zend Server and for joining Zend Server to the cluster. API Key is stored in node's attribute list. If a node joins a cluster and is not the first node, the API key in the attribute list will be overwritten by the cluster API key.