You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
knife[:aws_ssh_key_id]='chef'# the pem file name without the .pem extension and it has to be located in: ~/.ssh/
16
+
knife[:aws_ssh_key_id]="typesafe-scala-aws-#{ENV.fetch('AWS_USER',ENV['USER'])}"# the pem file name without the .pem extension and it has to be located in: ~/.ssh/
Copy file name to clipboardExpand all lines: README.md
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,14 @@ For the CLI to work, you need:
152
152
export CHEF_ORG="typesafe-scala"
153
153
```
154
154
155
-
You can then generate and download your private key on https://www.chef.io/account/password. Put it to `.chef/config/$USER.pem`, then you can use knife without further config. See `.chef/knife.rb` for key locations.
155
+
If your username on chef.io does not match the local username on your machine, you also need
156
+
```
157
+
export CHEF_USER="[username]"
158
+
```
159
+
160
+
You can then generate and download your private key on https://www.chef.io/account/password. Put it to `.chef/config/$CHEF_USER.pem`, then you can use knife without further config. See `.chef/knife.rb` for key locations.
161
+
162
+
Test if knife works correctly by running `knife cookbook list`.
156
163
157
164
Obtain the organization validation key from Adriaan and put it to `.chef/config/$CHEF_ORG-validator.pem`. (Q: When is this key used exactly? https://docs.chef.io/chef_private_keys.html says it's when a new node runs `chef-client` for the first time.)
0 commit comments