Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from upstream #1

Merged
merged 56 commits into from
Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
de3f000
Fix frozen string error (#434)
khaefeli Feb 18, 2019
593d234
Update metadata.json (#429)
davejrt Feb 18, 2019
686e2ae
adding in type/provider for docker stack (#433)
davejrt Feb 18, 2019
ff48787
updating acceptance tests for cve-2019-5736 (#430)
davejrt Feb 18, 2019
f13f62b
including docker class in all tests of docker::run (#437)
davejrt Feb 19, 2019
d5ec192
fixing errors with bundle file conditional statement (#436)
davejrt Feb 19, 2019
1cc4296
Add docker socket group overrides for systemd (service and socket) (#…
esalberg Feb 25, 2019
4ba9cfe
changing permissions to remove systemd warning (#440)
davejrt Feb 25, 2019
16764c3
adding in documentation for use of stack type/provider (#443)
davejrt Feb 25, 2019
01932d7
release for v3.4.0 (#442)
davejrt Feb 25, 2019
a204679
docker::services: Fix using multiple published ports (#447)
jacksgt Mar 4, 2019
059d8a8
Add ability to override After for docker.service (#446)
esalberg Mar 4, 2019
226be6c
Add ability to set service_after_override to false (#448)
esalberg Mar 8, 2019
15ee0e4
Docker::Services: Add networks parameter for swarm services (#450)
jacksgt Mar 8, 2019
fb2d756
Docker::Services:: fix command parameter used with an array (#452)
jacksgt Mar 11, 2019
1352bb6
making dependency ranges more logical (#453)
davejrt Mar 11, 2019
c8b5902
adding in capability to attach multiple networks to container (#451)
davejrt Mar 12, 2019
84e8edc
fix(syntax): Remove duplicate parenthesis (#454)
jfroche Mar 13, 2019
e59ec60
release 3.5.0 (#458)
davejrt Mar 14, 2019
ddd99ac
Update readme for aws logging options (#459)
acurus-puppetmaster Mar 18, 2019
e01a33f
Allow images tagged latest to update on each run
electrofelix Apr 2, 2019
d4dac10
Fix docker::image to not run images (#465)
hugotanure Apr 3, 2019
043395e
Introduced docker machine support (#466)
acurus-puppetmaster Apr 8, 2019
e9f906c
Fix publish flag being erroneously added to docker service commands (…
twistedduck Apr 9, 2019
0506ec8
Fix container running check to work for windows hosts
florindragos Apr 8, 2019
f9e4c88
Add missing apostrophe in array. (#473)
towo Apr 16, 2019
1cbcf1e
Merge pull request #470 from florindragos/master
tphoney Apr 16, 2019
c36e36b
Fix supported operating systems in the readme
florindragos Apr 16, 2019
9b6ea2b
Merge pull request #475 from florindragos/master
tphoney Apr 16, 2019
813dcbd
Merge pull request #468 from electrofelix/noop-latest-images
Apr 18, 2019
4b57d04
Add service_provider parameter to docker::run
jameslikeslinux Dec 20, 2017
2a0f381
Add missing single quote (#478)
DavidS May 1, 2019
a77179b
Merge pull request #376 from iamjamestl/run-systemd
May 2, 2019
d7473eb
Update docker volume documentation
benningm May 6, 2019
d93316c
Merge pull request #480 from benningm/master
May 7, 2019
9781179
(MODULES-9034) Fix Ubuntu and Debian tests
eimlav May 7, 2019
b95529d
(MODULES-9035) Fix RedHat acceptance tests
eimlav May 8, 2019
1808b95
(MODULES-9036) Fix Windows acceptance tests
eimlav May 13, 2019
fd094e8
Merge pull request #483 from eimlav/modules-9034
sheenaajay May 15, 2019
d4f1cfb
(MODULES-9029) Update pdk template to 46a1deb
eimlav May 15, 2019
a2fa909
(MODULES-9029) Fix rubocop offenses
eimlav May 16, 2019
afe885c
(MODULES-9029) Fix Windows acceptance tests
eimlav May 16, 2019
9575cfd
Merge pull request #484 from eimlav/modules-9029
sheenaajay May 17, 2019
e25e5e0
(FM-8100) Update minimum supported Puppet version to 5.5.10
eimlav May 22, 2019
3bf6b92
Merge pull request #486 from eimlav/fm-8100
lionce May 22, 2019
b7e0e24
(MODULES-9177) Fix version validation regex
eimlav May 28, 2019
519eb5d
Merge pull request #489 from eimlav/modules-9177
sheenaajay May 29, 2019
76f38e8
(MODULES-9193) Revert part of MODULES-9177
eimlav May 30, 2019
6fee44d
Merge pull request #490 from eimlav/modules-9193
sheenaajay May 30, 2019
70c1421
(FM-8151) Add Windows Server 2019 support
eimlav Jun 5, 2019
9cac9f5
Additional changes to account for incompatible image
eimlav Jun 7, 2019
7bf3ea6
Modify tests to fix permissions issues
eimlav Jun 11, 2019
efd5759
Merge pull request #493 from eimlav/fm-8151
sheenaajay Jun 12, 2019
763fd4c
fix typo
thde Jun 13, 2019
a213541
Merge pull request #496 from thde/patch-1
florindragos Jun 18, 2019
28265e6
Fix #239 local_user permission denied (#497)
thde Jun 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
18 changes: 18 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,21 @@
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/appveyor.yml
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
1 change: 1 addition & 0 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--relative
18 changes: 7 additions & 11 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
require: rubocop-rspec
require:
- rubocop-rspec
- rubocop-i18n
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.3'
TargetRubyVersion: '2.1'
Include:
- "./**/*.rb"
Exclude:
Expand All @@ -12,18 +14,15 @@ AllCops:
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- spec/classes/**/*
- spec/acceptance/**/*
- spec/acceptance_swarm/**/*
- spec/defines/**/*
- spec/unit/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
GetText:
Enabled: false
GetText/DecorateString:
Description: We don't want to decorate test output.
Exclude:
Expand Down Expand Up @@ -75,6 +74,7 @@ Style/TrailingCommaInLiteral:
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
inherit_from: ".rubocop_todo.yml"
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Expand Down Expand Up @@ -125,7 +125,3 @@ Style/IfUnlessModifier:
Enabled: false
Style/SymbolProc:
Enabled: false
Style/SafeNavigation:
Description: Does not work with all ruby versions
Exclude:
- lib/puppet/parser/functions/docker_exec_flags.rb
88 changes: 33 additions & 55 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,43 @@
---
.gitlab-ci.yml:
delete: true

.rubocop.yml:
default_configs:
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec

.travis.yml:
bundler_args: ' '
docker_sets:
- set: docker/debian-8
- set: docker/ubuntu-14.04
docker_defaults:
bundler_args: ""
secure: ""
branches:
- release
remove_includes:
-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
rvm: 2.1.9
includes:
-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
rvm: 2.3.3

appveyor.yml:
delete: true

Gemfile:
required:
optional:
':development':
- gem: 'facter'
version: '>= 1.7.0'
- gem: "rspec-retry"
- gem: 'thor'
- gem: 'semantic_puppet'
- gem: 'beaker-rspec'
from_env: BEAKER_RSPEC_VERSION
- gem: "beaker"
version: '~> 2.0'
from_env: BEAKER_VERSION
- 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')"
required:
':system_tests':
- gem: 'puppet-module-posix-system-r#{minor_version}'
platforms: ruby
- gem: 'rspec'
version: '~> 2.0'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('1.8.7') && Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9')"
- gem: 'rake'
version: '~> 10.0'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('1.8.7') && Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9')"

Rakefile:
requires:
- puppet-lint/tasks/puppet-lint
- puppetlabs_spec_helper/rake_tasks
- metadata-json-lint/rake_task
- rspec_junit_formatter
- puppet_pot_generator/rake_tasks

.rubocop.yml:
include_todos:
inherit_from: '.rubocop_todo.yml'
profiles:
strict:
configs:
AllCops:
TargetRubyVersion: '2.2'
Exclude:
- spec/defines/*
- spec/classes/*
- spec/*
- spec/acceptance/*
- rakelib/*

- gem: 'puppet-module-win-system-r#{minor_version}'
platforms:
- mswin
- mingw
- x64_mingw
- gem: 'rspec-retry'

.gitlab-ci.yml:
delete: true

appveyor.yml:
delete: true
spec/spec_helper.rb:
unmanaged: true
65 changes: 45 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,63 @@
---
sudo: false
dist: trusty
language: ruby
cache: bundler
before_install:
- bundle -v
- rm -f Gemfile.lock
- gem update --system
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
- 'bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- 'bundle exec rake parallel_spec'
bundler_args:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.4.4
env:
- PUPPET_GEM_VERSION="~> 4.0"
- PUPPET_GEM_VERSION="~> 5.0"
- PUPPET_GEM_VERSION="~> 6.0"
- 2.5.3
stages:
- static
- spec
- acceptance
-
if: tag =~ ^v\d
name: deploy
matrix:
fast_finish: true
include:
-
bundler_args:
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/debian-8 BEAKER_TESTMODE=apply
rvm: 2.5.3
script: bundle exec rake beaker
services: docker
stage: acceptance
sudo: required
-
bundler_args:
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-14.04 BEAKER_TESTMODE=apply
rvm: 2.5.3
script: bundle exec rake beaker
services: docker
stage: acceptance
sudo: required
-
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
stage: static
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.5
stage: spec
-
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.3
stage: spec
-
env: DEPLOY_TO_FORGE=yes
stage: deploy
branches:
only:
- master
- /^v\d/
- release
notifications:
email: false
deploy:
provider: puppetforge
user: puppet
password:
secure: ""
on:
tags: true
all_branches: true
condition: "$DEPLOY_TO_FORGE = yes"
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# 3.5.0

Changes range for dependent modules

Use multiple networks in docker::run and docker::services

Fixes quotes with docker::services command

Publish multiple ports to docker::services

A full list of issues and PRs associated with this release can be found [here](https://github.com/puppetlabs/puppetlabs-docker/milestone/7?closed=1)

# 3.4.0

Introduces docker_stack type and provider

Fixes frozen string in docker swarm token task

Acceptance testing updates

Allow use of newer translate module

A full list of issues and PRs associated with this release can be found [here](https://github.com/puppetlabs/puppetlabs-docker/milestone/6?closed=1)


# Version 3.3.0

Pins apt repo to 500 to ensure packages are updated
Expand Down
29 changes: 14 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,22 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = ruby_version_segments[0..1].join('.')

group :development do
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
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 "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]
gem "puppet-module-win-dev-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
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::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}", '~> 0.3', require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
end

group :system_tests do
gem "beaker-puppet_install_helper", :require => false
gem "beaker-rspec"
gem "beaker", "~> 3.13"
gem "rspec"
gem "rspec-retry"
gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-win-system-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "rspec-retry", require: false
end

puppet_version = ENV['PUPPET_GEM_VERSION']
Expand Down
Loading