From 9126bbf8500ec71d0861fb853d91d9d874b73554 Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Thu, 6 Oct 2016 07:45:25 +1000 Subject: [PATCH] Release version 0.1.0 (#4) --- .travis.yml | 11 +++++++++++ CHANGELOG.md | 17 +++++++++++++++++ Gemfile.lock | 1 + Modulefile | 8 ++++---- README.md | 4 ++++ Rakefile | 26 ++++++++++++++++++++++++++ metadata.json | 10 +++++----- 7 files changed, 68 insertions(+), 9 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.travis.yml b/.travis.yml index ffd6417..3bf5fa2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,3 +22,14 @@ matrix: env: PUPPET_GEM_VERSION="~> 4.3" FACTER_GEM_VERSION="~> 2.4" HIERA_GEM_VERSION="~> 3.0" notifications: email: false +deploy: + provider: puppetforge + user: powerhome + password: + secure: "rHMu92sJNInuh8KMkij5jW1DabnzCkxwvbgdc1X9raCwzGfPBWG0yuTbq+pjUxMxu4DNh288zX9HNUQOhOGLPnAevi5XjtknTlg4BdZ8dfC9yIODlp2jexagbbIZR+EJdS9EnW3Qsl+/fbHx7X/cIQN7cL9y5Xsb5bfeM2NMGlw=" + on: + tags: true + all_branches: true + rvm: 2.1 + condition: + - $PUPPET_GEM_VERSION = '~> 4.3' diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d7e1440 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +##2016-10-06 - Pete Brown 0.1.0 +###Summary + +First Puppet Forge Release +Add support for Puppet 4 and PE 2015 +Fix restart loop issue. + +####Bugfixes +Fix issue #1 +Put the installed version in the config file so Lumenvox does not rewrite the +config files on every run and restart the services. +The service then updates the config files and puppet overwrites them. + +##2014-06-15 - Justin Aiken <60tonangel@gmail.com> 0.0.1 +###Summary + +Initial release diff --git a/Gemfile.lock b/Gemfile.lock index 705bb3b..990baf6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -156,6 +156,7 @@ DEPENDENCIES facter hiera json (= 1.8.3) + json_pure (< 2.0.0) metadata-json-lint puppet puppet-blacksmith diff --git a/Modulefile b/Modulefile index 660bbec..19997d2 100644 --- a/Modulefile +++ b/Modulefile @@ -1,8 +1,8 @@ -name 'mojolingo/lumenvox' -version '0.0.1' -source 'https://github.com/mojolingo/puppet-lumenvox' +name 'powerhome/lumenvox' +version '0.1.0' +source 'https://github.com/powerhome/puppet-lumenvox' author 'Justin Aiken' license 'MIT' summary 'Install and manage Lumenvox services' description 'Install and manage Lumenvox services' -project_page 'https://github.com/mojolingo/puppet-lumenvox' +project_page 'https://github.com/powerhome/puppet-lumenvox' diff --git a/README.md b/README.md index cb2a416..fccaa82 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Build Status](https://travis-ci.org/powerhome/puppet-lumenvox.svg?style=plastic)](https://travis-ci.org/powerhome/puppet-lumenvox) +[![Puppet Forge](https://img.shields.io/puppetforge/v/powerhome/lumenvox.svg?style=plastic)](https://forge.puppetlabs.com/powerhome/lumenvox) +[![Puppet Forge Downloads](https://img.shields.io/puppetforge/dt/powerhome/lumenvox.svg?style=plastic)](https://forge.puppetlabs.com/powerhome/lumenvox) + # Description Puppet module for for Lumenvox media engine. Heavily based on Mojo Lingo's [Chef Cookbook](https://github.com/mojolingo/lumenvox-chef) to do the same. diff --git a/Rakefile b/Rakefile index a724e50..989ea48 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,11 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' require 'puppet-syntax/tasks/puppet-syntax' +begin + require 'puppet_blacksmith/rake_tasks' +rescue LoadError +end + PuppetLint.configuration.fail_on_warnings = true PuppetLint.configuration.relative = true PuppetLint.configuration.send('disable_80chars') @@ -26,3 +31,24 @@ task :test => [ :spec, :metadata_lint, ] + +if RUBY_VERSION >= "2.1.0" then + Blacksmith::RakeTask.new do |t| + t.build = false # do not build the module nor push it to the Forge + # just do the tagging [:clean, :tag, :bump_commit] + end + + desc "Offload release process to Travis." + task :travis_release => [ + :check_changelog, # check that the changelog contains an entry for the current release + :"module:release", # do everything except build / push to forge, travis will do that for us + ] + + desc "Check Changelog." + task :check_changelog do + v = Blacksmith::Modulefile.new.version + if File.readlines('CHANGELOG.md').grep("Releasing #{v}").size == 0 then + fail "Unable to find a CHANGELOG.md entry for the #{v} release." + end + end +end diff --git a/metadata.json b/metadata.json index fe3630f..86e4887 100644 --- a/metadata.json +++ b/metadata.json @@ -1,12 +1,12 @@ { - "name": "mojolingo/lumenvox", - "version": "0.0.1", + "name": "powerhome/lumenvox", + "version": "0.1.0", "author": "Justin Aiken", "summary": "Install and manage Lumenvox services", "license": "MIT", - "source": "https://github.com/mojolingo/puppet-lumenvox", - "project_page": "https://github.com/mojolingo/puppet-lumenvox", - "issues_url": "https://github.com/mojolingo/puppet-lumenvox/issues", + "source": "https://github.com/powerhome/puppet-lumenvox", + "project_page": "https://github.com/powerhome/puppet-lumenvox", + "issues_url": "https://github.com/powerhome/puppet-lumenvox/issues", "operatingsystem_support": [ { "operatingsystem": "CentOS",