Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Clarify chef user creation docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHockey committed Oct 16, 2015
1 parent cec6567 commit 75962a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Installing_a_Chef_workstation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ Finally install the Ruby libraries that are needed by our scripts.
You will need to configure yourself as a user on the chef server in order to use chef.

* If you are the person who created the chef server you wil already have added yourself as a user, and will know your username, organization name, and you will have a private key (`<chef-user-name>`, `<org-name>`, `<chef-user-name>.pem` respectively). These will be needed later.
* If you did not create the chef server, you will need to add an account for yourself. Log onto the chef server and run the following commands, substituting in appropriate values for `USER_NAME`, `FIRST_NAME`, `LAST_NAME`, `PASSWORD` and `ORG_NAME`. We'll refer to the username as `<chef-user-name>` and the organization as `<org-name>`. This will create a `<chef-user-name>.pem` file in the current directory - save it for later.
* If you did not create the chef server, you will need to add an account for yourself. Log SSH on to the chef server and run the following commands, substituting in appropriate values for `USER_NAME`, `FIRST_NAME`, `LAST_NAME`, `PASSWORD` and `ORG_NAME`. We'll refer to the username as `<chef-user-name>` and the organization as `<org-name>`. This will create a `<chef-user-name>.pem` file in the current directory - save it for later.

sudo chef-server-ctl user-create USER_NAME FIRST_NAME LAST_NAME EMAIL PASSWORD --filename USER_NAME.pem
sudo chef-server-ctl org-user-add ORG_NAME USER_NAME --admin
sudo chef-server-ctl user-create USER_NAME FIRST_NAME LAST_NAME EMAIL PASSWORD --filename USER_NAME.pem
sudo chef-server-ctl org-user-add ORG_NAME USER_NAME --admin

## Configure the chef workstation machine

Expand Down

0 comments on commit 75962a4

Please sign in to comment.