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
+91-5Lines changed: 91 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
39
39
## Quick start
40
40
41
-
- Step 1: Install a supported version of Puppet on your system (see [Requirements](#requirements) for more information).
41
+
- Step 1: Install a supported version of the Puppet Development Kit on your system (see [Requirements](#requirements) for more information).
42
42
- Step 2: Install the Puppet [extension](https://marketplace.visualstudio.com/items?itemName=jpogran.puppet-vscode) for Visual Studio Code.
43
43
- Step 3: Open or create a Puppet manifest file (a file with a `.pp` or `.epp` extension or named `Puppetfile`) and start automating!
44
44
@@ -65,7 +65,17 @@ This extension provides full Puppet Language support for [Visual Studio Code](ht
65
65
66
66
## Requirements
67
67
68
-
You will need to have Puppet Agent installed in order to fully use this extension. You can find instructions and installation links here:
68
+
You will need to have the [Puppet Agent](https://puppet.com/docs/puppet/4.10/about_agent.html) or [Puppet Development Kit (PDK)](https://puppet.com/docs/pdk/1.x/pdk.html) installed in order to fully use this extension.
69
+
70
+
**Note:** PDK version 1.5.0 or higher is required.
71
+
72
+
You can find instructions and installation links here:
You can install the official release of the Puppet extension by following the steps in the [Visual Studio Code documentation](https://code.visualstudio.com/docs/editor/extension-gallery). In the Extensions pane, search for "puppet-vscode" extension and install it there. You will get notified automatically about any future extension updates!
185
195
186
-
You can also install the extension without access to the internet byw following these [instructions](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix.)
196
+
You can also install the extension without access to the internet by following these [instructions](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix.)
197
+
198
+
## Configuration
199
+
200
+
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.puppetAgentDir`.
201
+
202
+
- By default the `puppet.installType` is set to `agent`, and allows you to choose to use `pdk` or `agent`.
203
+
- The `puppet.puppetAgentDir` 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`.
204
+
205
+
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`.
206
+
207
+
208
+
**Note**: The `puppet.puppetAgentDir` setting name will be changed in the `0.12.0` release to `puppet.installDirectory`
209
+
210
+
**Note**: Only PDK v1.5.0 and above are supported.
211
+
212
+
### Configure extension to use PDK
213
+
214
+
To ensure that the extension uses the PDK, set the `puppet.installType` setting to the `pdk` value like so:
215
+
216
+
```json
217
+
{
218
+
"puppet.installType":"pdk"
219
+
}
220
+
```
221
+
222
+
The default installation paths stored in the extension are:
To use a custom install path for the Puppet-Agent, set the `puppet.puppetAgentDir` setting to the path you installed the Puppet-Agent to:
267
+
268
+
```json
269
+
{
270
+
"puppet.puppetAgentDir":"D:/programs/puppet"
271
+
}
272
+
```
187
273
188
274
## Experience a Problem?
189
275
190
276
### Puppet Agent Install
191
277
192
-
A commonly encountered problem is not having Puppet Agent installed on the computer you are running VSCode on. As noted in the [Requirements section](https://github.com/lingua-pupuli/puppet-vscode/blob/master/README.md#requirements), you will need to have Puppet Agent installed in order to fully use this extension, as the extension uses the Puppet binaries and the Ruby language bundled into the agent install in order to function.
278
+
A commonly encountered problem is not having the PDK or Puppet Agent installed on the computer you are running VSCode on. As noted in the [Requirements section](https://github.com/lingua-pupuli/puppet-vscode/blob/master/README.md#requirements), you will need to have the PDK or Puppet Agent installed in order to fully use this extension, as the extension uses the Puppet binaries and the Ruby language bundled into the PDK or agent install in order to function.
193
279
194
-
If you are receiving an error right after opening a Puppet file saying that a Puppet Agent install could not be found, ensure that Puppet is installed on the system. The VSCode extension attempts to find a valid Puppet install if a path is not configured in `puppet.puppetAgentDir` in `User Settings`, so if Puppet is installed but not in a default path please check that your setting points to the correct path.
280
+
If you are receiving an error right after opening a Puppet file saying that a Puppet Agent install could not be found, ensure that Puppet is installed on the system. The VSCode extension attempts to find a valid Puppet install if a path is not configured in `puppet.installDirectory` in `User Settings`, so if Puppet is installed but not in a default path please check that your setting points to the correct path.
0 commit comments