- knife block use <org name> (set the chef org for the chef work-station)
** The list of orgs placed inside ~/.chef directory
- knife block list (list out the available orgs for the work-station)
- knife bootstrap <ip> -x user_name -p password --sudo -N name (boot straps a new host)
- knife node list (list out the nodes for the org)
- berks install (Install the necessary package for the cookbook / recipe )
- berks update (update the necessary package for the cookbook / recipe )
- berks upload (upload the cookbook to org)
- export SSL_CERT_FILE=<if any>
- knife bootstrap <IP> -x username -i ~/.ssh/id_rsa --sudo
- knife bootstrap <IP> -x cloud-user -i xyzz.pem --sudo -N name (boot strap with key)
- knife org list
- knife vault list
- knife vault show <vault name>
- knife environment list
- knife environment from file XXX.json (create an environment for the org from the json file)
- chef-client -o cookbook::reciepe (Execute the added run list on server)
No comments:
Post a Comment