From 74e2687fa98ea5ba25fbe07c038253d1fc14584e Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 8 Feb 2022 11:51:10 +0100 Subject: code/environments/production/modules: Drop certregen module again. --- .../production/modules/certregen/Rakefile | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 code/environments/production/modules/certregen/Rakefile (limited to 'code/environments/production/modules/certregen/Rakefile') diff --git a/code/environments/production/modules/certregen/Rakefile b/code/environments/production/modules/certregen/Rakefile deleted file mode 100644 index f0adad3..0000000 --- a/code/environments/production/modules/certregen/Rakefile +++ /dev/null @@ -1,39 +0,0 @@ -require 'puppetlabs_spec_helper/rake_tasks' -require 'puppet-lint/tasks/puppet-lint' -require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any? - -PuppetLint.configuration.fail_on_warnings = true -PuppetLint.configuration.send('relative') -MetadataJsonLint.options.strict_dependencies = false -MetadataJsonLint.options.fail_on_warnings = false - -desc 'Generate pooler nodesets' -task :gen_nodeset do - require 'beaker-hostgenerator' - require 'securerandom' - require 'fileutils' - - agent_target = ENV['TEST_TARGET'] - if ! agent_target - STDERR.puts 'TEST_TARGET environment variable is not set' - STDERR.puts 'setting to default value of "redhat-64default."' - agent_target = 'redhat-64default.' - end - - master_target = ENV['MASTER_TEST_TARGET'] - if ! master_target - STDERR.puts 'MASTER_TEST_TARGET environment variable is not set' - STDERR.puts 'setting to default value of "redhat7-64mdcl"' - master_target = 'redhat7-64mdcl' - end - - targets = "#{master_target}-#{agent_target}" - cli = BeakerHostGenerator::CLI.new([targets]) - nodeset_dir = "tmp/nodesets" - nodeset = "#{nodeset_dir}/#{targets}-#{SecureRandom.uuid}.yaml" - FileUtils.mkdir_p(nodeset_dir) - File.open(nodeset, 'w') do |fh| - fh.print(cli.execute) - end - puts nodeset -end -- cgit v1.2.3