Skip to content

Commit 31baf78

Browse files
authored
Merge pull request #83 from jarretlavallee/pdk_2
(maint) Update to PDK 2.0, Puppet versions, and OSes
2 parents f54e568 + 15b55b6 commit 31baf78

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.rubocop.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,6 @@ Style/BlockComments:
464464
Enabled: false
465465
Style/BlockDelimiters:
466466
Enabled: false
467-
Style/BracesAroundHashParameters:
468-
Description: |
469-
Braces are actually required by Ruby 2.7 in order to disambiguate between
470-
keword arguments and actual hash parameters. Removed in RuboCop v0.80.0.
471-
Enabled: false
472467
Style/CaseEquality:
473468
Enabled: false
474469
Style/CharacterLiteral:

metadata.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,32 @@
1818
"operatingsystem": "RedHat",
1919
"operatingsystemrelease": [
2020
"6",
21-
"7"
21+
"7",
22+
"8"
2223
]
2324
},
2425
{
2526
"operatingsystem": "CentOS",
2627
"operatingsystemrelease": [
2728
"6",
28-
"7"
29+
"7",
30+
"8"
2931
]
3032
},
3133
{
3234
"operatingsystem": "OracleLinux",
3335
"operatingsystemrelease": [
3436
"6",
35-
"7"
37+
"7",
38+
"8"
3639
]
3740
},
3841
{
3942
"operatingsystem": "Scientific",
4043
"operatingsystemrelease": [
4144
"6",
42-
"7"
45+
"7",
46+
"8"
4347
]
4448
},
4549
{
@@ -53,10 +57,10 @@
5357
"requirements": [
5458
{
5559
"name": "puppet",
56-
"version_requirement": ">= 5.5.1"
60+
"version_requirement": ">= 5.5.1 < 8.0.0"
5761
}
5862
],
59-
"pdk-version": "1.18.1",
63+
"pdk-version": "2.0.0",
6064
"template-url": "https://github.com/puppetlabs/pdk-templates#master",
6165
"template-ref": "remotes/origin/master-0-ga58fd92"
6266
}

spec/classes/puppet_metrics_collector_system_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
end
2121

2222
context 'when vmware-toolbox-cmd is present on the PATH' do
23-
let(:facts) { super().merge({puppet_metrics_collector: {have_vmware_tools: true}}) }
23+
let(:facts) { super().merge(puppet_metrics_collector: {have_vmware_tools: true}) }
2424

2525
it { is_expected.to contain_cron('vmware_metrics_collection').with_ensure('present') }
2626
end
2727

2828
context 'when vmware-toolbox-cmd is not present on the PATH' do
29-
let(:facts) { super().merge({puppet_metrics_collector: {have_vmware_tools: false}}) }
29+
let(:facts) { super().merge(puppet_metrics_collector: {have_vmware_tools: false}) }
3030

3131
it { is_expected.to contain_notify('vmware_tools_warning') }
3232
it { is_expected.to contain_cron('vmware_metrics_collection').with_ensure('absent') }

0 commit comments

Comments
 (0)