mirror of
https://github.com/ardichoke/puppet-klipper.git
synced 2026-05-11 02:25:37 -04:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8441cc714 | |||
| a6d3772d21 | |||
| 6dcad0e85a | |||
| 8852c17796 | |||
| 74a014a03c | |||
| 93b56ebaa0 | |||
| cf8f412f75 | |||
| 378e808599 |
48
.github/workflows/puppet-lint.yml
vendored
Normal file
48
.github/workflows/puppet-lint.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
# Puppet Lint tests Puppet code against the recommended Puppet language style guide.
|
||||
# https://puppet.com/docs/puppet/7/style_guide.html
|
||||
# Puppet Lint validates only code style; it does not validate syntax.
|
||||
# To test syntax, use Puppet's puppet parser validate command.
|
||||
# More details at https://github.com/puppetlabs/puppet-lint/
|
||||
|
||||
name: puppet-lint
|
||||
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
puppet-lint:
|
||||
name: Run puppet-lint scanning
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read # for checkout to fetch code
|
||||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Ruby, JRuby and TruffleRuby
|
||||
uses: ruby/setup-ruby@v1.171.0
|
||||
with:
|
||||
ruby-version: 3.3
|
||||
bundler-cache: true
|
||||
|
||||
- name: Install puppet-lint
|
||||
run: gem install puppet-lint
|
||||
|
||||
- name: Run puppet-lint
|
||||
run: puppet-lint . --sarif > puppet-lint-results.sarif
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload analysis results to GitHub
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
with:
|
||||
sarif_file: puppet-lint-results.sarif
|
||||
wait-for-processing: true
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -16,7 +16,7 @@
|
||||
/log/
|
||||
/pkg/
|
||||
/spec/fixtures/manifests/
|
||||
/spec/fixtures/modules/
|
||||
/spec/fixtures/modules/*
|
||||
/tmp/
|
||||
/vendor/
|
||||
/convert_report.txt
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/log/
|
||||
/pkg/
|
||||
/spec/fixtures/manifests/
|
||||
/spec/fixtures/modules/
|
||||
/spec/fixtures/modules/*
|
||||
/tmp/
|
||||
/vendor/
|
||||
/convert_report.txt
|
||||
@@ -26,20 +26,17 @@
|
||||
.envrc
|
||||
/inventory.yaml
|
||||
/spec/fixtures/litmus_inventory.yaml
|
||||
/appveyor.yml
|
||||
/.editorconfig
|
||||
/.fixtures.yml
|
||||
/Gemfile
|
||||
/.gitattributes
|
||||
/.github/
|
||||
/.gitignore
|
||||
/.gitlab-ci.yml
|
||||
/.pdkignore
|
||||
/.puppet-lint.rc
|
||||
/Rakefile
|
||||
/rakelib/
|
||||
/.rspec
|
||||
/.rubocop.yml
|
||||
/.travis.yml
|
||||
/..yml
|
||||
/.yardopts
|
||||
/spec/
|
||||
/.vscode/
|
||||
|
||||
216
.rubocop.yml
216
.rubocop.yml
@@ -4,7 +4,7 @@ require:
|
||||
- rubocop-rspec
|
||||
AllCops:
|
||||
DisplayCopNames: true
|
||||
TargetRubyVersion: '2.5'
|
||||
TargetRubyVersion: '2.6'
|
||||
Include:
|
||||
- "**/*.rb"
|
||||
Exclude:
|
||||
@@ -111,8 +111,14 @@ Style/MethodCalledOnDoEndBlock:
|
||||
Enabled: true
|
||||
Style/StringMethods:
|
||||
Enabled: true
|
||||
Bundler/GemFilename:
|
||||
Enabled: false
|
||||
Bundler/InsecureProtocolSource:
|
||||
Enabled: false
|
||||
Capybara/CurrentPathExpectation:
|
||||
Enabled: false
|
||||
Capybara/VisibilityMatcher:
|
||||
Enabled: false
|
||||
Gemspec/DuplicatedAssignment:
|
||||
Enabled: false
|
||||
Gemspec/OrderedDependencies:
|
||||
@@ -287,11 +293,9 @@ Performance/UriDefaultParser:
|
||||
Enabled: false
|
||||
RSpec/Be:
|
||||
Enabled: false
|
||||
RSpec/Capybara/CurrentPathExpectation:
|
||||
Enabled: false
|
||||
RSpec/Capybara/FeatureMethods:
|
||||
Enabled: false
|
||||
RSpec/Capybara/VisibilityMatcher:
|
||||
RSpec/ContainExactly:
|
||||
Enabled: false
|
||||
RSpec/ContextMethod:
|
||||
Enabled: false
|
||||
@@ -331,6 +335,8 @@ RSpec/LeakyConstantDeclaration:
|
||||
Enabled: false
|
||||
RSpec/LetBeforeExamples:
|
||||
Enabled: false
|
||||
RSpec/MatchArray:
|
||||
Enabled: false
|
||||
RSpec/MissingExampleGroupArgument:
|
||||
Enabled: false
|
||||
RSpec/MultipleExpectations:
|
||||
@@ -373,8 +379,6 @@ Style/AccessModifierDeclarations:
|
||||
Enabled: false
|
||||
Style/AccessorGrouping:
|
||||
Enabled: false
|
||||
Style/AsciiComments:
|
||||
Enabled: false
|
||||
Style/BisectedAttrAccessor:
|
||||
Enabled: false
|
||||
Style/CaseLikeIf:
|
||||
@@ -485,35 +489,235 @@ Style/TrailingMethodEndStatement:
|
||||
Enabled: false
|
||||
Style/UnpackFirst:
|
||||
Enabled: false
|
||||
Capybara/MatchStyle:
|
||||
Enabled: false
|
||||
Capybara/NegationMatcher:
|
||||
Enabled: false
|
||||
Capybara/SpecificActions:
|
||||
Enabled: false
|
||||
Capybara/SpecificFinders:
|
||||
Enabled: false
|
||||
Capybara/SpecificMatcher:
|
||||
Enabled: false
|
||||
Gemspec/DeprecatedAttributeAssignment:
|
||||
Enabled: false
|
||||
Gemspec/DevelopmentDependencies:
|
||||
Enabled: false
|
||||
Gemspec/RequireMFA:
|
||||
Enabled: false
|
||||
Layout/LineContinuationLeadingSpace:
|
||||
Enabled: false
|
||||
Layout/LineContinuationSpacing:
|
||||
Enabled: false
|
||||
Layout/LineEndStringConcatenationIndentation:
|
||||
Enabled: false
|
||||
Layout/SpaceBeforeBrackets:
|
||||
Enabled: false
|
||||
Lint/AmbiguousAssignment:
|
||||
Enabled: false
|
||||
Lint/AmbiguousOperatorPrecedence:
|
||||
Enabled: false
|
||||
Lint/AmbiguousRange:
|
||||
Enabled: false
|
||||
Lint/ConstantOverwrittenInRescue:
|
||||
Enabled: false
|
||||
Lint/DeprecatedConstants:
|
||||
Enabled: false
|
||||
Lint/DuplicateBranch:
|
||||
Enabled: false
|
||||
Lint/DuplicateMagicComment:
|
||||
Enabled: false
|
||||
Lint/DuplicateRegexpCharacterClassElement:
|
||||
Enabled: false
|
||||
Lint/EmptyBlock:
|
||||
Enabled: false
|
||||
Lint/EmptyClass:
|
||||
Enabled: false
|
||||
Lint/EmptyInPattern:
|
||||
Enabled: false
|
||||
Lint/IncompatibleIoSelectWithFiberScheduler:
|
||||
Enabled: false
|
||||
Lint/LambdaWithoutLiteralBlock:
|
||||
Enabled: false
|
||||
Lint/NoReturnInBeginEndBlocks:
|
||||
Enabled: false
|
||||
Lint/NonAtomicFileOperation:
|
||||
Enabled: false
|
||||
Lint/NumberedParameterAssignment:
|
||||
Enabled: false
|
||||
Lint/OrAssignmentToConstant:
|
||||
Enabled: false
|
||||
Lint/RedundantDirGlobSort:
|
||||
Enabled: false
|
||||
Lint/RefinementImportMethods:
|
||||
Enabled: false
|
||||
Lint/RequireRangeParentheses:
|
||||
Enabled: false
|
||||
Lint/RequireRelativeSelfPath:
|
||||
Enabled: false
|
||||
Lint/SymbolConversion:
|
||||
Enabled: false
|
||||
Lint/ToEnumArguments:
|
||||
Enabled: false
|
||||
Lint/TripleQuotes:
|
||||
Enabled: false
|
||||
Lint/UnexpectedBlockArity:
|
||||
Enabled: false
|
||||
Lint/UnmodifiedReduceAccumulator:
|
||||
Enabled: false
|
||||
Lint/UselessRescue:
|
||||
Enabled: false
|
||||
Lint/UselessRuby2Keywords:
|
||||
Enabled: false
|
||||
Metrics/CollectionLiteralLength:
|
||||
Enabled: false
|
||||
Naming/BlockForwarding:
|
||||
Enabled: false
|
||||
Performance/CollectionLiteralInLoop:
|
||||
Enabled: false
|
||||
Performance/ConcurrentMonotonicTime:
|
||||
Enabled: false
|
||||
Performance/MapCompact:
|
||||
Enabled: false
|
||||
Performance/RedundantEqualityComparisonBlock:
|
||||
Enabled: false
|
||||
Performance/RedundantSplitRegexpArgument:
|
||||
Enabled: false
|
||||
Performance/StringIdentifierArgument:
|
||||
Enabled: false
|
||||
RSpec/BeEq:
|
||||
Enabled: false
|
||||
RSpec/BeNil:
|
||||
Enabled: false
|
||||
RSpec/ChangeByZero:
|
||||
Enabled: false
|
||||
RSpec/ClassCheck:
|
||||
Enabled: false
|
||||
RSpec/DuplicatedMetadata:
|
||||
Enabled: false
|
||||
RSpec/ExcessiveDocstringSpacing:
|
||||
Enabled: false
|
||||
RSpec/FactoryBot/ConsistentParenthesesStyle:
|
||||
Enabled: false
|
||||
RSpec/FactoryBot/FactoryNameStyle:
|
||||
Enabled: false
|
||||
RSpec/FactoryBot/SyntaxMethods:
|
||||
Enabled: false
|
||||
RSpec/IdenticalEqualityAssertion:
|
||||
Enabled: false
|
||||
RSpec/NoExpectationExample:
|
||||
Enabled: false
|
||||
RSpec/PendingWithoutReason:
|
||||
Enabled: false
|
||||
RSpec/Rails/AvoidSetupHook:
|
||||
Enabled: false
|
||||
RSpec/Rails/HaveHttpStatus:
|
||||
Enabled: false
|
||||
RSpec/Rails/InferredSpecType:
|
||||
Enabled: false
|
||||
RSpec/Rails/MinitestAssertions:
|
||||
Enabled: false
|
||||
RSpec/Rails/TravelAround:
|
||||
Enabled: false
|
||||
RSpec/RedundantAround:
|
||||
Enabled: false
|
||||
RSpec/SkipBlockInsideExample:
|
||||
Enabled: false
|
||||
RSpec/SortMetadata:
|
||||
Enabled: false
|
||||
RSpec/SubjectDeclaration:
|
||||
Enabled: false
|
||||
RSpec/VerifiedDoubleReference:
|
||||
Enabled: false
|
||||
Security/CompoundHash:
|
||||
Enabled: false
|
||||
Security/IoMethods:
|
||||
Enabled: false
|
||||
Style/ArgumentsForwarding:
|
||||
Enabled: false
|
||||
Style/ArrayIntersect:
|
||||
Enabled: false
|
||||
Style/CollectionCompact:
|
||||
Enabled: false
|
||||
Style/ComparableClamp:
|
||||
Enabled: false
|
||||
Style/ConcatArrayLiterals:
|
||||
Enabled: false
|
||||
Style/DirEmpty:
|
||||
Enabled: false
|
||||
Style/DocumentDynamicEvalDefinition:
|
||||
Enabled: false
|
||||
Style/EmptyHeredoc:
|
||||
Enabled: false
|
||||
Style/EndlessMethod:
|
||||
Enabled: false
|
||||
Style/EnvHome:
|
||||
Enabled: false
|
||||
Style/FetchEnvVar:
|
||||
Enabled: false
|
||||
Style/FileEmpty:
|
||||
Enabled: false
|
||||
Style/FileRead:
|
||||
Enabled: false
|
||||
Style/FileWrite:
|
||||
Enabled: false
|
||||
Style/HashConversion:
|
||||
Enabled: false
|
||||
Style/HashExcept:
|
||||
Enabled: false
|
||||
Style/IfWithBooleanLiteralBranches:
|
||||
Enabled: false
|
||||
Style/InPatternThen:
|
||||
Enabled: false
|
||||
Style/MagicCommentFormat:
|
||||
Enabled: false
|
||||
Style/MapCompactWithConditionalBlock:
|
||||
Enabled: false
|
||||
Style/MapToHash:
|
||||
Enabled: false
|
||||
Style/MapToSet:
|
||||
Enabled: false
|
||||
Style/MinMaxComparison:
|
||||
Enabled: false
|
||||
Style/MultilineInPatternThen:
|
||||
Enabled: false
|
||||
Style/NegatedIfElseCondition:
|
||||
Enabled: false
|
||||
Style/NestedFileDirname:
|
||||
Enabled: false
|
||||
Style/NilLambda:
|
||||
Enabled: false
|
||||
Style/NumberedParameters:
|
||||
Enabled: false
|
||||
Style/NumberedParametersLimit:
|
||||
Enabled: false
|
||||
Style/ObjectThen:
|
||||
Enabled: false
|
||||
Style/OpenStructUse:
|
||||
Enabled: false
|
||||
Style/OperatorMethodCall:
|
||||
Enabled: false
|
||||
Style/QuotedSymbols:
|
||||
Enabled: false
|
||||
Style/RedundantArgument:
|
||||
Enabled: false
|
||||
Style/RedundantConstantBase:
|
||||
Enabled: false
|
||||
Style/RedundantDoubleSplatHashBraces:
|
||||
Enabled: false
|
||||
Style/RedundantEach:
|
||||
Enabled: false
|
||||
Style/RedundantHeredocDelimiterQuotes:
|
||||
Enabled: false
|
||||
Style/RedundantInitialize:
|
||||
Enabled: false
|
||||
Style/RedundantSelfAssignmentBranch:
|
||||
Enabled: false
|
||||
Style/RedundantStringEscape:
|
||||
Enabled: false
|
||||
Style/SelectByRegexp:
|
||||
Enabled: false
|
||||
Style/StringChars:
|
||||
Enabled: false
|
||||
Style/SwapValues:
|
||||
Enabled: false
|
||||
|
||||
41
Gemfile
41
Gemfile
@@ -13,22 +13,37 @@ def location_for(place_or_version, fake_version = nil)
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
|
||||
minor_version = ruby_version_segments[0..1].join('.')
|
||||
|
||||
group :development do
|
||||
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 2.8.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "puppet-module-posix-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
|
||||
gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
|
||||
gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
|
||||
gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
|
||||
gem "voxpupuli-puppet-lint-plugins", '>= 3.0', require: false
|
||||
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.5.1', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.6.1', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.2.0', '< 4.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "racc", '~> 1.4.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
|
||||
gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false
|
||||
gem "facterdb", '~> 1.18', require: false
|
||||
gem "metadata-json-lint", '~> 3.0', require: false
|
||||
gem "puppetlabs_spec_helper", '~> 6.0', require: false
|
||||
gem "rspec-puppet-facts", '~> 2.0', require: false
|
||||
gem "codecov", '~> 0.2', require: false
|
||||
gem "dependency_checker", '~> 1.0.0', require: false
|
||||
gem "parallel_tests", '= 3.12.1', require: false
|
||||
gem "pry", '~> 0.10', require: false
|
||||
gem "simplecov-console", '~> 0.5', require: false
|
||||
gem "puppet-debugger", '~> 1.0', require: false
|
||||
gem "rubocop", '= 1.48.1', require: false
|
||||
gem "rubocop-performance", '= 1.16.0', require: false
|
||||
gem "rubocop-rspec", '= 2.19.0', require: false
|
||||
gem "puppet-strings", '~> 4.0', require: false
|
||||
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
|
||||
end
|
||||
group :system_tests do
|
||||
gem "puppet-module-posix-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
|
||||
gem "puppet-module-win-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
|
||||
gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw]
|
||||
gem "serverspec", '~> 2.41', require: false
|
||||
end
|
||||
group :release_prep do
|
||||
gem "puppet-strings", '~> 4.0', require: false
|
||||
gem "puppetlabs_spec_helper", '~> 6.0', require: false
|
||||
end
|
||||
|
||||
puppet_version = ENV['PUPPET_GEM_VERSION']
|
||||
|
||||
9
Rakefile
9
Rakefile
@@ -1,12 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'bundler'
|
||||
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
|
||||
require 'puppet_litmus/rake_tasks' if Gem.loaded_specs.key? 'puppet_litmus'
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
require 'puppet-syntax/tasks/puppet-syntax'
|
||||
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
|
||||
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
|
||||
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
|
||||
require 'github_changelog_generator/task' if Gem.loaded_specs.key? 'github_changelog_generator'
|
||||
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
|
||||
|
||||
def changelog_user
|
||||
return unless Rake.application.top_level_tasks.include? "changelog"
|
||||
@@ -44,7 +43,7 @@ end
|
||||
PuppetLint.configuration.send('disable_relative')
|
||||
|
||||
|
||||
if Bundler.rubygems.find_name('github_changelog_generator').any?
|
||||
if Gem.loaded_specs.key? 'github_changelog_generator'
|
||||
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
||||
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
|
||||
config.user = "#{changelog_user}"
|
||||
|
||||
@@ -42,7 +42,7 @@ class klipper::install {
|
||||
user => $klipper::user,
|
||||
}
|
||||
~> exec { 'Install Klipper python modules':
|
||||
command => "${klipper::python_dir}/bin/pip install -r ${klipper::python_dir}/scripts/klippy-requirements.txt",
|
||||
command => "${klipper::python_dir}/bin/pip install -r ${klipper::src_path}/scripts/klippy-requirements.txt",
|
||||
refreshonly => true,
|
||||
subscribe => Vcsrepo[$klipper::src_path],
|
||||
user => $klipper::user,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"name": "ardichoke-klipper",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"author": "Ryan DeShone",
|
||||
"summary": "",
|
||||
"summary": "Install and manage Klipper",
|
||||
"license": "Apache-2.0",
|
||||
"source": "",
|
||||
"source": "https://github.com/ardichoke/puppet-klipper",
|
||||
"issues_url": "https://github.com/ardichoke/puppet-klipper/issues",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "puppetlabs-stdlib",
|
||||
@@ -39,7 +40,7 @@
|
||||
"version_requirement": ">= 6.21.0 < 8.0.0"
|
||||
}
|
||||
],
|
||||
"pdk-version": "2.5.0",
|
||||
"template-url": "pdk-default#2.5.0",
|
||||
"template-ref": "tags/2.5.0-0-g369d483"
|
||||
}
|
||||
"pdk-version": "3.0.1",
|
||||
"template-url": "pdk-default#3.0.1",
|
||||
"template-ref": "tags/3.0.1-0-gd13288a"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
#
|
||||
# Facts specified here will override the values provided by rspec-puppet-facts.
|
||||
---
|
||||
ipaddress: "172.16.254.254"
|
||||
ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
|
||||
networking:
|
||||
ip: "172.16.254.254"
|
||||
ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
|
||||
mac: "AA:AA:AA:AA:AA:AA"
|
||||
is_pe: false
|
||||
macaddress: "AA:AA:AA:AA:AA:AA"
|
||||
|
||||
@@ -25,8 +25,8 @@ default_fact_files.each do |f|
|
||||
next unless File.exist?(f) && File.readable?(f) && File.size?(f)
|
||||
|
||||
begin
|
||||
default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
|
||||
rescue => e
|
||||
default_facts.merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true))
|
||||
rescue StandardError => e
|
||||
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
|
||||
end
|
||||
end
|
||||
@@ -46,6 +46,7 @@ RSpec.configure do |c|
|
||||
end
|
||||
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
|
||||
c.after(:suite) do
|
||||
RSpec::Puppet::Coverage.report!(0)
|
||||
end
|
||||
|
||||
# Filter backtrace noise
|
||||
|
||||
@@ -20,4 +20,5 @@ User=<%= scope['klipper::user'] %>
|
||||
RemainAfterExit=yes
|
||||
ExecStart=<%= scope['klipper::python_dir'] %>/bin/python <%= scope['klipper::src_path'] %>/klippy/klippy.py ${KLIPPER_CONFIG} -I ${KLIPPER_PRINTER} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
RestartSec=10
|
||||
Nice=-5
|
||||
|
||||
Reference in New Issue
Block a user