Skip to content

Commit

Permalink
test 2.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gsick committed Apr 9, 2014
1 parent d80e588 commit f1c691f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
branches:
only:
- 0.0.4
- 0.0.5
- master
notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'gsick-redis'
version '0.0.4'
version '0.0.5'
source 'https://github.com/gsick/puppet-redis.git'
author 'Gamaliel Sick'
license 'MIT'
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/gsick/puppet-redis.svg?branch=0.0.4)](https://travis-ci.org/gsick/puppet-redis)
[![Coverage Status](https://coveralls.io/repos/gsick/puppet-redis/badge.png?branch=0.0.4)](https://coveralls.io/r/gsick/puppet-redis?branch=0.0.4)
[![Build Status](https://travis-ci.org/gsick/puppet-redis.svg?branch=0.0.5)](https://travis-ci.org/gsick/puppet-redis)
[![Coverage Status](https://coveralls.io/repos/gsick/puppet-redis/badge.png?branch=0.0.5)](https://coveralls.io/r/gsick/puppet-redis?branch=0.0.5)
(95% with rspec-puppet)

puppet-redis
Expand Down Expand Up @@ -40,7 +40,7 @@ Redis/Redis sentinel multiple instances installation and configuration module.<b

## Status

0.0.4 released.
0.0.5 released.

## Dependencies

Expand All @@ -64,7 +64,7 @@ In your hieradata file

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
```

It will create `/etc/redis/6379.conf` [see file](http://pastebin.com/xZaKysam).<br />
Expand All @@ -87,7 +87,7 @@ In your hieradata file

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
redis_26389:
sentinel: true
Expand Down Expand Up @@ -165,7 +165,7 @@ The key of some others must have two parts:

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
my_redis_1:
default_template: false
Expand All @@ -191,7 +191,7 @@ property_key property_value

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
redis_7979:
conf:
Expand All @@ -206,7 +206,7 @@ redis::servers:

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
my_redis_1:
default_template: false
Expand All @@ -232,7 +232,7 @@ will give:

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
my_redis_1:
conf:
Expand Down Expand Up @@ -264,7 +264,7 @@ $ service redis_${port} start/stop/restart

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
redis_LRU_cache:
conf:
Expand All @@ -281,7 +281,7 @@ redis::servers:

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
redis_sentinel:
sentinel: true
Expand All @@ -296,7 +296,7 @@ redis::servers:

```yaml
---
redis::version: 2.8.7
redis::version: 2.8.8
redis::servers:
redis_master:
conf:
Expand Down
10 changes: 5 additions & 5 deletions spec/classes/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
should contain_exec('download redis').with({
'cwd' => '/tmp',
'path' => '/bin:/usr/bin',
'command' => 'wget http://download.redis.io/releases/redis-2.8.7.tar.gz',
'creates' => '/tmp/redis-2.8.7.tar.gz',
'command' => 'wget http://download.redis.io/releases/redis-2.8.8.tar.gz',
'creates' => '/tmp/redis-2.8.8.tar.gz',
'notify' => 'Exec[untar redis]',
'require' => 'Package[wget]',
})
Expand All @@ -40,15 +40,15 @@
should contain_exec('untar redis').with({
'cwd' => '/tmp',
'path' => '/bin:/usr/bin',
'command' => 'tar -zxvf redis-2.8.7.tar.gz',
'creates' => '/tmp/redis-2.8.7/Makefile',
'command' => 'tar -zxvf redis-2.8.8.tar.gz',
'creates' => '/tmp/redis-2.8.8/Makefile',
'notify' => 'Exec[install redis]',
})
end

it do
should contain_exec('install redis').with({
'cwd' => '/tmp/redis-2.8.7',
'cwd' => '/tmp/redis-2.8.8',
'path' => '/bin:/usr/bin',
'command' => 'make && make install',
'creates' => '/usr/local/bin/redis-server',
Expand Down
6 changes: 3 additions & 3 deletions spec/defines/redis_instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

context "with default param" do
let(:params) { {:servername => 'redis_6379',
:version => '2.8.7',
:version => '2.8.8',
:conf_dir => '/etc/redis',
:data_dir => '/var/lib/redis',
:tmp => '/tmp'} }
Expand All @@ -22,7 +22,7 @@

it do
should contain_exec('copy default conf file redis_6379').with({
'cwd' => '/tmp/redis-2.8.7',
'cwd' => '/tmp/redis-2.8.8',
'path' => '/bin:/usr/bin',
'command' => 'cp redis.conf /etc/redis/6379.conf',
'creates' => '/etc/redis/6379.conf',
Expand Down Expand Up @@ -129,7 +129,7 @@

context "with default_template param" do
let(:params) { {:servername => 'redis_6379',
:version => '2.8.7',
:version => '2.8.8',
:conf_dir => '/etc/redis',
:data_dir => '/var/lib/redis',
:tmp => '/tmp'} }
Expand Down
2 changes: 1 addition & 1 deletion tests/init.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
# Smoke test.
#
class {'redis': version => '2.8.7'}
class {'redis': version => '2.8.8'}

0 comments on commit f1c691f

Please sign in to comment.