Showing with 730 additions and 1,377 deletions.
  1. +0 −14 .editorconfig
  2. +9 −2 .fixtures.yml
  3. +11 −39 .github/CONTRIBUTING.md
  4. +12 −17 .github/PULL_REQUEST_TEMPLATE.md
  5. +17 −0 .github/workflows/ci.yml
  6. +27 −0 .github/workflows/labeller.yml
  7. +15 −0 .github/workflows/mend.yml
  8. +16 −0 .github/workflows/nightly.yml
  9. +9 −0 .github/workflows/release.yml
  10. +15 −0 .github/workflows/release_prep.yml
  11. +27 −19 .gitignore
  12. +0 −1 .msync.yml
  13. +0 −64 .overcommit.yml
  14. +43 −0 .pdkignore
  15. +0 −21 .pmtignore
  16. +1 −0 .puppet-lint.rc
  17. +1 −1 .rspec
  18. +0 −1 .rspec_parallel
  19. +25 −542 .rubocop.yml
  20. +45 −0 .rubocop_todo.yml
  21. +0 −47 .travis.yml
  22. +0 −1 .yardopts
  23. +34 −49 CHANGELOG.md
  24. +2 −0 CODEOWNERS
  25. +0 −21 Dockerfile
  26. +60 −68 Gemfile
  27. +1 −1 HISTORY.md
  28. +10 −13 README.md
  29. +86 −0 REFERENCE.md
  30. +73 −67 Rakefile
  31. +45 −65 manifests/init.pp
  32. +23 −21 metadata.json
  33. +2 −0 pdk.yaml
  34. +0 −13 spec/acceptance/nodesets/archlinux-2-x64.yml
  35. +0 −31 spec/acceptance/nodesets/ec2/amazonlinux-2016091.yml
  36. +0 −34 spec/acceptance/nodesets/ec2/image_templates.yaml
  37. +0 −29 spec/acceptance/nodesets/ec2/rhel-73-x64.yml
  38. +0 −29 spec/acceptance/nodesets/ec2/sles-12sp2-x64.yml
  39. +0 −29 spec/acceptance/nodesets/ec2/ubuntu-1604-x64.yml
  40. +0 −29 spec/acceptance/nodesets/ec2/windows-2016-base-x64.yml
  41. +25 −0 spec/acceptance/windows_eventlog_spec.rb
  42. +31 −29 spec/defines/windows_eventlog/windows_eventlog_spec.rb
  43. +57 −44 spec/spec_helper.rb
  44. +8 −36 spec/spec_helper_acceptance.rb
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

11 changes: 9 additions & 2 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
fixtures:
repositories:
stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git
registry: git://github.com/puppetlabs/puppetlabs-registry.git
facts: 'https://github.com/puppetlabs/puppetlabs-facts.git'
puppet_agent:
repo: 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
ref: v4.13.0
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
registry: https://github.com/puppetlabs/puppetlabs-registry.git
provision: 'https://github.com/puppetlabs/provision.git'
symlinks:
windows_eventlog: "#{source_dir}"
50 changes: 11 additions & 39 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ By participating in this project you agree to abide by its terms.

