mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 10:55:00 +01:00
commit
2eaae539d6
12 changed files with 111 additions and 7 deletions
12
.github/CONTRIBUTING.md
vendored
12
.github/CONTRIBUTING.md
vendored
|
@ -245,15 +245,23 @@ with:
|
||||||
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
|
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```sh
|
||||||
|
BEAKER_PUPPET_COLLECTION=none BEAKER_setfile=archlinux-64 bundle exec rake beaker
|
||||||
|
```
|
||||||
|
|
||||||
|
This latter example will use the distribution's own version of Puppet.
|
||||||
|
|
||||||
You can replace the string `debian11` with any common operating system.
|
You can replace the string `debian11` with any common operating system.
|
||||||
The following strings are known to work:
|
The following strings are known to work:
|
||||||
|
|
||||||
* ubuntu2004
|
* ubuntu2004
|
||||||
* ubuntu2204
|
* ubuntu2204
|
||||||
* debian11
|
* debian11
|
||||||
* centos7
|
* debian12
|
||||||
* centos8
|
|
||||||
* centos9
|
* centos9
|
||||||
|
* archlinux
|
||||||
* almalinux8
|
* almalinux8
|
||||||
* almalinux9
|
* almalinux9
|
||||||
* fedora36
|
* fedora36
|
||||||
|
|
3
.github/labeler.yml
vendored
3
.github/labeler.yml
vendored
|
@ -1,3 +1,6 @@
|
||||||
---
|
---
|
||||||
|
# Managed by modulesync - DO NOT EDIT
|
||||||
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
skip-changelog:
|
skip-changelog:
|
||||||
- head-branch: ['^release-*', 'release']
|
- head-branch: ['^release-*', 'release']
|
||||||
|
|
42
.github/release.yml
vendored
Normal file
42
.github/release.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
# Managed by modulesync - DO NOT EDIT
|
||||||
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
|
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
|
||||||
|
|
||||||
|
changelog:
|
||||||
|
exclude:
|
||||||
|
labels:
|
||||||
|
- duplicate
|
||||||
|
- invalid
|
||||||
|
- modulesync
|
||||||
|
- question
|
||||||
|
- skip-changelog
|
||||||
|
- wont-fix
|
||||||
|
- wontfix
|
||||||
|
|
||||||
|
categories:
|
||||||
|
- title: Breaking Changes 🛠
|
||||||
|
labels:
|
||||||
|
- backwards-incompatible
|
||||||
|
|
||||||
|
- title: New Features 🎉
|
||||||
|
labels:
|
||||||
|
- enhancement
|
||||||
|
|
||||||
|
- title: Bug Fixes 🐛
|
||||||
|
labels:
|
||||||
|
- bug
|
||||||
|
|
||||||
|
- title: Documentation Updates 📚
|
||||||
|
labels:
|
||||||
|
- documentation
|
||||||
|
- docs
|
||||||
|
|
||||||
|
- title: Dependency Updates ⬆️
|
||||||
|
labels:
|
||||||
|
- dependencies
|
||||||
|
|
||||||
|
- title: Other Changes
|
||||||
|
labels:
|
||||||
|
- "*"
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
push:
|
push:
|
||||||
|
@ -18,4 +19,4 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
puppet:
|
puppet:
|
||||||
name: Puppet
|
name: Puppet
|
||||||
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
|
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v3
|
||||||
|
|
18
.github/workflows/labeler.yml
vendored
Normal file
18
.github/workflows/labeler.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
# Managed by modulesync - DO NOT EDIT
|
||||||
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
|
name: "Pull Request Labeler"
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on:
|
||||||
|
pull_request_target: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
labeler:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v5
|
23
.github/workflows/prepare_release.yml
vendored
Normal file
23
.github/workflows/prepare_release.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
# Managed by modulesync - DO NOT EDIT
|
||||||
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
|
name: 'Prepare Release'
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'Module version to be released. Must be a valid semver string without leading v. (1.2.3)'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release_prep:
|
||||||
|
uses: 'voxpupuli/gha-puppet/.github/workflows/prepare_release.yml@v3'
|
||||||
|
with:
|
||||||
|
version: ${{ github.event.inputs.version }}
|
||||||
|
allowed_owner: 'voxpupuli'
|
||||||
|
secrets:
|
||||||
|
# Configure secrets here:
|
||||||
|
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
|
||||||
|
github_pat: '${{ secrets.PCCI_PAT_RELEASE_PREP }}'
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
@ -12,7 +13,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v2
|
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v3
|
||||||
with:
|
with:
|
||||||
allowed_owner: 'voxpupuli'
|
allowed_owner: 'voxpupuli'
|
||||||
secrets:
|
secrets:
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
# Managed by modulesync - DO NOT EDIT
|
# Managed by modulesync - DO NOT EDIT
|
||||||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
modulesync_config_version: '9.0.0'
|
modulesync_config_version: '9.4.0'
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
/.github/
|
/.github/
|
||||||
/.librarian/
|
/.librarian/
|
||||||
/Puppetfile.lock
|
/Puppetfile.lock
|
||||||
|
/Puppetfile
|
||||||
*.iml
|
*.iml
|
||||||
/.editorconfig
|
/.editorconfig
|
||||||
/.fixtures.yml
|
/.fixtures.yml
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
|
# Managed by modulesync - DO NOT EDIT
|
||||||
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||||
|
|
||||||
--fail-on-warnings
|
--fail-on-warnings
|
||||||
|
|
4
Gemfile
4
Gemfile
|
@ -4,7 +4,7 @@
|
||||||
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'voxpupuli-test', '~> 8.0', :require => false
|
gem 'voxpupuli-test', '~> 9.0', :require => false
|
||||||
gem 'coveralls', :require => false
|
gem 'coveralls', :require => false
|
||||||
gem 'simplecov-console', :require => false
|
gem 'simplecov-console', :require => false
|
||||||
gem 'puppet_metadata', '~> 4.0', :require => false
|
gem 'puppet_metadata', '~> 4.0', :require => false
|
||||||
|
@ -26,7 +26,7 @@ end
|
||||||
gem 'rake', :require => false
|
gem 'rake', :require => false
|
||||||
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]
|
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]
|
||||||
|
|
||||||
puppetversion = ENV['PUPPET_GEM_VERSION'] || '~> 7.24'
|
puppetversion = ENV['PUPPET_GEM_VERSION'] || [">= 7.24", "< 9"]
|
||||||
gem 'puppet', puppetversion, :require => false, :groups => [:test]
|
gem 'puppet', puppetversion, :require => false, :groups => [:test]
|
||||||
|
|
||||||
# vim: syntax=ruby
|
# vim: syntax=ruby
|
||||||
|
|
|
@ -9,6 +9,10 @@ ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../lib', __dir__))
|
||||||
|
|
||||||
require 'voxpupuli/test/spec_helper'
|
require 'voxpupuli/test/spec_helper'
|
||||||
|
|
||||||
|
RSpec.configure do |c|
|
||||||
|
c.facterdb_string_keys = false
|
||||||
|
end
|
||||||
|
|
||||||
add_mocked_facts!
|
add_mocked_facts!
|
||||||
|
|
||||||
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
|
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue