From 39a49474da2facb6f733419a8ff5afcae515c236 Mon Sep 17 00:00:00 2001 From: Gabriel Bull Date: Tue, 23 Sep 2014 17:54:53 -0400 Subject: [PATCH] Initial commit --- .fixtures.yml | 3 +++ .gitignore | 12 ++++++++++++ .nodeset.yml | 15 +++++++++++++++ .rspec | 3 +++ .travis.yml | 30 ++++++++++++++++++++++++++++++ Gemfile | 15 +++++++++++++++ Modulefile | 8 ++++++++ README.md | 14 ++++++++++++++ Rakefile | 17 +++++++++++++++++ manifests/init.pp | 2 ++ tests/init.pp | 1 + 11 files changed, 120 insertions(+) create mode 100755 .fixtures.yml create mode 100755 .gitignore create mode 100755 .nodeset.yml create mode 100755 .rspec create mode 100755 .travis.yml create mode 100755 Gemfile create mode 100755 Modulefile create mode 100755 README.md create mode 100755 Rakefile create mode 100755 manifests/init.pp create mode 100755 tests/init.pp diff --git a/.fixtures.yml b/.fixtures.yml new file mode 100755 index 0000000..93b6b30 --- /dev/null +++ b/.fixtures.yml @@ -0,0 +1,3 @@ +fixtures: + symlinks: + unoconv: "#{source_dir}" diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..da57119 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.DS_Store +._* +.Spotlight-V100 +.Trashes +Thumbs.db +Desktop.ini +Gemfile.lock +metadata.json +spec/fixtures/modules/ +pkg/ +.rspec_system/ +.bundle/ diff --git a/.nodeset.yml b/.nodeset.yml new file mode 100755 index 0000000..0fdb219 --- /dev/null +++ b/.nodeset.yml @@ -0,0 +1,15 @@ +--- +default_set: 'centos-64-x64' +sets: + 'centos-64-x64': + nodes: + 'main': + prefab: 'centos-64-x64' + 'centos-59-x64': + nodes: + 'main': + prefab: 'centos-59-x64' + 'fedora-18-x64': + nodes: + "main": + prefab: 'fedora-18-x64' diff --git a/.rspec b/.rspec new file mode 100755 index 0000000..6278ec5 --- /dev/null +++ b/.rspec @@ -0,0 +1,3 @@ +--format documentation +--color +--tty diff --git a/.travis.yml b/.travis.yml new file mode 100755 index 0000000..d1c8dc4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: ruby +bundler_args: --without development +script: "bundle exec rake spec" +rvm: + - 1.8.7 + - 1.9.3 + - 2.0.0 + - ruby-head +env: + - PUPPET_GEM_VERSION="~> 3.0.0" + - PUPPET_GEM_VERSION="~> 3.1.0" + - PUPPET_GEM_VERSION="~> 3.2.0" + - PUPPET_GEM_VERSION="~> 3.3.0" + - PUPPET_GEM_VERSION="~> 3.4.0" +matrix: + allow_failures: + - rvm: ruby-head + exclude: + - rvm: 2.0.0 + env: PUPPET_GEM_VERSION="~> 3.1.0" + - rvm: 2.0.0 + env: PUPPET_GEM_VERSION="~> 3.0.0" + - rvm: 1.9.3 + env: PUPPET_GEM_VERSION="~> 2.7.0" + - rvm: 2.0.0 + env: PUPPET_GEM_VERSION="~> 2.7.0" + - rvm: ruby-head + env: PUPPET_GEM_VERSION="~> 2.7.0" +notifications: + email: false diff --git a/Gemfile b/Gemfile new file mode 100755 index 0000000..ee7bdc4 --- /dev/null +++ b/Gemfile @@ -0,0 +1,15 @@ +source 'https://rubygems.org' + +group :development, :test do + gem 'rake', :require => false + gem 'rspec-puppet', :require => false + gem 'puppetlabs_spec_helper', :require => false + gem 'puppet-lint', :require => false + gem 'rspec-system-puppet', '~>2.0.0' +end + +if puppetversion = ENV['PUPPET_GEM_VERSION'] + gem 'puppet', puppetversion, :require => false +else + gem 'puppet', :require => false +end diff --git a/Modulefile b/Modulefile new file mode 100755 index 0000000..b103c4a --- /dev/null +++ b/Modulefile @@ -0,0 +1,8 @@ +name 'gabrielbull-freeswitch' +version '1.0.0' +source 'https://github.com/gabrielbull/puppet-freeswitch' +author 'gabrielbull' +license 'MIT' +summary 'Setup PHP freeswitch' +description 'Setup PHP freeswitch' +project_page 'https://github.com/gabrielbull/puppet-freeswitch' diff --git a/README.md b/README.md new file mode 100755 index 0000000..09c1aaa --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +puppet-freeswitch +============== + +Puppet module for installing freeswitch + +Installs freeswitch support. + +Example usage: + +```puppet +class { 'freeswitch': } +``` + +GitHub: https://github.com/gabrielbull/puppet-freeswitch diff --git a/Rakefile b/Rakefile new file mode 100755 index 0000000..5a71d17 --- /dev/null +++ b/Rakefile @@ -0,0 +1,17 @@ +require 'puppetlabs_spec_helper/rake_tasks' +require 'puppet-lint/tasks/puppet-lint' +require 'rspec-system/rake_task' + +task :default do + sh %{rake -T} +end + +# Disable specific puppet-lint checks +PuppetLint.configuration.send("disable_80chars") +PuppetLint.configuration.send("disable_class_inherits_from_params_class") + +desc "Run rspec-puppet and puppet-lint tasks" +task :ci => [ + :lint, + :spec, +] diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100755 index 0000000..3f68bc3 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,2 @@ +class freeswitch () { +} diff --git a/tests/init.pp b/tests/init.pp new file mode 100755 index 0000000..37b95a8 --- /dev/null +++ b/tests/init.pp @@ -0,0 +1 @@ +include 'freeswitch'