* Fork the repo.
* Create a separate branch for your change.
* We only take pull requests with passing tests, and documentation. [travis-ci](http://travis-ci.org) runs the tests for us. You can also execute them locally. This is explained [in a later section](#the-test-matrix).
* We only take pull requests with passing tests, and documentation. [GitHub Actions](https://docs.github.com/en/actions) run the tests for us. You can also execute them locally. This is explained [in a later section](#the-test-matrix).
* Checkout [our docs](https://voxpupuli.org/docs/reviewing_pr/) we use to review a module and the [official styleguide](https://puppet.com/docs/puppet/6.0/style_guide.html). They provide some guidance for new code that might help you before you submit a pull request.
* Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, please add a test.
* Squash your commits down into logical components. Make sure to rebase against our current master.
* Push the branch to your fork and submit a pull request.

Please be prepared to repeat some of these steps as our contributors review your code.

Also consider sending in your profile code that calls this component module as an acceptance test or provide it via an issue. This helps reviewers a lot to test your use case and prevents future regressions!

## Writing proper commits - short version

* Make commits of logical units.
Expand Down Expand Up @@ -122,7 +124,7 @@ If you have Ruby 2.x or want a specific version of Puppet,
you must set an environment variable such as:

```sh
export PUPPET_VERSION="~> 5.5.6"
export PUPPET_GEM_VERSION="~> 6.1.0"
```

You can install all needed gems for spec tests into the modules directory by
Expand Down Expand Up @@ -230,50 +232,20 @@ simple tests against it after applying the module. You can run this
with:

```sh
bundle exec rake acceptance
```

This will run the tests on the module's default nodeset. You can override the
nodeset used, e.g.,

```sh
BEAKER_set=centos-7-x64 bundle exec rake acceptance
```

There are default rake tasks for the various acceptance test modules, e.g.,

```sh
bundle exec rake beaker:centos-7-x64
bundle exec rake beaker:ssh:centos-7-x64
BEAKER_setfile=debian11-64 bundle exec rake beaker
```

If you don't want to have to recreate the virtual machine every time you can
use `BEAKER_destroy=no` and `BEAKER_provision=no`. On the first run you will at
least need `BEAKER_provision` set to yes (the default). The Vagrantfile for the
created virtual machines will be in `.vagrant/beaker_vagrant_files`.

Beaker also supports docker containers. We also use that in our automated CI
pipeline at [travis-ci](http://travis-ci.org). To use that instead of Vagrant:

```sh
PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64{hypervisor=docker} BEAKER_destroy=yes bundle exec rake beaker
```

You can replace the string `debian9` with any common operating system.
You can replace the string `debian10` with any common operating system.
The following strings are known to work:

* ubuntu1604
* ubuntu1804
* debian8
* debian9
* centos6
* ubuntu2004
* debian10
* debian11
* centos7
* centos8

The easiest way to debug in a docker container is to open a shell:

```sh
docker exec -it -u root ${container_id_or_name} bash
```
For more information and tips & tricks, see [voxpupuli-acceptance's documentation](https://github.com/voxpupuli/voxpupuli-acceptance#running-tests).

The source of this file is in our [modulesync_config](https://github.com/voxpupuli/modulesync_config/blob/master/moduleroot/.github/CONTRIBUTING.md.erb)
repository.
29 changes: 12 additions & 17 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<!--
Thank you for contributing to this project!
## Summary
Provide a detailed description of all the changes present in this pull request.

- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/
- Please check that here is no existing issue or PR that addresses your problem.
- Our vulnerabilities reporting process is at https://voxpupuli.org/security/
## Additional Context
Add any additional context about the problem here.
- [ ] Root cause and the steps to reproduce. (If applicable)
- [ ] Thought process behind the implementation.

-->
#### Pull Request (PR) description
<!--
Replace this comment with a description of your pull request.
-->
## Related Issues (if any)
Mention any related issues or pull requests.

#### This Pull Request (PR) fixes the following issues
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
## Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.
- [ ] Manually verified.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "ci"

on:
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
secrets: "inherit"
27 changes: 27 additions & 0 deletions .github/workflows/labeller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Labeller

on:
issues:
types:
- opened
- labeled
- unlabeled
pull_request_target:
types:
- opened
- labeled
- unlabeled

jobs:
label:
runs-on: ubuntu-latest
steps:

- uses: puppetlabs/community-labeller@v1.0.1
name: Label issues or pull requests
with:
label_name: community
label_color: '5319e7'
org_membership: puppetlabs
fail_if_member: 'true'
token: ${{ secrets.IAC_COMMUNITY_LABELER }}
15 changes: 15 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "mend"

on:
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:

mend:
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main"
secrets: "inherit"
16 changes: 16 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "nightly"

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
secrets: "inherit"
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Publish module"

on:
workflow_dispatch:

jobs:
release:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
secrets: "inherit"
15 changes: 15 additions & 0 deletions .github/workflows/release_prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Release Prep"

on:
workflow_dispatch:
inputs:
version:
description: "Module version to be released. Must be a valid semver string. (1.2.3)"
required: true

jobs:
release_prep:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main"
with:
version: "${{ github.event.inputs.version }}"
secrets: "inherit"
46 changes: 27 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
pkg/
Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/manifests/
spec/fixtures/modules/
.vagrant/
.bundle/
.ruby-version
coverage/
log/
.idea/
.dependencies/
.librarian/
Puppetfile.lock
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
.*.sw?
.yardoc/
Guardfile
/.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
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
1 change: 0 additions & 1 deletion .msync.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .overcommit.yml

This file was deleted.

Loading