Skip to content

Commit 484fe96

Browse files
Kevin ReeuwijkMarc McKinley
Kevin Reeuwijk
and
Marc McKinley
authored
Version 0.5.0 - Native Windows Update support (#19)
* win_update feature * PDK 2.0.0 update * linting * don't fail on missing KB * add errorcodes lookup * add install_kb task * state fact, support security-only patching * Log and docs changes for 0.5.0 * bump version to 0.5.0 Co-authored-by: Marc McKinley <[email protected]>
1 parent 003801d commit 484fe96

31 files changed

+9181
-87
lines changed

.devcontainer/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM puppet/pdk:latest
2+
3+
# [Optional] Uncomment this section to install additional packages.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>
6+

.devcontainer/devcontainer.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
3+
{
4+
"name": "Puppet Development Kit (Community)",
5+
"dockerFile": "Dockerfile",
6+
7+
// Set *default* container specific settings.json values on container create.
8+
"settings": {
9+
"terminal.integrated.shell.linux": "/bin/bash"
10+
},
11+
12+
// Add the IDs of extensions you want installed when the container is created.
13+
"extensions": [
14+
"puppet.puppet-vscode",
15+
"rebornix.Ruby"
16+
]
17+
18+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19+
// "forwardPorts": [],
20+
21+
// Use 'postCreateCommand' to run commands after the container is created.
22+
// "postCreateCommand": "pdk --version",
23+
}

.gitlab-ci.yml

+14-21
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ stages:
33
- syntax
44
- unit
55

6-
cache:
7-
paths:
8-
- vendor/bundle
6+
default:
7+
cache:
8+
paths:
9+
- vendor/bundle
910

10-
before_script:
11-
- bundle -v
12-
- rm Gemfile.lock || true
13-
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
14-
- "# Set `rubygems_version` in the .sync.yml to set a value"
15-
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
16-
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
17-
- gem --version
18-
- bundle -v
19-
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
11+
before_script: &before_script
12+
- bundle -v
13+
- rm Gemfile.lock || true
14+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
15+
- "# Set `rubygems_version` in the .sync.yml to set a value"
16+
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
17+
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
18+
- gem --version
19+
- bundle -v
20+
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
2021

2122
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
2223
stage: syntax
@@ -34,11 +35,3 @@ parallel_spec-Ruby 2.5.7-Puppet ~> 6:
3435
variables:
3536
PUPPET_GEM_VERSION: '~> 6'
3637

37-
parallel_spec-Ruby 2.4.5-Puppet ~> 5:
38-
stage: unit
39-
image: ruby:2.4.5
40-
script:
41-
- bundle exec rake parallel_spec
42-
variables:
43-
PUPPET_GEM_VERSION: '~> 5'
44-

.pdkignore

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
/.gitignore
3333
/.gitlab-ci.yml
3434
/.pdkignore
35+
/.puppet-lint.rc
3536
/Rakefile
3637
/rakelib/
3738
/.rspec
@@ -40,3 +41,4 @@
4041
/.yardopts
4142
/spec/
4243
/.vscode/
44+
/.sync.yml

0 commit comments

Comments
 (0)