Skip to content

Commit

Permalink
Merge branch 'master' into add-epp-support
Browse files Browse the repository at this point in the history
  • Loading branch information
patemery committed May 22, 2024
2 parents 1ac01b0 + 4db8dbe commit b92ca5f
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 54 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

name: CI

on: pull_request
on:
pull_request: {}
push:
branches:
- main
- master

concurrency:
group: ${{ github.ref_name }}
Expand All @@ -13,6 +18,4 @@ concurrency:
jobs:
puppet:
name: Puppet
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v1
with:
pidfile_workaround: 'false'
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v1
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v2
with:
allowed_owner: 'saz'
secrets:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
.*.sw?
/.yardoc/
/Guardfile
bolt-debug.log
.rerun.json
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '6.0.0'
modulesync_config_version: '7.5.0'
1 change: 1 addition & 0 deletions .pmtignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
/.yardoc/
/.yardopts
/Dockerfile
/HISTORY.md
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

10 changes: 4 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 6.0', :require => false
gem 'voxpupuli-test', '~> 7.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 3.0', :require => false
gem 'puppet_metadata', '~> 4.0', :require => false
end

group :development do
Expand All @@ -16,13 +16,11 @@ group :development do
end

group :system_tests do
gem 'voxpupuli-acceptance', '~> 2.0', :require => false
gem 'voxpupuli-acceptance', '~> 3.0', :require => false
end

group :release do
gem 'github_changelog_generator', '>= 1.16.1', :require => false
gem 'voxpupuli-release', '~> 3.0', :require => false
gem 'faraday-retry', '~> 2.1', :require => false
gem 'voxpupuli-release', '~> 3.0', :require => false
end

gem 'rake', :require => false
Expand Down
16 changes: 8 additions & 8 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,39 +461,39 @@ The following parameters are available in the `sudo::conf` defined type:

##### <a name="-sudo--conf--ensure"></a>`ensure`

Data type: `Any`
Data type: `Enum['present', 'absent']`

Ensure if present or absent

Default value: `present`

##### <a name="-sudo--conf--priority"></a>`priority`

Data type: `Any`
Data type: `Integer[0]`

Prefix file name with $priority

Default value: `10`

##### <a name="-sudo--conf--content"></a>`content`

Data type: `Any`
Data type: `Optional[Variant[Array[String[1]], String[1]]]`

Content of configuration snippet

Default value: `undef`

##### <a name="-sudo--conf--source"></a>`source`

Data type: `Any`
Data type: `Optional[String[1]]`

Source of configuration snippet

Default value: `undef`

##### <a name="-sudo--conf--template"></a>`template`

Data type: `Any`
Data type: `Optional[String[1]]`

Path of a erb template file or epp template file without parameters

Expand All @@ -509,7 +509,7 @@ Default value: `undef`

##### <a name="-sudo--conf--sudo_config_dir"></a>`sudo_config_dir`

Data type: `Any`
Data type: `Optional[String[1]]`

Where to place configuration snippets.
Only set this, if your platform is not supported or
Expand All @@ -519,15 +519,15 @@ Default value: `undef`

##### <a name="-sudo--conf--sudo_file_name"></a>`sudo_file_name`

Data type: `Any`
Data type: `Optional[String[1]]`

Set a custom file name for the snippet

Default value: `undef`

##### <a name="-sudo--conf--sudo_syntax_path"></a>`sudo_syntax_path`

Data type: `Any`
Data type: `String[1]`

Path to use for executing the sudo syntax check

Expand Down
18 changes: 9 additions & 9 deletions manifests/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
# }
#
define sudo::conf (
$ensure = present,
$priority = 10,
$content = undef,
$source = undef,
$template = undef,
$template_epp = undef,
$sudo_config_dir = undef,
$sudo_file_name = undef,
$sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Enum['present', 'absent'] $ensure = present,
Integer[0] $priority = 10,
Optional[Variant[Array[String[1]], String[1]]] $content = undef,
Optional[String[1]] $source = undef,
Optional[String[1]] $template = undef,
Optional[Struct[{ filename => String, params => Hash }]] $template_epp = undef,
Optional[String[1]] $sudo_config_dir = undef,
Optional[String[1]] $sudo_file_name = undef,
String[1] $sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
) {
include sudo

Expand Down
1 change: 0 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04",
"22.04"
]
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
add_custom_fact name.to_sym, value
end
end
Dir['./spec/support/spec/**/*.rb'].sort.each { |f| require f }

0 comments on commit b92ca5f

Please sign in to comment.