Permalink
Please sign in to comment.
Browse files
Infra update for puppet-gluster...
w00t, c-i, and automatic pushing.
- Loading branch information...
Showing
with
164 additions
and 50 deletions.
- +1 −1 .gitignore
- +16 −0 .travis.yml
- +11 −0 Gemfile
- +11 −2 Makefile
- +0 −12 Modulefile
- +1 −33 README
- +0 −1 README.md
- +44 −0 README.md
- +47 −0 Rakefile
- +0 −1 VERSION
- +15 −0 metadata.json
- +18 −0 spec/spec_helper.rb
16
.travis.yml
| @@ -0,0 +1,16 @@ | ||
| +language: ruby | ||
| +rvm: 1.8.7 | ||
| +notifications: | ||
| + email: | ||
| + - travis-ci@shubin.ca | ||
| +# TODO: do a full rake test once warnings are all gone! | ||
| +#script: 'bundle exec rake test' | ||
| +script: 'bundle exec rake syntax' | ||
| +env: | ||
| +# - PUPPET_VERSION=2.7.26 | ||
| + - PUPPET_VERSION=3.0.2 | ||
| + - PUPPET_VERSION=3.1.1 | ||
| + - PUPPET_VERSION=3.2.4 | ||
| + - PUPPET_VERSION=3.3.2 | ||
| + - PUPPET_VERSION=3.4.3 | ||
| + |
| @@ -0,0 +1,11 @@ | ||
| +source 'https://rubygems.org' | ||
| + | ||
| +puppet_version = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.0'] | ||
| + | ||
| +gem 'rake' | ||
| +gem 'puppet', puppet_version | ||
| +gem 'puppet-lint' # style things, eg: tabs vs. spaces | ||
| +gem 'rspec-puppet', :git => 'https://github.com/rodjek/rspec-puppet.git' | ||
| +gem 'puppet-syntax' # syntax checking | ||
| +gem 'puppetlabs_spec_helper' | ||
| + |
12
Modulefile
| @@ -1,12 +0,0 @@ | ||
| -name 'purpleidea-gluster' | ||
| -author 'James Shubin' | ||
| -license 'GNU Affero General Public License, Version 3.0+' | ||
| -summary 'GlusterFS module by James' | ||
| -description 'A Puppet module for GlusterFS' | ||
| -project_page 'https://github.com/purpleidea/puppet-gluster/' | ||
| -source 'https://ttboj.wordpress.com/' | ||
| -version '0.0.4' | ||
| - | ||
| -## Add dependencies, if any: | ||
| -# dependency 'username/name', '>= 1.2.0' | ||
| - |
| @@ -1,34 +1,2 @@ | ||
| -This is puppet-gluster a puppet module for gluster. | ||
| - | ||
| -Please read the INSTALL file for instructions on getting this installed. | ||
| -Look in the examples/ folder for usage. If none exist, please contribute one! | ||
| -This code may be a work in progress. The interfaces may change without notice. | ||
| -Patches are welcome, but please be patient. They are best received by email. | ||
| -Please ping me if you have big changes in mind, before you write a giant patch. | ||
| - | ||
| -Module specific notes: | ||
| -* This is _the_ puppet module for gluster. Accept no imitations! | ||
| -* All the participating nodes, need to have an identical puppet-gluster config. | ||
| -* Using gluster::simple is probably the best way to try this out. | ||
| -* This is easily deployed with vagrant. See the vagrant/ directory! | ||
| -* You can use less of the available resources, if you only want to manage some. | ||
| -* You can get CentOS and RHEL rpms from: | ||
| - * http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/ or: | ||
| - * http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-6/x86_64/ | ||
| -* Documentation is now available! Please report grammar and spelling bugs. | ||
| - | ||
| -Dependencies: | ||
| -* puppetlabs-stdlib (required) | ||
| -* puppet-module-data (optional, puppet >= 3.0.0) | ||
| -* my puppet-common module (optional) | ||
| -* my puppet-shorewall module (optional) | ||
| -* my puppet-keepalived module (optional) | ||
| -* my puppet-puppet module (optional) | ||
| -* my puppet-yum module (optional) | ||
| -* gluster packages (see above notes) | ||
| -* pandoc (for building a pdf of the documentation) | ||
| - | ||
| - | ||
| -Happy hacking, | ||
| -James Shubin <james@shubin.ca>, https://ttboj.wordpress.com/ | ||
| +Please see README.md | ||
| @@ -0,0 +1,44 @@ | ||
| +# *puppet-gluster*: a puppet module for GlusterFS | ||
| + | ||
| +[](http://travis-ci.org/purpleidea/puppet-gluster) | ||
| + | ||
| +## Documentation: | ||
| +Please see: [DOCUMENTATION.md](DOCUMENTATION.md) or [puppet-gluster-documentation.pdf](puppet-gluster-documentation.pdf). | ||
| + | ||
| +## Installation: | ||
| +Please read the [INSTALL](INSTALL) file for instructions on getting this installed. | ||
| + | ||
| +## Examples: | ||
| +Please look in the [examples/](examples/) folder for usage. If none exist, please contribute one! | ||
| + | ||
| +## Module specific notes: | ||
| +* This is _the_ puppet module for gluster. Accept no imitations! | ||
| +* All the participating nodes, need to have an identical puppet-gluster config. | ||
| +* Using gluster::simple is probably the best way to try this out. | ||
| +* This is easily deployed with vagrant. See the [vagrant/](vagrant/) directory! | ||
| +* You can use less of the available resources, if you only want to manage some. | ||
| +* You can get CentOS and RHEL rpms from: | ||
| +** http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/ or: | ||
| +** http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-6/x86_64/ | ||
| +* Documentation is now available! Please report grammar and spelling bugs. | ||
| + | ||
| +## Dependencies: | ||
| +* [puppetlabs-stdlib](https://github.com/puppetlabs/puppetlabs-stdlib) (required) | ||
| +* [puppet-module-data](https://github.com/ripienaar/puppet-module-data/) (optional, puppet >= 3.0.0) | ||
| +* my [puppet-common](https://github.com/purpleidea/puppet-common) module (optional) | ||
| +* my [puppet-shorewall](https://github.com/purpleidea/puppet-shorewall) module (optional) | ||
| +* my [puppet-keepalived](https://github.com/purpleidea/puppet-keepalived) module (optional) | ||
| +* my [puppet-puppet](https://github.com/purpleidea/puppet-puppet) module (optional) | ||
| +* my [puppet-yum](https://github.com/purpleidea/puppet-yum) module (optional) | ||
| +* gluster packages (see above notes) | ||
| +* pandoc (for building a pdf of the documentation) | ||
| + | ||
| +## Patches: | ||
| +This code may be a work in progress. The interfaces may change without notice. | ||
| +Patches are welcome, but please be patient. They are best received by email. | ||
| +Please ping me if you have big changes in mind, before you write a giant patch. | ||
| + | ||
| +## | ||
| + | ||
| +Happy hacking! | ||
| + |
| @@ -0,0 +1,47 @@ | ||
| +require 'puppetlabs_spec_helper/rake_tasks' | ||
| +require 'puppet-lint/tasks/puppet-lint' | ||
| +require 'puppet-syntax/tasks/puppet-syntax' | ||
| + | ||
| +# These two gems aren't always present, for instance | ||
| +# on Travis with --without development | ||
| +begin | ||
| + require 'puppet_blacksmith/rake_tasks' | ||
| +rescue LoadError | ||
| +end | ||
| + | ||
| +PuppetLint.configuration.relative = true | ||
| +PuppetLint.configuration.send('disable_2sp_soft_tabs') | ||
| +PuppetLint.configuration.send('disable_hard_tabs') | ||
| +PuppetLint.configuration.send('disable_arrow_alignment') | ||
| +PuppetLint.configuration.send('disable_80chars') | ||
| +PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" | ||
| +PuppetLint.configuration.fail_on_warnings = true | ||
| + | ||
| +# Forsake support for Puppet 2.6.2 for the benefit of cleaner code. | ||
| +# http://puppet-lint.com/checks/class_parameter_defaults/ | ||
| +PuppetLint.configuration.send('disable_class_parameter_defaults') | ||
| +# http://puppet-lint.com/checks/class_inherits_from_params_class/ | ||
| +PuppetLint.configuration.send('disable_class_inherits_from_params_class') | ||
| + | ||
| +exclude_paths = [ | ||
| + "pkg/**/*", | ||
| + "vendor/**/*", | ||
| + "spec/**/*", | ||
| + "tmp/**/*", | ||
| + "vagrant/**/*", # TODO: remove this, once we update vagrant/ to puppet4 | ||
| +] | ||
| +PuppetLint.configuration.ignore_paths = exclude_paths | ||
| +PuppetSyntax.exclude_paths = exclude_paths | ||
| + | ||
| +desc 'Run acceptance tests' | ||
| +RSpec::Core::RakeTask.new(:acceptance) do |t| | ||
| + t.pattern = 'spec/acceptance' | ||
| +end | ||
| + | ||
| +desc 'Run syntax, lint, and spec tests.' | ||
| +task :test => [ | ||
| + :syntax, | ||
| + :lint, | ||
| + :spec, | ||
| +] | ||
| + |
| @@ -0,0 +1,15 @@ | ||
| +{ | ||
| + "name": "purpleidea-gluster", | ||
| + "version": "0.0.5", | ||
| + "author": "James Shubin", | ||
| + "summary": "A Puppet module for GlusterFS", | ||
| + "license": "GNU Affero General Public License, Version 3.0+", | ||
| + "source": "https://github.com/purpleidea/puppet-gluster/", | ||
| + "project_page": "https://github.com/purpleidea/puppet-gluster/", | ||
| + "issues_url": null, | ||
| + "description": "UNKNOWN", | ||
| + "dependencies": [ | ||
| + { "name": "puppetlabs/stdlib", "version_requirement": ">= 4.0.0" } | ||
| + ] | ||
| +} | ||
| + |
| @@ -0,0 +1,18 @@ | ||
| +dir = File.expand_path(File.dirname(__FILE__)) | ||
| +$LOAD_PATH.unshift File.join(dir, 'lib') | ||
| + | ||
| +require 'mocha' | ||
| +require 'puppet' | ||
| +require 'rspec' | ||
| +require 'spec/autorun' | ||
| + | ||
| +Spec::Runner.configure do |config| | ||
| + config.mock_with :mocha | ||
| +end | ||
| + | ||
| +# We need this because the RAL uses 'should' as a method. This | ||
| +# allows us the same behaviour but with a different method name. | ||
| +class Object | ||
| + alias :must :should | ||
| +end | ||
| + |
0 comments on commit
f24cca2