Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 66e9095

Browse files
author
Daniel Dreier
committed
Switch to metadata.json instead of modulefile
Add metadata-json-lint validation
1 parent 67532f8 commit 66e9095

File tree

5 files changed

+78
-20
lines changed

5 files changed

+78
-20
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ group :test do
88
gem "rspec", '< 3.0.0'
99
gem "puppet-syntax"
1010
gem "puppetlabs_spec_helper"
11+
gem "metadata-json-lint"
1112
end
1213

1314
group :development do

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ GEM
117117
rb-inotify (>= 0.9)
118118
lumberjack (1.0.6)
119119
metaclass (0.0.4)
120+
metadata-json-lint (0.0.2)
120121
method_source (0.8.2)
121122
mime-types (1.25.1)
122123
minitar (0.5.4)
@@ -221,6 +222,7 @@ DEPENDENCIES
221222
beaker
222223
beaker-rspec
223224
guard-rake
225+
metadata-json-lint
224226
puppet (~> 3.4.0)
225227
puppet-blacksmith
226228
puppet-lint

Modulefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ RSpec::Core::RakeTask.new(:acceptance) do |t|
3232
t.pattern = 'spec/acceptance'
3333
end
3434

35+
task :metadata do
36+
sh "metadata-json-lint metadata.json"
37+
end
38+
3539
desc "Run syntax, lint, and spec tests."
3640
task :test => [
3741
:syntax,
3842
:lint,
3943
:spec,
44+
:metadata,
4045
]

metadata.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"name": "ploperations-puppet",
3+
"version": "0.12.0",
4+
"source": "https://github.com/puppetlabs-operations/puppet-puppet",
5+
"author": "Puppet Labs Operations",
6+
"license": "Apache 2",
7+
"summary": "Install and manage Puppet open source",
8+
"description": "UNKNOWN",
9+
"project_page": "https://github.com/puppetlabs-operations/puppet-puppet",
10+
"dependencies": [
11+
{
12+
"name": "stahnma/puppetlabs_yum",
13+
"version_requirement": ">= 0.1.0"
14+
},
15+
{
16+
"name": "ploperations/puppetlabs_apt",
17+
"version_requirement": ">= 0.0.1"
18+
},
19+
{
20+
"name": "ploperations/interval",
21+
"version_requirement": ">= 0.0.1"
22+
},
23+
{
24+
"name": "ploperations/unicorn",
25+
"version_requirement": ">= 1.0.0"
26+
},
27+
{
28+
"name": "puppetlabs/inifile",
29+
"version_requirement": ">= 1.0.0"
30+
},
31+
{
32+
"name": "puppetlabs/apache",
33+
"version_requirement": ">= 0.9.0"
34+
},
35+
{
36+
"name": "gentoo/portage",
37+
"version_requirement": ">= 2.1.0"
38+
},
39+
{
40+
"name": "jfryman/nginx",
41+
"version_requirement": "<= 0.0.10"
42+
},
43+
{
44+
"name": "danieldreier/thin"
45+
},
46+
{
47+
"name": "puppetlabs/puppetdb",
48+
"version_requirement": ">= 4.1.0"
49+
}
50+
],
51+
"operatingsystem_support": [
52+
{
53+
"operatingsystem": "Debian",
54+
"operatingsystemrelease": [
55+
"6",
56+
"7"
57+
]
58+
}
59+
],
60+
"requirements": [
61+
{
62+
"name": "pe",
63+
"version_requirement": "3.x"
64+
},
65+
{
66+
"name": "puppet",
67+
"version_requirement": "3.x"
68+
}
69+
]
70+
}

0 commit comments

Comments
 (0)