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: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,21 +331,22 @@ You can also install the extension without access to the internet by following t
331
331
332
332
## Configuration
333
333
334
-
The Puppet VSCode extension can use the PDK or the Puppet Agent to provide advanced features, which can be set using two configuration options: `puppet.installType` and `puppet.installDirectory`.
334
+
###Puppet Source Configuration
335
335
336
-
- By default the `puppet.installType` is set to `agent`, and allows you to choose to use `pdk` or `agent`.
337
-
- The `puppet.installDirectory` allows you to choose a custom path to either a PDK install or a Puppet-Agent install, and must match the correct setting in `puppet.installType`.
336
+
The Puppet VSCode extension can use either the PDK or the Puppet Agent as a source to provide advanced features. Which source it uses, and what location to find them in, can be set using two configuration options: `puppet.installType` and `puppet.installDirectory`.
338
337
339
-
If no settings are chosen, the extension will attempt to use the Puppet Agent, to force it to use the PDK you have to select `pdk` for `puppet.installType`.
338
+
- The `puppet.installType` setting allows you to choose to use `auto`, `pdk` or `agent`, and is set to `auto` by default.
339
+
- The `puppet.installDirectory` allows you to choose a custom path to either a PDK install or a Puppet-Agent install, and must match the correct setting in `puppet.installType`.
340
340
341
+
> The default values for these settings will require no configuration by the user in order to use the extension if the PDK or Puppet Agent are installed in the default locations.
341
342
342
-
> Note: The `puppet.installDirectory` setting name will be changed in the `0.12.0` release to `puppet.installDirectory`
343
+
#### Automatic Configuration
343
344
344
-
> Note: Only PDK v1.5.0 and above are supported.
345
+
By default the extension attempts to automatically find a valid installation of the PDK on your system. If a PDK installation is not found, it attempts to find a Puppet Agent installation. The locations it looks for are the default install locations for each product. Exact default values for these locations can be found in the following sections for manually configuring the extension.
345
346
346
-
### Configure extension to use PDK
347
+
####Configure extension to use PDK
347
348
348
-
To ensure that the extension uses the PDK, set the `puppet.installType` setting to the `pdk` value like so:
349
+
To ensure that the extension uses the `PDK`, set the `puppet.installType` setting to the `pdk` value like so:
349
350
350
351
```json
351
352
{
@@ -379,15 +380,17 @@ Linux:
379
380
}
380
381
```
381
382
382
-
To use a custom install path for the PDK, set the `puppet.installDirectory` setting to the path you installed the PDK to:
383
+
To use a custom install path for the `PDK`, set the `puppet.installDirectory` setting to the path you installed the `PDK` to:
383
384
384
385
```json
385
386
{
386
387
"puppet.installDirectory":"D:/programs/pdk"
387
388
}
388
389
```
389
390
390
-
The PDK has many versions of Puppet which can be used. Set the `puppet.editorService.puppet.version` setting to the version you would like to use, for example, if you wanted to use version 5.4.0, then set the configuration to:
391
+
#### Configure Puppet Version in PDK
392
+
393
+
The `PDK` has many versions of Puppet which can be used. Set the `puppet.editorService.puppet.version` setting to the version you would like to use, for example, if you wanted to use version 5.4.0, then set the configuration to:
391
394
392
395
```json
393
396
{
@@ -399,7 +402,7 @@ You can also change the version from the status bar in Visual Studio Code. Clic
Copy file name to clipboardExpand all lines: package.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -402,9 +402,10 @@
402
402
},
403
403
"puppet.installType": {
404
404
"type": "string",
405
-
"default": "pdk",
406
-
"description": "The type of Puppet installation. Either the Puppet Development Kit (pdk) or the Puppet Agent (agent)",
405
+
"default": "auto",
406
+
"description": "The type of Puppet installation. Either the Puppet Development Kit (pdk) or the Puppet Agent (agent). Choose 'auto' to have the extension detect which to use automatically based on default install locations",
0 commit comments