33 changes: 24 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
Gemfile.lock
/spec/fixtures
coverage/
.bundle/
vendor/
tooling/*.yaml
log/
.vagrant/

.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
24 changes: 24 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
50 changes: 38 additions & 12 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
---
require:
- rubocop-rspec
- rubocop-i18n
require: rubocop-rspec
AllCops:
TargetRubyVersion: '2.1'
DisplayCopNames: true
TargetRubyVersion: '2.2'
Include:
- "./**/*.rb"
Exclude:
- bin/*
- ".vendor/**/*"
- Gemfile
- Rakefile
- "**/Gemfile"
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
- tooling/kube_tool/*
- tooling/*
- spec/defines/*
- spec/classes/*
- spec/*
- spec/acceptance/*
- rakelib/*
inherit_from: ".rubocop_todo.yml"
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
Enabled: false
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
Expand Down Expand Up @@ -46,7 +55,6 @@ Style/FormatStringToken:
Style/Lambda:
Description: Prefer the keyword for easier discoverability.
EnforcedStyle: literal
Enabled: true
Style/RegexpLiteral:
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
EnforcedStyle: percent_r
Expand All @@ -59,21 +67,35 @@ Style/TrailingCommaInArguments:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
Description: Prefer always trailing comma on multiline literals. This makes diffs,
and re-ordering nicer.
EnforcedStyleForMultiline: comma
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Exclude:
- lib/puppet/parser/functions/**/*
- spec/**/*
Style/WordArray:
EnforcedStyle: brackets
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Layout/EndOfLine:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Expand All @@ -88,13 +110,17 @@ Metrics/PerceivedComplexity:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MessageExpectation:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/SymbolProc:
Enabled: false
Style/HashSyntax:
UseHashRocketsWithSymbolValues: true
2 changes: 2 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Style/HashSyntax:
UseHashRocketsWithSymbolValues: true
67 changes: 67 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
.travis.yml:
bundler_args: ' '
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

Gemfile:
required:
':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: '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:
- tooling/kube_tool/*
- tooling/*
- spec/defines/*
- spec/classes/*
- spec/*
- spec/acceptance/*
- rakelib/*


.gitlab-ci.yml:
delete: true

appveyor.yml:
delete: true
49 changes: 39 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
---
language: ruby
bundler_args: --without development system_tests
before_install: rm Gemfile.lock || true
sudo: false
rvm:
- 2.3.3
dist: trusty
language: ruby
cache: bundler
before_install:
- bundle -v
- rm -f Gemfile.lock
- gem update --system
- gem --version
- bundle -v
script:
- bundle exec rake test
- bundle exec rubocop lib
- bundle exec puppet-lint --no-autoloader_layout-check manifests
- 'bundle exec rake $CHECK'
bundler_args:
rvm:
- 2.4.4
env:
- PUPPET_GEM_VERSION="~> 4.0"
- PUPPET_GEM_VERSION="~> 5.0"
global:
- BEAKER_PUPPET_COLLECTION=puppet5 PUPPET_GEM_VERSION="~> 5.0"
matrix:
fast_finish: true
include:
-
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
-
env: CHECK=parallel_spec
-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
rvm: 2.3.3
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"
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--markup markdown
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 3.0.0

Exposes a significant number of new params to allow the use of internal repos in restristed or airgapped systems.

A full list of PRs and issues closed can be found [here](https://github.com/puppetlabs/puppetlabs-kubernetes/milestone/2?closed=1)

# Version 2.0.2

Fixes issue with cgroup mismatch on docker PR #109
Expand Down
Loading