Skip to content

Commit 419fe85

Browse files
Merge pull request #159 from MartyEwings/main
pdk template update
2 parents 0d2f05e + 5e8e594 commit 419fe85

File tree

7 files changed

+112
-19
lines changed

7 files changed

+112
-19
lines changed

.devcontainer/README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# devcontainer
2+
3+
4+
For format details, see https://aka.ms/devcontainer.json.
5+
6+
For config options, see the README at:
7+
https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
8+
9+
``` json
10+
{
11+
"name": "Puppet Development Kit (Community)",
12+
"dockerFile": "Dockerfile",
13+
14+
// Set *default* container specific settings.json values on container create.
15+
"settings": {
16+
"terminal.integrated.shell.linux": "/bin/bash"
17+
},
18+
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"extensions": [
21+
"puppet.puppet-vscode",
22+
"rebornix.Ruby"
23+
]
24+
25+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26+
"forwardPorts": [],
27+
28+
// Use 'postCreateCommand' to run commands after the container is created.
29+
"postCreateCommand": "pdk --version",
30+
}
31+
```
32+
33+
34+

.devcontainer/devcontainer.json

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
31
{
42
"name": "Puppet Development Kit (Community)",
53
"dockerFile": "Dockerfile",
64

7-
// Set *default* container specific settings.json values on container create.
85
"settings": {
9-
"terminal.integrated.shell.linux": "/bin/bash"
6+
"terminal.integrated.profiles.linux": {
7+
"bash": {
8+
"path": "bash",
9+
}
10+
}
1011
},
1112

12-
// Add the IDs of extensions you want installed when the container is created.
1313
"extensions": [
1414
"puppet.puppet-vscode",
1515
"rebornix.Ruby"
1616
]
17-
18-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19-
// "forwardPorts": [],
20-
21-
// Use 'postCreateCommand' to run commands after the container is created.
22-
// "postCreateCommand": "pdk --version",
2317
}

.rubocop.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Style/SymbolArray:
7474
EnforcedStyle: brackets
7575
RSpec/NamedSubject:
7676
Enabled: false
77-
Style/CollectionMethods:
78-
Enabled: false
7977
Style/LineEndConcatenation:
8078
Enabled: false
8179
Lint/AssignmentInCondition:
@@ -94,6 +92,8 @@ Style/GuardClause:
9492
Enabled: false
9593
RSpec/EmptyExampleGroup:
9694
Enabled: false
95+
Style/CollectionMethods:
96+
Enabled: false
9797
RSpec/MessageSpies:
9898
EnforcedStyle: receive
9999
Style/WordArray:

.sync.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ spec/default_facts.yml:
3939
Enabled: False
4040
"Style/ClassAndModuleChildren":
4141
Enabled: False
42-
"Style/CollectionMethods":
43-
Enabled: False
4442
"Style/LineEndConcatenation":
4543
Enabled: False
4644
"Lint/AssignmentInCondition":
@@ -59,7 +57,8 @@ spec/default_facts.yml:
5957
Enabled: False
6058
"RSpec/EmptyExampleGroup":
6159
Enabled: False
62-
60+
"Style/CollectionMethods":
61+
Enabled: False
6362
Gemfile:
6463
optional:
6564
":development":

1

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
common:
3+
4+
".gitlab-ci.yml":
5+
delete: true
6+
appveyor.yml:
7+
delete: true
8+
.gitpod.Dockerfile:
9+
unmanaged: true
10+
.gitpod.yml:
11+
unmanaged: true
12+
.github/workflows/nightly.yml:
13+
unmanaged: true
14+
.github/workflows/pr_test.yml:
15+
unmanaged: true
16+
.github/workflows/auto_release.yml:
17+
unmanaged: true
18+
.github/workflows/spec.yml:
19+
checks: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
20+
unmanaged: true
21+
.github/workflows/release.yml:
22+
unmanaged: true
23+
.travis.yml:
24+
delete: true
25+
spec/spec_helper.rb:
26+
mock_with: ":rspec"
27+
coverage_report: true
28+
Rakefile:
29+
changelog_user: "puppetlabs"
30+
31+
spec/default_facts.yml:
32+
extra_facts:
33+
pe_server_version: '2019.8.6'
34+
puppet_metrics_collector:
35+
have_systemd: true
36+
.rubocop.yml:
37+
default_configs:
38+
"RSpec/NamedSubject":
39+
Enabled: False
40+
"Style/ClassAndModuleChildren":
41+
Enabled: False
42+
"Style/LineEndConcatenation":
43+
Enabled: False
44+
"Lint/AssignmentInCondition":
45+
Enabled: False
46+
"Lint/RescueException":
47+
Enabled: False
48+
"Lint/UnderscorePrefixedVariableName":
49+
Enabled: False
50+
"Lint/UselessAssignment":
51+
Enabled: False
52+
"Style/Documentation":
53+
Enabled: False
54+
"Style/GlobalVars":
55+
Enabled: False
56+
"Style/GuardClause":
57+
Enabled: False
58+
"RSpec/EmptyExampleGroup":
59+
Enabled: False
60+
"Style/CollectionMethods":
61+
Enabled: False
62+
Gemfile:
63+
optional:
64+
":development":
65+
- gem: github_changelog_generator

Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ end
4343

4444
PuppetLint.configuration.send('disable_relative')
4545

46+
4647
if Bundler.rubygems.find_name('github_changelog_generator').any?
4748
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
4849
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?

metadata.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"version_requirement": ">= 6.16.0 < 8.0.0"
5757
}
5858
],
59-
"pdk-version": "2.1.1",
60-
"template-url": "https://github.com/puppetlabs/pdk-templates#2.1.1",
61-
"template-ref": "tags/2.1.1-0-g03daa92"
59+
"pdk-version": "2.4.0",
60+
"template-url": "https://github.com/puppetlabs/pdk-templates#2.4.0",
61+
"template-ref": "tags/2.4.0-0-gfa6b6d2"
6262
}

0 commit comments

Comments
 (0)