Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392445
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 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
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:59 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3356686
Attached To
R226 puppet-puppet-redis
Event Timeline
Log In to Comment