Révision 65ed81ba
partial modulesync 9.1.0
This excludes the Gemfile changes
.github/CONTRIBUTING.md | ||
---|---|---|
245 | 245 |
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker |
246 | 246 |
``` |
247 | 247 |
|
248 |
or |
|
249 |
|
|
250 |
```sh |
|
251 |
BEAKER_PUPPET_COLLECTION=none BEAKER_setfile=archlinux-64 bundle exec rake beaker |
|
252 |
``` |
|
253 |
|
|
254 |
This latter example will use the distribution's own version of Puppet. |
|
255 |
|
|
248 | 256 |
You can replace the string `debian11` with any common operating system. |
249 | 257 |
The following strings are known to work: |
250 | 258 |
|
251 | 259 |
* ubuntu2004 |
252 | 260 |
* ubuntu2204 |
253 | 261 |
* debian11 |
254 |
* centos7 |
|
255 |
* centos8 |
|
262 |
* debian12 |
|
256 | 263 |
* centos9 |
264 |
* archlinux |
|
257 | 265 |
* almalinux8 |
258 | 266 |
* almalinux9 |
259 | 267 |
* fedora36 |
.github/labeler.yml | ||
---|---|---|
1 | 1 |
--- |
2 |
# Managed by modulesync - DO NOT EDIT |
|
3 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
|
4 |
|
|
2 | 5 |
skip-changelog: |
3 | 6 |
- head-branch: ['^release-*', 'release'] |
.github/release.yml | ||
---|---|---|
1 |
--- |
|
2 |
# Managed by modulesync - DO NOT EDIT |
|
3 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
|
4 |
|
|
5 |
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes |
|
6 |
|
|
7 |
changelog: |
|
8 |
exclude: |
|
9 |
labels: |
|
10 |
- duplicate |
|
11 |
- invalid |
|
12 |
- modulesync |
|
13 |
- question |
|
14 |
- skip-changelog |
|
15 |
- wont-fix |
|
16 |
- wontfix |
|
17 |
|
|
18 |
categories: |
|
19 |
- title: Breaking Changes 🛠 |
|
20 |
labels: |
|
21 |
- backwards-incompatible |
|
22 |
|
|
23 |
- title: New Features 🎉 |
|
24 |
labels: |
|
25 |
- enhancement |
|
26 |
|
|
27 |
- title: Bug Fixes 🐛 |
|
28 |
labels: |
|
29 |
- bug |
|
30 |
|
|
31 |
- title: Documentation Updates 📚 |
|
32 |
labels: |
|
33 |
- documentation |
|
34 |
- docs |
|
35 |
|
|
36 |
- title: Dependency Updates ⬆️ |
|
37 |
labels: |
|
38 |
- dependencies |
|
39 |
|
|
40 |
- title: Other Changes |
|
41 |
labels: |
|
42 |
- "*" |
.github/workflows/labeler.yml | ||
---|---|---|
1 |
--- |
|
2 |
# Managed by modulesync - DO NOT EDIT |
|
3 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
|
4 |
|
|
5 |
name: "Pull Request Labeler" |
|
6 |
|
|
7 |
on: |
|
8 |
pull_request_target: {} |
|
9 |
|
|
10 |
jobs: |
|
11 |
labeler: |
|
12 |
permissions: |
|
13 |
contents: read |
|
14 |
pull-requests: write |
|
15 |
runs-on: ubuntu-latest |
|
16 |
steps: |
|
17 |
- uses: actions/labeler@v5 |
.github/workflows/release.yml | ||
---|---|---|
20 | 20 |
# https://docs.github.com/en/actions/security-guides/encrypted-secrets |
21 | 21 |
username: ${{ secrets.PUPPET_FORGE_USERNAME }} |
22 | 22 |
api_key: ${{ secrets.PUPPET_FORGE_API_KEY }} |
23 |
|
|
24 |
create-github-release: |
|
25 |
name: Create GitHub Release |
|
26 |
runs-on: ubuntu-latest |
|
27 |
steps: |
|
28 |
- name: Create GitHub release |
|
29 |
uses: voxpupuli/gha-create-a-github-release@v1 |
.msync.yml | ||
---|---|---|
2 | 2 |
# Managed by modulesync - DO NOT EDIT |
3 | 3 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
4 | 4 |
|
5 |
modulesync_config_version: '9.0.0' |
|
5 |
modulesync_config_version: '9.1.0' |
.pmtignore | ||
---|---|---|
20 | 20 |
/.github/ |
21 | 21 |
/.librarian/ |
22 | 22 |
/Puppetfile.lock |
23 |
/Puppetfile |
|
23 | 24 |
*.iml |
24 | 25 |
/.editorconfig |
25 | 26 |
/.fixtures.yml |
.puppet-lint.rc | ||
---|---|---|
1 |
# Managed by modulesync - DO NOT EDIT |
|
2 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
|
3 |
|
|
1 | 4 |
--fail-on-warnings |
spec/spec_helper.rb | ||
---|---|---|
3 | 3 |
# Managed by modulesync - DO NOT EDIT |
4 | 4 |
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ |
5 | 5 |
|
6 |
RSpec.configure do |c| |
|
7 |
c.before do |
|
8 |
# select the systemd service provider even when on docker |
|
9 |
# https://tickets.puppetlabs.com/browse/PUP-11167 |
|
10 |
if defined?(facts) && %w[Archlinux RedHat].include?(facts[:os]['family']) |
|
11 |
allow(Puppet::FileSystem).to receive(:exist?).and_call_original |
|
12 |
allow(Puppet::FileSystem).to receive(:exist?).with('/proc/1/comm').and_return(true) |
|
13 |
allow(Puppet::FileSystem).to receive(:read).and_call_original |
|
14 |
allow(Puppet::FileSystem).to receive(:read).with('/proc/1/comm').and_return(['systemd']) |
|
15 |
end |
|
16 |
end |
|
17 |
end |
|
18 |
|
|
19 | 6 |
# puppetlabs_spec_helper will set up coverage if the env variable is set. |
20 | 7 |
# We want to do this if lib exists and it hasn't been explicitly set. |
21 | 8 |
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../lib', __dir__)) |
22 | 9 |
|
23 | 10 |
require 'voxpupuli/test/spec_helper' |
24 | 11 |
|
12 |
RSpec.configure do |c| |
|
13 |
c.facterdb_string_keys = false |
|
14 |
end |
|
15 |
|
|
16 |
add_mocked_facts! |
|
17 |
|
|
25 | 18 |
if File.exist?(File.join(__dir__, 'default_module_facts.yml')) |
26 | 19 |
facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml'))) |
27 | 20 |
facts&.each do |name, value| |
28 | 21 |
add_custom_fact name.to_sym, value |
29 | 22 |
end |
30 | 23 |
end |
24 |
Dir['./spec/support/spec/**/*.rb'].sort.each { |f| require f } |
Formats disponibles : Unified diff