All Projects → voxpupuli → Puppet Redis

voxpupuli / Puppet Redis

Licence: apache-2.0
Puppet Module to manage Redis

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Puppet Redis

Puppet Gitlab
Puppet module to manage Gitlab (Omnibus)
Stars: ✭ 73 (+97.3%)
Mutual labels:  hacktoberfest, puppet
Puppet R10k
Setup and configure r10k for use with git based environments in puppet
Stars: ✭ 95 (+156.76%)
Mutual labels:  hacktoberfest, puppet
Jenkins Infra
Jenkins main control repo for R10k and our Puppet Enterprise managed infrastructure
Stars: ✭ 76 (+105.41%)
Mutual labels:  hacktoberfest, puppet
Puppet Selinux
Puppet Module to manage SELinux on RHEL machines
Stars: ✭ 51 (+37.84%)
Mutual labels:  hacktoberfest, puppet
Puppet Jenkins
Puppet module for Jenkins
Stars: ✭ 280 (+656.76%)
Mutual labels:  hacktoberfest, puppet
Puppet System
Manage Linux system resources and services from hiera configuration
Stars: ✭ 65 (+75.68%)
Mutual labels:  hacktoberfest, puppet
Puppet Mongodb
mongodb installation
Stars: ✭ 90 (+143.24%)
Mutual labels:  hacktoberfest, puppet
Puppet Filebeat
Stars: ✭ 54 (+45.95%)
Mutual labels:  hacktoberfest, puppet
Puppet Python
Puppet module for installing and managing Python, pip, virtualenvs and Gunicorn virtual hosts.
Stars: ✭ 202 (+445.95%)
Mutual labels:  hacktoberfest, puppet
Puppet Rabbitmq
RabbitMQ Puppet Module
Stars: ✭ 170 (+359.46%)
Mutual labels:  hacktoberfest, puppet
Puppet Staging
⛔️ Deprecated in favor of puppet-archive
Stars: ✭ 50 (+35.14%)
Mutual labels:  hacktoberfest, puppet
Puppet Nginx
Puppet Module to manage NGINX on various UNIXes
Stars: ✭ 462 (+1148.65%)
Mutual labels:  hacktoberfest, puppet
Puppet Php
Generic Puppet module to manage PHP on many platforms
Stars: ✭ 83 (+124.32%)
Mutual labels:  hacktoberfest, puppet
Puppet Mcollective
MCollective Server and Client Puppet Module
Stars: ✭ 121 (+227.03%)
Mutual labels:  hacktoberfest, puppet
Katello
Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.
Stars: ✭ 312 (+743.24%)
Mutual labels:  hacktoberfest, puppet
Puppet Confluence
A puppet module to install confluence
Stars: ✭ 18 (-51.35%)
Mutual labels:  hacktoberfest, puppet
Ns Vue Radio
A native white-label application built with NativeScript-Vue for community radios
Stars: ✭ 36 (-2.7%)
Mutual labels:  hacktoberfest
Rocket.chat.apps Cli
The CLI for interacting with Rocket.Chat Apps
Stars: ✭ 37 (+0%)
Mutual labels:  hacktoberfest
Merge Branch
A GitHub Action that merge PR branch to other branchs
Stars: ✭ 36 (-2.7%)
Mutual labels:  hacktoberfest
Laravel Weather
🌤️ A wrapper around Open Weather Map API (Current weather)
Stars: ✭ 36 (-2.7%)
Mutual labels:  hacktoberfest

Puppet Redis

License Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Example usage

Standalone

include ::redis

Master node

class { '::redis':
  bind => '10.0.1.1',
}

With authentication

class { '::redis':
  bind       => '10.0.1.1',
  masterauth => 'secret',
}

Slave node

class { '::redis':
  bind    => '10.0.1.2',
  slaveof => '10.0.1.1 6379',
}

With authentication

class { '::redis':
  bind       => '10.0.1.2',
  slaveof    => '10.0.1.1 6379',
  masterauth => 'secret',
}

Redis 3.0 Clustering

class { '::redis':
  bind                 => '10.0.1.2',
  appendonly           => true,
  cluster_enabled      => true,
  cluster_config_file  => 'nodes.conf',
  cluster_node_timeout => 5000,
}

Multiple instances

$listening_ports = [6379,6380,6381,6382]

class { '::redis':
  default_install => false,
  service_enable  => false,
  service_ensure  => 'stopped',
}

$listening_ports.each |$port| {
  $port_string = sprintf('%d',$port)
  redis::instance { $port_string:
    service_enable => true,
    service_ensure => 'running',
    port           => $port,
    bind           => $facts['networking']['ip'],
    dbfilename     => "${port}-dump.rdb",
    appendfilename => "${port}-appendonly.aof",
    appendfsync    => 'always',
    require        => Class['Redis'],
  }
}

Manage repositories

Disabled by default but if you really want the module to manage the required repositories you can use this snippet:

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:

class { '::redis':
  manage_repo => true,
  ppa_repo    => 'ppa:rwky/redis',
}

Warning note that it requires puppetlabs/apt on Ubuntu distros. On Red Hat puppet/epel is needed unless the installation is using Software Collections. In that case will install centos-release-scl-rh from CentOS extras. For RHEL or other RHEL-derivatives this isn't managed.

Redis Sentinel

Optionally install and configuration a redis-sentinel server.

With default settings:

include ::redis::sentinel

With adjustments:

class { '::redis::sentinel':
  master_name      => 'cow',
  redis_host       => '192.168.1.5',
  failover_timeout => 30000,
}

Soft dependency

This module requires camptocamp/systemd on Puppet versions older than 6.1.0.

When managing the repo, it either needs puppetlabs/apt or puppet/epel.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].