Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11023523
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
README.md
View Options
#
Puppet
Redis
[](https://github.com/voxpupuli/puppet-redis/blob/master/LICENSE)
[](https://travis-ci.org/voxpupuli/puppet-redis)
[](https://coveralls.io/github/voxpupuli/puppet-redis)
[](https://forge.puppetlabs.com/puppet/redis)
[](https://forge.puppetlabs.com/puppet/redis)
[](https://forge.puppetlabs.com/puppet/redis)
[](https://forge.puppetlabs.com/puppet/redis)
##
Example
usage
###
Standalone
```
puppet
include
::
redis
```
###
Master
node
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.1
'
,
}
```
With
authentication
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.1
'
,
masterauth
=>
'
secret
'
,
}
```
###
Slave
node
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.2
'
,
slaveof
=>
'
10.0
.
1.1
6379
'
,
}
```
With
authentication
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.2
'
,
slaveof
=>
'
10.0
.
1.1
6379
'
,
masterauth
=>
'
secret
'
,
}
```
###
Redis
3.0
Clustering
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.2
'
,
appendonly
=>
true
,
cluster_enabled
=>
true
,
cluster_config_file
=>
'
nodes
.
conf
'
,
cluster_node_timeout
=>
5000
,
}
```
###
Manage
repositories
Disabled
by
default
but
if
you
really
want
the
module
to
manage
the
required
repositories
you
can
use
this
snippet
:
```
puppet
class
{
'
::
redis
'
:
manage_repo
=>
true
,
}
```
On
Ubuntu
,
"chris-lea/redis-server"
ppa
repo
will
be
added
.
You
can
change
it
by
using
ppa_repo
parameter
:
```
puppet
class
{
'
::
redis
'
:
manage_repo
=>
true
,
ppa_repo
=>
'
ppa
:
rwky
/
redis
'
,
}
```
###
Redis
Sentinel
Optionally
install
and
configuration
a
redis
-
sentinel
server
.
With
default
settings
:
```
puppet
include
::
redis
::
sentinel
```
With
adjustments
:
```
puppet
class
{
'
::
redis
::
sentinel
'
:
master_name
=>
'
cow
'
,
redis_host
=>
'
192.168
.
1.5
'
,
failover_timeout
=>
30000
,
}
```
##
`
redis
::
get
()
`
function
This
function
is
used
to
get
data
from
redis
.
You
must
have
the
'
redis
'
gem
installed
on
your
puppet
master
.
Functions
are
documented
in
[
REFERENCE
.
md
](
REFERENCE
.
md
)
##
Unit
testing
Plain
RSpec
:
$
rake
spec
Using
bundle
:
$
bundle
exec
rake
spec
Test
against
a
specific
Puppet
or
Facter
version
:
$
PUPPET_VERSION
=
3.2
.
1
bundle
update
&&
bundle
exec
rake
spec
$
PUPPET_VERSION
=
4.10
.
0
bundle
update
&&
bundle
exec
rake
spec
$
FACTER_VERSION
=
1.6
.
8
bundle
update
&&
bundle
exec
rake
spec
##
Contributing
*
Fork
it
*
Create
a
feature
branch
(
`
git
checkout
-
b
my
-
new
-
feature
`
)
*
Run
rspec
tests
(
`
bundle
exec
rake
spec
`
)
*
Commit
your
changes
(
`
git
commit
-
am
'
Added
some
feature
'`
)
*
Push
to
the
branch
(
`
git
push
origin
my
-
new
-
feature
`
)
*
Create
new
Pull
Request
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 18, 4:43 PM (17 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3214409
Attached To
R226 puppet-puppet-redis
Event Timeline
Log In to Comment