Skip to content

Commit

Permalink
Merge pull request #17 from jordiprats/master
Browse files Browse the repository at this point in the history
systemd 0.2
  • Loading branch information
jordiprats authored May 7, 2019
2 parents 30c60f6 + 759e701 commit 2fcddef
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 35 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.1.8

* Updated metadata for **eyp-systemd 0.2.0**

## 0.1.7

* added sentinel support
Expand Down
9 changes: 4 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ gem 'puppet-lint', '>= 0.3.2'
gem 'facter', '>= 1.7.0'

group :system_tests do
gem 'beaker', :require => false
gem 'beaker-rspec', :require => false
gem 'beaker_spec_helper', :require => false
gem 'beaker-puppet_install_helper', :require => false
gem 'serverspec', :require => false
gem 'beaker', '~>3.13', :require => false
gem 'beaker-rspec', '> 5', :require => false
gem 'beaker_spec_helper', :require => false
gem 'serverspec', :require => false
gem 'rspec', '< 3.2', :require => false if RUBY_VERSION =~ /^1\.8/
gem 'rspec-puppet', :require => false
gem 'metadata-json-lint', :require => false
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-redis",
"version": "0.1.7",
"version": "0.1.8",
"author": "eyp",
"summary": "multi instance redis with sentinel support",
"license": "Apache-2.0",
Expand All @@ -9,8 +9,8 @@
"issues_url": "https://github.com/NTTCom-MS/eyp-redis/issues",
"dependencies": [
{"name":"puppetlabs/stdlib", "version_requirement":">= 1.0.0 < 9.9.9"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.3 < 3.0.0"},
{"name":"eyp/systemd", "version_requirement":">= 0.1.7 < 0.2.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.2.3 < 9.9.9"},
{"name":"eyp/systemd", "version_requirement":">= 0.1.7 < 0.3.0"},
{"name":"eyp/eyplib", "version_requirement":">= 0.1.0 < 0.2.0"}
],
"operatingsystem_support": [
Expand Down
31 changes: 4 additions & 27 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
require 'beaker-rspec'
require 'beaker_spec_helper'

include BeakerSpecHelper

hosts.each do |host|

if host['platform'] =~ /^ubuntu-(15.04|15.10)-/
on host, "wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb"
on host, "dpkg -i --force-all /tmp/puppet.deb"
on host, "apt-get update"
host.install_package('puppet-agent')
else
install_puppet_agent_on host, {}
end

# Install git so that we can install modules from github
if host['platform'] =~ /^el-5-/
# git is only available on EPEL for el-5
install_package host, 'epel-release'
end
install_package host, 'git'

on host, "puppet cert generate $(facter fqdn)"
end
install_puppet_agent_on hosts, {}

RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
module_name = module_root.split('-').last

# Readable test descriptions
c.formatter = :documentation

# Configure all nodes in nodeset
c.before :suite do
# Install module and dependencies
puppet_module_install(:source => proj_root, :module_name => 'redis')
puppet_module_install(:source => module_root, :module_name => module_name)
hosts.each do |host|
# dependencies
on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'puppetlabs-concat'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'eyp-eyplib'), { :acceptable_exit_codes => [0,1] }
Expand Down

0 comments on commit 2fcddef

Please sign in to comment.