Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
.github/workflows/ci.yml:
pidfile_workaround: true
Gemfile:
extra:
- gem: hocon
7 changes: 3 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ gem 'puppet', ENV.fetch('PUPPET_GEM_VERSION', '>= 8'), groups: ['development', '
gem 'rake'

gem 'kafo_module_lint', {"groups"=>["test"]}
gem 'puppet-lint-spaceship_operator_without_tag-check', '~> 1.0', {"groups"=>["test"]}
gem 'voxpupuli-test', '~> 9.0', {"groups"=>["test"]}
gem 'puppet-lint-spaceship_operator_without_tag-check', '~> 2.0', {"groups"=>["test"]}
gem 'voxpupuli-test', '~> 14.0', {"groups"=>["test"]}
Comment thread
bastelfreak marked this conversation as resolved.
gem 'github_changelog_generator', '>= 1.15.0', {"groups"=>["development"]}
gem 'puppet_metadata', '~> 5.3'
gem 'puppet_metadata', '~> 6.2'
gem 'puppet-blacksmith', '>= 6.0.0', {"groups"=>["development"]}
gem 'voxpupuli-acceptance', '~> 4.1', {"groups"=>["system_tests"]}
gem 'puppetlabs_spec_helper', {"groups"=>["system_tests"]}
gem 'hocon'

# vim:ft=ruby
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ begin
rescue LoadError
else
# We use fixtures in our modules, which is not the default
task :beaker => 'spec_prep'
task :beaker => 'fixtures:prep'
end

# blacksmith isn't always present, e.g. on Travis with --without development
Expand Down
2 changes: 1 addition & 1 deletion manifests/agent/service/cron.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class puppet::agent::service::cron (
Boolean $enabled = false,
Optional[Integer[0,23]] $hour = undef,
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $minute = undef,
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $minute = undef,
) {
unless $puppet::runmode == 'unmanaged' or 'cron' in $puppet::unavailable_runmodes {
if $enabled {
Expand Down
2 changes: 1 addition & 1 deletion manifests/agent/service/systemd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class puppet::agent::service::systemd (
Boolean $enabled = false,
Optional[Integer[0,23]] $hour = undef,
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $minute = undef,
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $minute = undef,
Optional[String[1]] $timezone = undef,
) {
unless $puppet::runmode == 'unmanaged' or 'systemd.timer' in $puppet::unavailable_runmodes {
Expand Down
12 changes: 6 additions & 6 deletions manifests/config/entry.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
# note the spaces at he end of the 'order' parameters,
# they make sure that '1_main ' is ordered before '1_main_*'
ensure_resource('concat::fragment', "puppet.conf_${section}", {
target => "${puppet::dir}/puppet.conf",
content => "\n[${section}]",
order => "${sectionorder}_${section} ",
target => "${puppet::dir}/puppet.conf",
content => "\n[${section}]",
order => "${sectionorder}_${section} ",
})
ensure_resource('concat::fragment', "puppet.conf_${section}_end", {
target => "${puppet::dir}/puppet.conf",
content => "\n",
order => "${sectionorder}_${section}~end",
target => "${puppet::dir}/puppet.conf",
content => "\n",
order => "${sectionorder}_${section}~end",
})

# this adds the '$key =' for the first value,
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
Boolean $usecacheonfailure = $puppet::params::usecacheonfailure,
Enum['cron', 'service', 'systemd.timer', 'none', 'unmanaged'] $runmode = $puppet::params::runmode,
Optional[Integer[0,23]] $run_hour = undef,
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $run_minute = undef,
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $run_minute = undef,
Optional[String[1]] $run_timezone = undef,
Array[Enum['cron', 'service', 'systemd.timer', 'none']] $unavailable_runmodes = $puppet::params::unavailable_runmodes,
Optional[String] $cron_cmd = $puppet::params::cron_cmd,
Expand Down
8 changes: 4 additions & 4 deletions types/facter/config.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @summary Facter configuration type
type Puppet::Facter::Config = Struct[{
Optional['facts'] => Puppet::Facter::Config::Facts,
Optional['global'] => Puppet::Facter::Config::Global,
Optional['cli'] => Puppet::Facter::Config::CLI,
Optional['fact-groups'] => Hash[String[1], Array[String[1]]],
Optional['facts'] => Puppet::Facter::Config::Facts,
Optional['global'] => Puppet::Facter::Config::Global,
Optional['cli'] => Puppet::Facter::Config::CLI,
Optional['fact-groups'] => Hash[String[1], Array[String[1]]],
}]
8 changes: 4 additions & 4 deletions types/facter/config/cli.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
# @note All these settings are ignored when called from the Ruby API (by Puppet/OpenVox)
type Puppet::Facter::Config::CLI = Struct[{
Optional['debug'] => Boolean,
Optional['trace'] => Boolean,
Optional['verbose'] => Boolean,
Optional['log-level'] => Enum['none','trace','debug','info','warn','error','fatal'],
Optional['debug'] => Boolean,
Optional['trace'] => Boolean,
Optional['verbose'] => Boolean,
Optional['log-level'] => Enum['none','trace','debug','info','warn','error','fatal'],
}]
4 changes: 2 additions & 2 deletions types/facter/config/facts.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# @summary Facter `facts` configuration type
type Puppet::Facter::Config::Facts = Struct[{
Optional['blocklist'] => Array[String[1]],
Optional['ttls'] => Array[Hash[String[1], Puppet::Facter::Config::TTL]],
Optional['blocklist'] => Array[String[1]],
Optional['ttls'] => Array[Hash[String[1], Puppet::Facter::Config::TTL]],
}]
10 changes: 5 additions & 5 deletions types/facter/config/global.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# * `no-custom-facts`
# * `no-ruby`
type Puppet::Facter::Config::Global = Struct[{
Optional['external-dir'] => Array[Stdlib::Absolutepath],
Optional['custom-dir'] => Array[Stdlib::Absolutepath],
Optional['no-external-facts'] => Boolean,
Optional['no-custom-facts'] => Boolean[false], # Cannot be true
Optional['no-ruby'] => Boolean[false], # Cannot be true
Optional['external-dir'] => Array[Stdlib::Absolutepath],
Optional['custom-dir'] => Array[Stdlib::Absolutepath],
Optional['no-external-facts'] => Boolean,
Optional['no-custom-facts'] => Boolean[false], # Cannot be true
Optional['no-ruby'] => Boolean[false], # Cannot be true
}]
Loading