Skip to content

Commit 93dfa5b

Browse files
fix(tuto): chef
1 parent 5929459 commit 93dfa5b

File tree

1 file changed

+17
-16
lines changed
  • tutorials/configure-chef-ubuntu-xenial

1 file changed

+17
-16
lines changed

tutorials/configure-chef-ubuntu-xenial/index.mdx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: Chef Ubuntu Xenial Focal-Fossa
99
categories:
1010
- instances
1111
dates:
12-
validation: 2024-10-28
12+
validation: 2025-05-14
1313
posted: 2018-07-05
1414
---
1515

@@ -130,28 +130,29 @@ Creating an admin user enables a specific user to make changes to the infrastruc
130130

131131
For our example, we will create a user with the following information:
132132

133-
- **Username:** testuser
134-
- **First Name:** test
135-
- **Last Name:** user
136-
- **Email:** [email protected]
137-
- **Password:** pwdexample
138-
- **Filename:** testuser.pem
133+
- `USERNAME` - `testuser`
134+
- `FIRST_NAME` - `test`
135+
- `LAST_NAME` - `user`
136+
- `EMAIL` - `[email protected]`
137+
- `PASSWORD` - `pwdexample`
138+
- `FILENAME` - `testuser.pem`
139139

140-
We will also add `-f` option to specify a filename in which to output our new user's private RSA key. We will need this to authenticate using the `knife` management command later. In the end, the command translates to:
140+
We will also add `-f` option to specify a `FILENAME` in which to output our new user's private RSA key. We will need this to authenticate using the `knife` management command later. In the end, the command translates to:
141141

142142
```
143143
chef-server-ctl user-create testuser test user [email protected] pwdexample -f testuser.pem
144144
```
145145
2. Launch the `chef-server-ctl` with the `org-create` subcommand:
146146
```
147-
chef-server-ctl org-create SHORTNAME LONGNAME --association_user USERNAME
147+
chef-server-ctl org-create SHORTNAME LONGNAME --association_user ADMIN_USERNAME FILENAME
148148
```
149149

150150
For our example, we will create an organization with the following information:
151-
- **Short Name** (refers to the organization within Chef): scaleway
152-
- **Long Name** (name of the organization): Scaleway, Inc.
153-
- **Association User** (username that has access to administer the organization): testuser
154-
- **Filename:** scaleway-file.pem
151+
152+
- `SHORT_NAME` - Refers to the organization within Chef. In this example we use `scaleway`
153+
- `LONG_NAME` - The name of the organization. In this example, `Scaleway, Inc`
154+
- `ADMIN_USERNAME` - The username of a user with administration rights on the organization. In this example, `testuser`
155+
- `FILENAME` - `scaleway-file.pem`
155156

156157
Again, we will add the `-f` flag to specify the private key file location. The key that will be created is used to validate new clients as part of the organization until they can get their own unique client key. In the end, the command translates to:
157158

@@ -218,18 +219,18 @@ The method that you use to connect to the Chef server will determine how to down
218219

219220
#### Option 1: (Recommended) Downloading keys when connecting to a Chef server using SSH keys
220221

221-
1. Leave your workstation
222+
1. Leave your workstation.
222223
```
223224
exit
224225
```
225226

226-
The next steps should be carried out from the machine that holds the private SSH key needed to connect to your Chef server.
227+
The next steps should be carried out from the machine that holds the private SSH key needed to connect to your Chef server.
227228
2. Add the SSH key you use to connect to the Chef server to an SSH agent:
228229
```
229230
eval $(ssh-agent)
230231
```
231232

232-
which should start the agent and return something similar to
233+
Which should start the agent and return something similar to:
233234

234235
```
235236
Agent pid 2893

0 commit comments

Comments
 (0)