Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e54f5b4f08 | ||
|
|
c4c56cd6c5 | ||
|
|
6cda8ef5ba | ||
|
|
0a77898e3d | ||
|
|
2b641fd530 | ||
|
|
1bfe4da05a | ||
|
|
6bdf734416 | ||
|
|
c288dbec0e | ||
|
|
aa255af5ad | ||
|
|
69a75c8e6a | ||
|
|
60a4af1843 | ||
|
|
4ad9ec6191 | ||
|
|
0a09bce58f | ||
|
|
26e9bcfc1a | ||
|
|
a57d124d7d | ||
|
|
e300649623 | ||
|
|
d30c38266b | ||
|
|
4610ca34a8 | ||
|
|
fb850647a8 | ||
|
|
0d23711e7d |
52
.github/workflows/release.yml
vendored
Normal file
52
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: "release"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'release'
|
||||
|
||||
jobs:
|
||||
LitmusAcceptance:
|
||||
|
||||
runs-on: self-hosted
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
ruby_version: [2.5.x]
|
||||
puppet_gem_version: [~> 6.0]
|
||||
platform: [release_checks]
|
||||
agent_family: ['puppet5', 'puppet6']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Litmus Parallel
|
||||
uses: puppetlabs/action-litmus_parallel@master
|
||||
with:
|
||||
platform: ${{ matrix.platform }}
|
||||
agent_family: ${{ matrix.agent_family }}
|
||||
|
||||
Spec:
|
||||
runs-on: self-hosted
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
check: [parallel_spec, 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop']
|
||||
ruby_version: [2.4.x, 2.5.x]
|
||||
puppet_gem_version: [~> 5.0, ~> 6.0]
|
||||
exclude:
|
||||
- puppet_gem_version: ~> 5.0
|
||||
check: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
|
||||
- ruby_version: 2.4.x
|
||||
puppet_gem_version: ~> 6.0
|
||||
- ruby_version: 2.5.x
|
||||
puppet_gem_version: ~> 5.0
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Spec Tests
|
||||
uses: puppetlabs/action-litmus_spec@master
|
||||
with:
|
||||
puppet_gem_versionm: ${{ matrix.puppet_gem_version }}
|
||||
check: ${{ matrix.check }}
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,5 +22,6 @@
|
||||
/convert_report.txt
|
||||
/update_report.txt
|
||||
.DS_Store
|
||||
.project
|
||||
.envrc
|
||||
/inventory.yaml
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
/convert_report.txt
|
||||
/update_report.txt
|
||||
.DS_Store
|
||||
.project
|
||||
.envrc
|
||||
/inventory.yaml
|
||||
/appveyor.yml
|
||||
|
||||
23
.project
23
.project
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>puppetlabs-java</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.puppetlabs.geppetto.pp.dsl.ui.modulefileBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.puppetlabs.geppetto.pp.dsl.ui.puppetNature</nature>
|
||||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
104
.sync.yml
104
.sync.yml
@@ -1,17 +1,13 @@
|
||||
---
|
||||
.gitignore:
|
||||
required:
|
||||
- ---.project
|
||||
|
||||
.gitlab-ci.yml:
|
||||
unmanaged: true
|
||||
|
||||
.travis.yml:
|
||||
".gitlab-ci.yml":
|
||||
delete: true
|
||||
".travis.yml":
|
||||
deploy_to_forge:
|
||||
enabled: false
|
||||
branches:
|
||||
- release
|
||||
includes:
|
||||
-
|
||||
bundler_args:
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=deb_puppet5
|
||||
rvm: 2.5.1
|
||||
@@ -25,8 +21,7 @@
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
-
|
||||
bundler_args:
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=deb_puppet6
|
||||
rvm: 2.5.1
|
||||
@@ -38,13 +33,13 @@
|
||||
script:
|
||||
- bundle exec rake litmus:acceptance:parallel
|
||||
services: docker
|
||||
-
|
||||
bundler_args:
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el_puppet5
|
||||
env: PLATFORMS=ub_puppet5
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el]'
|
||||
- bundle exec rake 'litmus:provision_list[travis_ub]'
|
||||
- bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'
|
||||
- bundle exec rake 'litmus:install_agent[puppet5]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
@@ -52,13 +47,37 @@
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
-
|
||||
bundler_args:
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el_puppet6
|
||||
env: PLATFORMS=ub_puppet6
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el]'
|
||||
- bundle exec rake 'litmus:provision_list[travis_ub]'
|
||||
- bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'
|
||||
- bundle exec rake 'litmus:install_agent[puppet6]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
- bundle exec rake litmus:acceptance:parallel
|
||||
services: docker
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el6_puppet5
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el6]'
|
||||
- bundle exec rake 'litmus:install_agent[puppet5]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
- bundle exec rake litmus:acceptance:parallel
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el6_puppet6
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el6]'
|
||||
- bundle exec rake 'litmus:install_agent[puppet6]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
@@ -66,18 +85,45 @@
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el7_puppet5
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el7]'
|
||||
- bundle exec rake 'litmus:install_agent[puppet5]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
- bundle exec rake litmus:acceptance:parallel
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
- bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el7_puppet6
|
||||
rvm: 2.5.1
|
||||
before_script:
|
||||
- bundle exec rake 'litmus:provision_list[travis_el7]'
|
||||
- bundle exec rake 'litmus:install_agent[puppet6]'
|
||||
- bundle exec rake litmus:install_module
|
||||
script:
|
||||
- bundle exec rake litmus:acceptance:parallel
|
||||
services: docker
|
||||
sudo: required
|
||||
stage: acceptance
|
||||
simplecov: true
|
||||
notifications:
|
||||
slack:
|
||||
secure: Wf7Wz3KC0G9ngPiDcOIpSqcCfdvwKQqZdNH/z3GMcj/OipMAdyFSAVnBvikIl7L1c0LMU9ATEpub+jYzViT7RZywaNyer6SRAfs6MIgAYo4xxF/mOnDHAxXeUYAsBXXL4sS3NX2XWMPa9ZWUeuUQKth8O4STWgAX298QZLyYx5k=
|
||||
appveyor.yml:
|
||||
delete: true
|
||||
|
||||
Gemfile:
|
||||
optional:
|
||||
':development':
|
||||
- gem: 'github_changelog_generator'
|
||||
git: 'https://github.com/skywinder/github-changelog-generator'
|
||||
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
|
||||
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
|
||||
|
||||
":development":
|
||||
- gem: github_changelog_generator
|
||||
git: https://github.com/skywinder/github-changelog-generator
|
||||
ref: 20ee04ba1234e9e83eb2ffb5056e23d641c7a018
|
||||
condition: Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
|
||||
spec/spec_helper.rb:
|
||||
mock_with: ':rspec'
|
||||
mock_with: ":rspec"
|
||||
coverage_report: true
|
||||
|
||||
60
.travis.yml
60
.travis.yml
@@ -5,11 +5,13 @@ cache: bundler
|
||||
before_install:
|
||||
- bundle -v
|
||||
- rm -f Gemfile.lock
|
||||
- gem update --system $RUBYGEMS_VERSION
|
||||
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
|
||||
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
|
||||
- '[ -z "$RUBYGEMS_VERSION" ] || gem update --system $RUBYGEMS_VERSION'
|
||||
- gem --version
|
||||
- bundle -v
|
||||
script:
|
||||
- 'bundle exec rake $CHECK'
|
||||
- 'SIMPLECOV=yes bundle exec rake $CHECK'
|
||||
bundler_args: --without system_tests
|
||||
rvm:
|
||||
- 2.5.3
|
||||
@@ -17,9 +19,6 @@ stages:
|
||||
- static
|
||||
- spec
|
||||
- acceptance
|
||||
-
|
||||
if: tag =~ ^v\d
|
||||
name: deploy
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
@@ -34,9 +33,6 @@ matrix:
|
||||
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
|
||||
rvm: 2.5.3
|
||||
stage: spec
|
||||
-
|
||||
env: DEPLOY_TO_FORGE=yes
|
||||
stage: deploy
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_deb]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
@@ -56,20 +52,58 @@ matrix:
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el]'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_ub]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el_puppet5
|
||||
env: PLATFORMS=ub_puppet5
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
stage: acceptance
|
||||
sudo: required
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el]'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_ub]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el_puppet6
|
||||
env: PLATFORMS=ub_puppet6
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el6]'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el6_puppet5
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
stage: acceptance
|
||||
sudo: required
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el6]'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el6_puppet6
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
stage: acceptance
|
||||
sudo: required
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el7]'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el7_puppet5
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
stage: acceptance
|
||||
sudo: required
|
||||
-
|
||||
before_script: ["bundle exec rake 'litmus:provision_list[travis_el7]'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
|
||||
bundler_args:
|
||||
dist: trusty
|
||||
env: PLATFORMS=el7_puppet6
|
||||
rvm: 2.5.1
|
||||
script: ["bundle exec rake litmus:acceptance:parallel"]
|
||||
services: docker
|
||||
@@ -82,3 +116,5 @@ branches:
|
||||
- release
|
||||
notifications:
|
||||
email: false
|
||||
slack:
|
||||
secure: Wf7Wz3KC0G9ngPiDcOIpSqcCfdvwKQqZdNH/z3GMcj/OipMAdyFSAVnBvikIl7L1c0LMU9ATEpub+jYzViT7RZywaNyer6SRAfs6MIgAYo4xxF/mOnDHAxXeUYAsBXXL4sS3NX2XWMPa9ZWUeuUQKth8O4STWgAX298QZLyYx5k=
|
||||
|
||||
@@ -6,18 +6,13 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
[Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v5.0.1...v6.0.0)
|
||||
|
||||
### Changed
|
||||
|
||||
- pdksync - FM-8499 - remove ubuntu14 support [\#398](https://github.com/puppetlabs/puppetlabs-java/pull/398) ([lionce](https://github.com/lionce))
|
||||
|
||||
### Added
|
||||
|
||||
- \(FM-8676\) - Support added for CentOS 8 [\#399](https://github.com/puppetlabs/puppetlabs-java/pull/399) ([david22swan](https://github.com/david22swan))
|
||||
- \(FM-8676\) Add CentOS 8 to supported OS list [\#399](https://github.com/puppetlabs/puppetlabs-java/pull/399) ([david22swan](https://github.com/david22swan))
|
||||
- FM-8403 - add support Debain10 [\#387](https://github.com/puppetlabs/puppetlabs-java/pull/387) ([lionce](https://github.com/lionce))
|
||||
|
||||
### Fixed
|
||||
|
||||
- MODULES-10062 - fix acceptance tests on sles [\#397](https://github.com/puppetlabs/puppetlabs-java/pull/397) ([lionce](https://github.com/lionce))
|
||||
- we need to check if java\_default\_home has a value before we attempt t… [\#391](https://github.com/puppetlabs/puppetlabs-java/pull/391) ([robmbrooks](https://github.com/robmbrooks))
|
||||
- Add support for java 11, the default in debian buster 10 [\#386](https://github.com/puppetlabs/puppetlabs-java/pull/386) ([jhooyberghs](https://github.com/jhooyberghs))
|
||||
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -1,5 +1,4 @@
|
||||
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
||||
gem 'pdk', git: 'https://github.com/puppetlabs/pdk.git', branch: 'master'
|
||||
|
||||
def location_for(place_or_version, fake_version = nil)
|
||||
git_url_regex = %r{\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
## Maintenance
|
||||
|
||||
Maintainers:
|
||||
- Puppet Forge Modules Team `forge-modules |at| puppet |dot| com`
|
||||
|
||||
Tickets: https://tickets.puppet.com/browse/MODULES. Make sure to set component to `java`.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppetlabs-java",
|
||||
"version": "6.0.0",
|
||||
"version": "6.1.0",
|
||||
"author": "puppetlabs",
|
||||
"summary": "Installs the correct Java package on various platforms.",
|
||||
"license": "Apache-2.0",
|
||||
@@ -60,6 +60,7 @@
|
||||
{
|
||||
"operatingsystem": "Ubuntu",
|
||||
"operatingsystemrelease": [
|
||||
"14.04",
|
||||
"16.04",
|
||||
"18.04"
|
||||
]
|
||||
@@ -79,7 +80,7 @@
|
||||
"version_requirement": ">= 5.5.10 < 7.0.0"
|
||||
}
|
||||
],
|
||||
"template-url": "https://github.com/puppetlabs/pdk-templates/#master",
|
||||
"template-ref": "1.14.1-0-g0b5b39b",
|
||||
"pdk-version": "1.14.0"
|
||||
"template-url": "https://github.com/puppetlabs/pdk-templates#master",
|
||||
"template-ref": "heads/master-0-gcaed9d7",
|
||||
"pdk-version": "1.15.0"
|
||||
}
|
||||
|
||||
@@ -2,15 +2,21 @@
|
||||
default:
|
||||
provisioner: docker
|
||||
images: ['waffleimage/debian8']
|
||||
travis_deb:
|
||||
provisioner: docker
|
||||
images: ['debian:8', 'debian:9', 'ubuntu:16.04', 'ubuntu:18.04']
|
||||
travis_el:
|
||||
provisioner: docker_exp
|
||||
images: ['centos:6', 'centos:7', 'oraclelinux:6', 'oraclelinux:7', 'scientificlinux/sl:6', 'scientificlinux/sl:7']
|
||||
vagrant:
|
||||
provisioner: vagrant
|
||||
images: ['centos/7', 'generic/ubuntu1804']
|
||||
travis_deb:
|
||||
provisioner: docker
|
||||
images: ['waffleimage/debian8', 'waffleimage/debian9', 'waffleimage/debian10']
|
||||
travis_ub:
|
||||
provisioner: docker
|
||||
images: ['waffleimage/ubuntu14.04', 'waffleimage/ubuntu16.04', 'waffleimage/ubuntu18.04']
|
||||
travis_el6:
|
||||
provisioner: docker
|
||||
images: ['waffleimage/centos6', 'waffleimage/oraclelinux6', 'waffleimage/scientificlinux6']
|
||||
travis_el7:
|
||||
provisioner: docker
|
||||
images: ['waffleimage/centos7', 'waffleimage/oraclelinux7', 'waffleimage/scientificlinux7']
|
||||
release_checks:
|
||||
provisioner: vmpooler
|
||||
images: ['redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'centos-8-x86_64', 'oracle-6-x86_64', 'oracle-7-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'debian-10-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64']
|
||||
images: ['redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'centos-8-x86_64', 'oracle-6-x86_64', 'oracle-7-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'debian-10-x86_64', 'ubuntu-1404-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64']
|
||||
|
||||
Reference in New Issue
Block a user