(FM-4046) Update to current msync configs [006831f]
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
This commit is contained in:
parent
e6c3f53079
commit
f99a3fa78e
8 changed files with 76 additions and 27 deletions
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#This file is generated by ModuleSync, do not edit.
|
||||||
|
*.rb eol=lf
|
||||||
|
*.erb eol=lf
|
||||||
|
*.pp eol=lf
|
||||||
|
*.sh eol=lf
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
#This file is generated by ModuleSync, do not edit.
|
||||||
pkg/
|
pkg/
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
vendor/
|
vendor/
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#This file is generated by ModuleSync, do not edit.
|
||||||
---
|
---
|
||||||
sudo: false
|
sudo: false
|
||||||
language: ruby
|
language: ruby
|
||||||
|
|
41
Gemfile
41
Gemfile
|
@ -1,12 +1,14 @@
|
||||||
|
#This file is generated by ModuleSync, do not edit.
|
||||||
|
|
||||||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||||
|
|
||||||
def location_for(place, fake_version = nil)
|
def location_for(place, version = nil)
|
||||||
if place =~ /^(git[:@][^#]*)#(.*)/
|
if place =~ /^(git[:@][^#]*)#(.*)/
|
||||||
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
[version, { :git => $1, :branch => $2, :require => false}].compact
|
||||||
elsif place =~ /^file:\/\/(.*)/
|
elsif place =~ /^file:\/\/(.*)/
|
||||||
['>= 0', { :path => File.expand_path($1), :require => false }]
|
['>= 0', { :path => File.expand_path($1), :require => false}]
|
||||||
else
|
else
|
||||||
[place, { :require => false }]
|
[place, version, { :require => false}].compact
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -21,29 +23,18 @@ group :development, :unit_tests do
|
||||||
gem 'rspec-puppet-facts', :require => false
|
gem 'rspec-puppet-facts', :require => false
|
||||||
end
|
end
|
||||||
group :system_tests do
|
group :system_tests do
|
||||||
gem 'beaker-puppet_install_helper', :require => false
|
gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4')
|
||||||
if beaker_version = ENV['BEAKER_VERSION']
|
gem 'beaker', *location_for(ENV['BEAKER_VERSION'])
|
||||||
gem 'beaker', *location_for(beaker_version)
|
|
||||||
end
|
|
||||||
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
|
|
||||||
gem 'beaker-rspec', *location_for(beaker_rspec_version)
|
|
||||||
else
|
|
||||||
gem 'beaker-rspec', :require => false
|
|
||||||
end
|
|
||||||
gem 'master_manipulator', :require => false
|
|
||||||
gem 'serverspec', :require => false
|
gem 'serverspec', :require => false
|
||||||
|
gem 'beaker-puppet_install_helper', :require => false
|
||||||
|
gem 'master_manipulator', :require => false
|
||||||
|
gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
|
||||||
end
|
end
|
||||||
|
|
||||||
if facterversion = ENV['FACTER_GEM_VERSION']
|
gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'])
|
||||||
gem 'facter', facterversion, :require => false
|
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
|
||||||
else
|
|
||||||
gem 'facter', :require => false
|
|
||||||
end
|
|
||||||
|
|
||||||
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
||||||
gem 'puppet', puppetversion, :require => false
|
|
||||||
else
|
|
||||||
gem 'puppet', :require => false
|
|
||||||
end
|
|
||||||
|
|
||||||
# vim:ft=ruby
|
if File.exists? "#{__FILE__}.local"
|
||||||
|
eval(File.read("#{__FILE__}.local"), binding)
|
||||||
|
end
|
||||||
|
|
5
LICENSE
5
LICENSE
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
@ -180,13 +181,13 @@
|
||||||
To apply the Apache License to your work, attach the following
|
To apply the Apache License to your work, attach the following
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
replaced with your own identifying information. (Don't include
|
replaced with your own identifying information. (Don't include
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
comment syntax for the file format. We also recommend that a
|
comment syntax for the file format. We also recommend that a
|
||||||
file or class name and description of purpose be included on the
|
file or class name and description of purpose be included on the
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2013 Puppet Labs
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
18
NOTICE
Normal file
18
NOTICE
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
mysql puppet module
|
||||||
|
|
||||||
|
Copyright (C) 2013-2016 Puppet Labs, Inc.
|
||||||
|
|
||||||
|
Puppet Labs can be contacted at: info@puppetlabs.com
|
||||||
|
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
31
Rakefile
31
Rakefile
|
@ -9,3 +9,34 @@ PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
||||||
PuppetLint.configuration.send('disable_documentation')
|
PuppetLint.configuration.send('disable_documentation')
|
||||||
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
|
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
|
||||||
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#This file is generated by ModuleSync, do not edit.
|
||||||
require 'puppetlabs_spec_helper/module_spec_helper'
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
||||||
|
|
||||||
# put local configuration and setup into spec_helper_local
|
# put local configuration and setup into spec_helper_local
|
||||||
|
|
Loading…
Reference in a new issue