puppet-modulesync-configs: Initial commit
With this inital commit we set two things : * The list of project that will be managed by this repository[1] * The default template for shared resources, inspired from puppetlabs own modulesync_configs[2] The actual content (ie. data) should be discussed during a meeting. [1] https://github.com/openstack-infra/project-config/blob/master/gerritbot/channels.yaml#L1043-L1069 [2] https://github.com/puppetlabs/modulesync_configs Change-Id: I03b4f07594361ef50ed20589571b2d4c3072cbff
This commit is contained in:
parent
b731422a07
commit
ca33eb9108
13
LICENSE
Normal file
13
LICENSE
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Copyright 2012 OpenStack Foundation
|
||||||
|
|
||||||
|
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.
|
22
managed_modules.yml
Normal file
22
managed_modules.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- puppet-ceilometer
|
||||||
|
- puppet-cinder
|
||||||
|
- puppet-designate
|
||||||
|
- puppet-glance
|
||||||
|
- puppet-gnocchi
|
||||||
|
- puppet-heat
|
||||||
|
- puppet-horizon
|
||||||
|
- puppet-ironic
|
||||||
|
- puppet-keystone
|
||||||
|
- puppet-manila
|
||||||
|
- puppet-neutron
|
||||||
|
- puppet-nova
|
||||||
|
- puppet-openstacklib
|
||||||
|
- puppet-openstack_extras
|
||||||
|
- puppet-sahara
|
||||||
|
- puppet-swift
|
||||||
|
- puppet-tempest
|
||||||
|
- puppet-tripleo
|
||||||
|
- puppet-trove
|
||||||
|
- puppet-tuskar
|
||||||
|
- puppet-vswitch
|
15
moduleroot/.gitignore
vendored
Normal file
15
moduleroot/.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
pkg/
|
||||||
|
Gemfile.lock
|
||||||
|
vendor/
|
||||||
|
spec/fixtures/
|
||||||
|
.vagrant/
|
||||||
|
.bundle/
|
||||||
|
coverage/
|
||||||
|
.idea/
|
||||||
|
*.swp
|
||||||
|
*.iml
|
||||||
|
<% if ! @configs['paths'].nil? -%>
|
||||||
|
<% @configs['paths'].each do |path| -%>
|
||||||
|
<%= path %>
|
||||||
|
<% end -%>
|
||||||
|
<% end -%>
|
39
moduleroot/Gemfile
Normal file
39
moduleroot/Gemfile
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||||
|
|
||||||
|
<% groups = {} -%>
|
||||||
|
<% (@configs['required'].keys + ((@configs['optional'] || {}).keys)).uniq.each do |key| -%>
|
||||||
|
<% groups[key] = (@configs['required'][key] || []) + ((@configs['optional'] || {})[key] || []) -%>
|
||||||
|
<% end -%>
|
||||||
|
<% -%>
|
||||||
|
<% groups.each do |group, gems| -%>
|
||||||
|
group <%= group %> do
|
||||||
|
<% maxlen = gems.map! do |gem| -%>
|
||||||
|
<% { -%>
|
||||||
|
<% 'gem' => gem['gem'], -%>
|
||||||
|
<% 'version' => gem['version'], -%>
|
||||||
|
<% 'git' => gem['git'], -%>
|
||||||
|
<% 'branch' => gem['branch'], -%>
|
||||||
|
<% 'length' => gem['gem'].length + (("', '".length if gem['version']) || 0) + gem['version'].to_s.length -%>
|
||||||
|
<% } -%>
|
||||||
|
<% end.map do |gem| -%>
|
||||||
|
<% gem['length'] -%>
|
||||||
|
<% end.max -%>
|
||||||
|
<% gems.each do |gem| -%>
|
||||||
|
gem '<%= gem['gem'] %>'<%= ", '#{gem['version']}'" if gem['version'] %>, <%= ' ' * (maxlen - gem['length']) %> :require => false<%= ", :git => '#{gem['git']}'" if gem['git'] %><%= ", :branch => '#{gem['branch']}'" if gem['branch'] %>
|
||||||
|
<% end -%>
|
||||||
|
end
|
||||||
|
|
||||||
|
<% end -%>
|
||||||
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
||||||
|
gem 'facter', facterversion, :require => false
|
||||||
|
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
|
16
moduleroot/Rakefile
Normal file
16
moduleroot/Rakefile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
require 'puppetlabs_spec_helper/rake_tasks'
|
||||||
|
require 'puppet-lint/tasks/puppet-lint'
|
||||||
|
require 'puppet-syntax/tasks/puppet-syntax'
|
||||||
|
|
||||||
|
PuppetSyntax.exclude_paths ||= []
|
||||||
|
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
|
||||||
|
PuppetSyntax.exclude_paths << "pkg/**/*"
|
||||||
|
PuppetSyntax.exclude_paths << "vendor/**/*"
|
||||||
|
|
||||||
|
Rake::Task[:lint].clear
|
||||||
|
PuppetLint::RakeTask.new :lint do |config|
|
||||||
|
config.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
|
||||||
|
config.fail_on_warnings = true
|
||||||
|
config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
|
||||||
|
config.disable_checks = <% @configs['default_disabled_lint_checks'] + ( @configs['extra_disabled_lint_checks'] || [] ) -%>
|
||||||
|
end
|
7
moduleroot/spec/spec_helper.rb
Normal file
7
moduleroot/spec/spec_helper.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
||||||
|
require 'shared_examples'
|
||||||
|
|
||||||
|
RSpec.configure do |c|
|
||||||
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
||||||
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user