Mercurial > repos > other > Puppet
comparison modules/apache/Gemfile @ 257:675c1cc61eaf
Update Apache module to get CentOS 8 support
Unfortunately it only fixes some bits. mod_wsgi still needs
other approaches
This also overrides the vhost modification to make them come last
in the import order (after module loading)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Dec 2019 14:43:29 -0500 |
parents | 37675581a273 |
children | d9352a684e62 |
comparison
equal
deleted
inserted
replaced
252:47750947f4dc | 257:675c1cc61eaf |
---|---|
1 #This file is generated by ModuleSync, do not edit. | |
2 | |
1 source ENV['GEM_SOURCE'] || "https://rubygems.org" | 3 source ENV['GEM_SOURCE'] || "https://rubygems.org" |
2 | 4 |
3 group :development, :unit_tests do | 5 # Determines what type of gem is requested based on place_or_version. |
4 gem 'rake', :require => false | 6 def gem_type(place_or_version) |
5 gem 'rspec-core', '3.1.7', :require => false | 7 if place_or_version =~ /^git:/ |
6 gem 'rspec-puppet', '~> 1.0', :require => false | 8 :git |
7 gem 'puppetlabs_spec_helper', :require => false | 9 elsif place_or_version =~ /^file:/ |
8 gem 'puppet-lint', :require => false | 10 :file |
9 gem 'simplecov', :require => false | 11 else |
10 gem 'puppet_facts', :require => false | 12 :gem |
11 gem 'json', :require => false | 13 end |
14 end | |
15 | |
16 # Find a location or specific version for a gem. place_or_version can be a | |
17 # version, which is most often used. It can also be git, which is specified as | |
18 # `git://somewhere.git#branch`. You can also use a file source location, which | |
19 # is specified as `file://some/location/on/disk`. | |
20 def location_for(place_or_version, fake_version = nil) | |
21 if place_or_version =~ /^(git[:@][^#]*)#(.*)/ | |
22 [fake_version, { :git => $1, :branch => $2, :require => false }].compact | |
23 elsif place_or_version =~ /^file:\/\/(.*)/ | |
24 ['>= 0', { :path => File.expand_path($1), :require => false }] | |
25 else | |
26 [place_or_version, { :require => false }] | |
27 end | |
28 end | |
29 | |
30 # Used for gem conditionals | |
31 supports_windows = false | |
32 | |
33 group :development do | |
34 gem 'addressable', '< 2.4.0', :require => false | |
35 gem 'puppet-lint', :require => false | |
36 gem 'metadata-json-lint', '< 1.2.0', :require => false, :platforms => 'ruby' | |
37 gem 'puppet_facts', :require => false | |
38 gem 'puppet-blacksmith', '>= 3.4.0', :require => false, :platforms => 'ruby' | |
39 gem 'puppetlabs_spec_helper', '>= 1.2.1', :require => false | |
40 gem 'rspec-puppet', '>= 2.3.2', :require => false | |
41 gem 'rspec-puppet-facts', :require => false, :platforms => 'ruby' | |
42 gem 'mocha', '< 1.2.0', :require => false | |
43 gem 'simplecov', :require => false, :platforms => 'ruby' | |
44 gem 'parallel_tests', '< 2.10.0', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0') | |
45 gem 'parallel_tests', :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0.0') | |
46 gem 'rubocop', '0.41.2', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0') | |
47 gem 'rubocop', :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0.0') | |
48 gem 'rubocop-rspec', '~> 1.6', :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0') | |
49 gem 'pry', :require => false | |
50 gem 'json_pure', '<= 2.0.1', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0') | |
51 gem 'fast_gettext', '1.1.0', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0') | |
52 gem 'fast_gettext', :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0') | |
12 end | 53 end |
13 | 54 |
14 group :system_tests do | 55 group :system_tests do |
15 gem 'beaker-rspec', :require => false | 56 gem 'specinfra', '2.66.0', :require => false |
16 gem 'serverspec', :require => false | 57 gem 'beaker', *location_for(ENV['BEAKER_VERSION'] || '~> 2.20') if supports_windows |
58 gem 'beaker', *location_for(ENV['BEAKER_VERSION']) if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0') and ! supports_windows | |
59 gem 'beaker', *location_for(ENV['BEAKER_VERSION'] || '< 3') if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.3.0') and ! supports_windows | |
60 gem 'beaker-pe', :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0') | |
61 gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4') if ! supports_windows | |
62 gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '~> 5.1') if supports_windows | |
63 gem 'beaker-puppet_install_helper', :require => false | |
64 gem 'master_manipulator', :require => false | |
65 gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION']) | |
66 gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1') | |
67 gem 'nokogiri', '<= 1.6.8', :require => false | |
17 end | 68 end |
18 | 69 |
19 if facterversion = ENV['FACTER_GEM_VERSION'] | 70 gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) |
20 gem 'facter', facterversion, :require => false | 71 |
21 else | 72 # Only explicitly specify Facter/Hiera if a version has been specified. |
22 gem 'facter', :require => false | 73 # Otherwise it can lead to strange bundler behavior. If you are seeing weird |
74 # gem resolution behavior, try setting `DEBUG_RESOLVER` environment variable | |
75 # to `1` and then run bundle install. | |
76 gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) if ENV['FACTER_GEM_VERSION'] | |
77 gem 'hiera', *location_for(ENV['HIERA_GEM_VERSION']) if ENV['HIERA_GEM_VERSION'] | |
78 | |
79 | |
80 # Evaluate Gemfile.local if it exists | |
81 if File.exists? "#{__FILE__}.local" | |
82 eval(File.read("#{__FILE__}.local"), binding) | |
23 end | 83 end |
24 | 84 |
25 if puppetversion = ENV['PUPPET_GEM_VERSION'] | 85 # Evaluate ~/.gemfile if it exists |
26 gem 'puppet', puppetversion, :require => false | 86 if File.exists?(File.join(Dir.home, '.gemfile')) |
27 else | 87 eval(File.read(File.join(Dir.home, '.gemfile')), binding) |
28 gem 'puppet', :require => false | |
29 end | 88 end |
30 | 89 |
31 # vim:ft=ruby | 90 # vim:ft=ruby |