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
Copy file name to clipboardExpand all lines: content/target_mode.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,19 +33,17 @@ Target Mode has the following requirements:
33
33
34
34
## Credentials file
35
35
36
-
The credentials file defines the connection settings for each node in TOML format.
36
+
The credentials file defines the SSH connection settings for each node in TOML format.
37
37
38
38
Create a credentials file on the computer running Chef Workstation in the following location:
39
39
40
40
- on Linux and macOS: `~/.chef/credentials`
41
41
- on Windows: `c:\Users\<USERNAME>\.chef\credentials`
42
42
43
-
### Define node connection settings
43
+
### Define node connections
44
44
45
-
Define the list of nodes in the credentials file using the TOML format.
46
-
The connection settings for each node are defined using a [TOML Inline Table](https://toml.io/en/v1.0.0#inline-table).
47
-
48
-
For example, this adds credentials for three nodes using SSH:
45
+
Define connection settings for each node with an [inline table](https://toml.io/en/v1.0.0#inline-table).
46
+
For example, this adds credentials for three nodes:
49
47
50
48
```toml
51
49
['HOST-1']
@@ -201,7 +199,8 @@ Run the `chef-client` executable using `-t` or `--target` to target a specific n
201
199
chef-client -t <TARGET_NAME>
202
200
```
203
201
204
-
Replace `<TARGET_NAME>` with the name of the host as defined in the credentials file. For example, `HOST-1` in the [credential file example](#define-node-connection-settings).
202
+
Replace `<TARGET_NAME>` with the name of the host as defined in the credentials file.
203
+
For example, `HOST-1` in the [credential file example](#define-node-connections).
205
204
206
205
To execute a specific Cookbook in Target Mode, run:
207
206
@@ -225,7 +224,8 @@ Use `-z` and `-t` to run Target Mode in Local Mode:
225
224
chef-client -z -t <TARGET_NAME>
226
225
```
227
226
228
-
Replace `<TARGET_NAME>` with the name of the host as defined in the credentials file. For example, `HOST-1` in the [credential file example](#define-node-connection-settings).
227
+
Replace `<TARGET_NAME>` with the name of the host as defined in the credentials file.
228
+
For example, `HOST-1` in the [credential file example](#define-node-connections).
229
229
230
230
## Run Target Mode with Chef Automate or Chef Infra Server
0 commit comments