Skip to content

Commit 4d40f32

Browse files
s/redis-server/redis/g && s/redis_server/redis/g
1 parent ae3d016 commit 4d40f32

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

Modulefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name 'thomasvandoren-redis-server'
1+
name 'thomasvandoren-redis'
22
version '0.0.1'
33
author 'Thomas Van Doren'
44
license 'The license the module is release under - generally GPLv2 or Apache'
5-
project_page 'https://github.com/thomasvandoren/puppet-redis-server'
5+
project_page 'https://github.com/thomasvandoren/puppet-redis'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
redis-server puppet module
1+
redis puppet module
22
==========================
33

4-
[![Build Status](https://secure.travis-ci.org/thomasvandoren/puppet-redis-server.png)](http://travis-ci.org/thomasvandoren/puppet-redis-server)
4+
[![Build Status](https://secure.travis-ci.org/thomasvandoren/puppet-redis.png)](http://travis-ci.org/thomasvandoren/puppet-redis)
55

6-
Install and configure redis-server.
6+
Install and configure redis.
77

88
Authors
99
-------

files/redis.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ slave-serve-stale-data yes
154154

155155
# Require clients to issue AUTH <PASSWORD> before processing any other
156156
# commands. This might be useful in environments in which you do not trust
157-
# others with access to the host running redis-server.
157+
# others with access to the host running redis.
158158
#
159159
# This should stay commented out for backward compatibility and because most
160160
# people do not need auth (e.g. they run their own servers).

files/redis.init

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/bin/sh
22
#Configurations injected by install_server below....
33

4-
EXEC=/opt/redis-server/bin/redis-server
5-
CLIEXEC=/opt/redis-server/bin/redis-cli
4+
EXEC=/opt/redis/bin/redis
5+
CLIEXEC=/opt/redis/bin/redis-cli
66
PIDFILE=/var/run/redis_6379.pid
77
CONF="/etc/redis/6379.conf"
88

@@ -64,14 +64,14 @@ status()
6464
{
6565
if [ ! -f $PIDFILE ]
6666
then
67-
echo "$PIDFILE does not exist, redis-server is not running"
67+
echo "$PIDFILE does not exist, redis is not running"
6868
exit 3
6969
elif [ ! -x /proc/$(cat $PIDFILE) ]
7070
then
7171
echo "$PIDFILE exists, process is not running though"
7272
exit 1
7373
else
74-
echo "redis-server is running with PID $(cat $PIDFILE)"
74+
echo "redis is running with PID $(cat $PIDFILE)"
7575
exit 0
7676
fi
7777
}

manifests/init.pp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# == Class: redis-server
1+
# == Class: redis
22
#
3-
# Install and configure redis-server.
3+
# Install and configure redis.
44
#
55
# === Parameters
66
#
@@ -9,8 +9,8 @@
99
# Default: /opt/redis-src
1010
#
1111
# [*redis_bin_dir*]
12-
# Location to install redis-server binaries.
13-
# Default: /opt/redis-server
12+
# Location to install redis binaries.
13+
# Default: /opt/redis
1414
#
1515
# [*redis_max_memory*]
1616
# Set the redis config value maxmemory (bytes).
@@ -43,7 +43,7 @@
4343
#
4444
# === Examples
4545
#
46-
# include redis-server
46+
# include redis
4747
#
4848
# === Authors
4949
#
@@ -53,9 +53,9 @@
5353
#
5454
# Copyright 2012 Thomas Van Doren, unless otherwise noted.
5555
#
56-
class redis-server (
56+
class redis (
5757
$redis_src_dir = '/opt/redis-src',
58-
$redis_bin_dir = '/opt/redis-server',
58+
$redis_bin_dir = '/opt/redis',
5959
$redis_max_memory = '4gb',
6060
$redis_max_clients = 0, # 0 = unlimited
6161
$redis_timeout = 300, # 0 = disabled
@@ -88,25 +88,25 @@
8888
ensure => present,
8989
path => $redis_pkg,
9090
mode => '0644',
91-
source => 'puppet:///modules/redis-server/redis-2.4.13.tar.gz',
91+
source => 'puppet:///modules/redis/redis-2.4.13.tar.gz',
9292
}
9393
file { 'redis-init':
9494
ensure => present,
9595
path => '/etc/init.d/redis_6379',
9696
mode => '0755',
97-
source => 'puppet:///modules/redis-server/redis.init',
97+
source => 'puppet:///modules/redis/redis.init',
9898
}
9999
file { '6379.conf':
100100
ensure => present,
101101
path => '/etc/redis/6379.conf',
102102
mode => '0644',
103-
content => template('redis-server/6379.conf.erb'),
103+
content => template('redis/6379.conf.erb'),
104104
}
105105
file { 'redis.conf':
106106
ensure => present,
107107
path => '/etc/redis/redis.conf',
108108
mode => '0644',
109-
source => 'puppet:///modules/redis-server/redis.conf',
109+
source => 'puppet:///modules/redis/redis.conf',
110110
}
111111
file { 'redis-cli-link':
112112
ensure => link,
@@ -132,7 +132,7 @@
132132
Package['build-essential'],
133133
],
134134
}
135-
service { 'redis-server':
135+
service { 'redis':
136136
ensure => running,
137137
name => 'redis_6379',
138138
enable => true,

templates/6379.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ slave-serve-stale-data yes
136136

137137
# Require clients to issue AUTH <PASSWORD> before processing any other
138138
# commands. This might be useful in environments in which you do not trust
139-
# others with access to the host running redis-server.
139+
# others with access to the host running redis.
140140
#
141141
# This should stay commented out for backward compatibility and because most
142142
# people do not need auth (e.g. they run their own servers).

tests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#
22
# Smoke test.
33
#
4-
include redis-server
4+
include redis

0 commit comments

Comments
 (0)