Skip to content

Commit 95d1c1f

Browse files
authored
Merge pull request #358 from jpogran/GH-353-set-puppet-agent-default
(GH-353) Set default source to Puppet Agent
2 parents 3e1df5a + 3abc2a5 commit 95d1c1f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,14 @@
269269
"properties": {
270270
"puppet.installType": {
271271
"type": "string",
272-
"default": "pdk",
272+
"default": "agent",
273273
"description": "The Puppet Install Type",
274274
"enum": [
275275
"pdk",
276-
"puppet"
276+
"agent"
277277
]
278278
},
279-
"puppet.installDirectory": {
279+
"puppet.puppetAgentDir": {
280280
"type": "string",
281281
"default": null,
282282
"description": "The fully qualified path to the Puppet agent install directory. For example: 'C:\\Program Files\\Puppet Labs\\Puppet' or '/opt/puppetlabs/puppet'"

src/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export class ConnectionConfiguration implements IConnectionConfiguration {
3737
}
3838

3939
get puppetBaseDir(): string {
40-
if (this.config['installDirectory'] !== null) {
41-
return this.config['installDirectory'];
40+
if (this.config['puppetAgentDir'] !== null) {
41+
return this.config['puppetAgentDir'];
4242
}
4343

4444
let programFiles = PathResolver.getprogramFiles();

src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ export interface IConnectionConfiguration {
5151

5252
export enum PuppetInstallType{
5353
PDK = "pdk",
54-
PUPPET = "puppet",
54+
PUPPET = "agent",
5555
}

src/test/configuration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ suite("Configuration Tests", () => {
2424

2525
test("correct install type", () => {
2626
var config = new ConnectionConfiguration();
27-
assert.equal(PuppetInstallType.PDK, config.puppetInstallType);
27+
assert.equal(PuppetInstallType.PUPPET, config.puppetInstallType);
2828
});
2929

30-
test("resolves puppetBaseDir as pdk with default installtype", () => {
30+
test("resolves puppetBaseDir as puppet with default installtype", () => {
3131
var config = new ConnectionConfiguration();
32-
assert.equal(config.puppetBaseDir, pdkPuppetBaseDir);
32+
assert.equal(config.puppetBaseDir, puppetBaseDir);
3333
});
3434

3535
test("resolves puppetBaseDir as puppet with installtype eq puppet", () => {

0 commit comments

Comments
 (0)