Skip to content

Commit

Permalink
[puppetsync] Support simp-iptables 7.x (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
silug authored Sep 16, 2024
1 parent 3bdfb52 commit d426e27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true

#
# ------------------------------------------------------------------------------
# NOTICE: **This file is maintained with puppetsync**
Expand Down Expand Up @@ -87,7 +86,7 @@ def set_hieradata(hieradata)
# If nothing else...
c.default_facts = {
production: {
# :fqdn => 'production.rspec.test.localdomain',
#:fqdn => 'production.rspec.test.localdomain',
path: '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
concat_basedir: '/tmp'
}
Expand All @@ -97,7 +96,6 @@ def set_hieradata(hieradata)
c.mock_with :rspec

c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests') if c.respond_to?(:manifest_dir)

c.hiera_config = File.join(fixture_path, 'hieradata', 'hiera.yaml')

Expand Down Expand Up @@ -148,9 +146,9 @@ def set_hieradata(hieradata)

# sanitize hieradata
if defined?(hieradata)
set_hieradata(hieradata.tr(':', '_'))
set_hieradata(hieradata.gsub(':', '_'))
elsif defined?(class_name)
set_hieradata(class_name.tr(':', '_'))
set_hieradata(class_name.gsub(':', '_'))
end
end

Expand Down

0 comments on commit d426e27

Please sign in to comment.