aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Stone <melissa@puppet.com>2019-01-08 15:57:28 -0800
committerMelissa Stone <melissa@puppet.com>2019-01-08 15:57:28 -0800
commit622674eb39852a6f2890582c0786a49c0d6d7a0f (patch)
tree0830b60fe6d0c53e83a70cda214623b06954f648
parent4b77469aa9cce6110f95f93f255a2740ec2d2393 (diff)
downloadpuppet-hosts_core-622674eb39852a6f2890582c0786a49c0d6d7a0f.tar.gz
puppet-hosts_core-622674eb39852a6f2890582c0786a49c0d6d7a0f.tar.bz2
(maint) Use templates from pdk-templates repo
-rw-r--r--.pdkignore13
-rw-r--r--.puppet-lint.rc0
-rw-r--r--.travis.yml8
-rw-r--r--Gemfile3
-rw-r--r--metadata.json4
5 files changed, 22 insertions, 6 deletions
diff --git a/.pdkignore b/.pdkignore
index 650022e..b713b3b 100644
--- a/.pdkignore
+++ b/.pdkignore
@@ -22,3 +22,16 @@
/convert_report.txt
/update_report.txt
.DS_Store
+/appveyor.yml
+/.fixtures.yml
+/Gemfile
+/.gitattributes
+/.gitignore
+/.gitlab-ci.yml
+/.pdkignore
+/Rakefile
+/.rspec
+/.rubocop.yml
+/.travis.yml
+/.yardopts
+/spec/
diff --git a/.puppet-lint.rc b/.puppet-lint.rc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.puppet-lint.rc
diff --git a/.travis.yml b/.travis.yml
index 6664271..fdb8668 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,14 @@
---
-sudo: false
dist: trusty
language: ruby
cache: bundler
before_install:
+ - if [ $BUNDLER_VERSION ]; then
+ gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri;
+ fi
- bundle -v
- rm -f Gemfile.lock
- - gem update --system
+ - gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
@@ -28,7 +30,7 @@ matrix:
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.4
-
- env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
+ env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3
rvm: 2.1.9
branches:
only:
diff --git a/Gemfile b/Gemfile
index ea9295f..20fcc94 100644
--- a/Gemfile
+++ b/Gemfile
@@ -21,7 +21,8 @@ group :development do
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
- gem "json", '<= 2.0.4', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.4.4')
+ gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
+ gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
diff --git a/metadata.json b/metadata.json
index 7f68273..5707bdf 100644
--- a/metadata.json
+++ b/metadata.json
@@ -87,6 +87,6 @@
}
],
"pdk-version": "1.8.0",
- "template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
- "template-ref": "1.8.0-0-g0d9da00"
+ "template-url": "https://github.com/puppetlabs/pdk-templates",
+ "template-ref": "heads/master-0-gd61c0a4"
} \ No newline at end of file