Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtopjian/puppet-redis
Installs and configures Redis
https://github.com/jtopjian/puppet-redis
Last synced: 4 days ago
JSON representation
Installs and configures Redis
- Host: GitHub
- URL: https://github.com/jtopjian/puppet-redis
- Owner: jtopjian
- Created: 2014-12-30T19:24:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T19:24:26.000Z (over 4 years ago)
- Last Synced: 2023-03-23T03:01:33.717Z (over 1 year ago)
- Language: Puppet
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puppet-redis
Installs and configures Redis.
## Setup
### Hiera
```yaml
redis::settings:
bind: "%{::ipaddress_eth0}"
dbfilename: "%{::hostname}.db"
redis::settings::save:
'900 1': 'present'
'300 10': 'present'
'60 10000': 'present'
```### Puppet
```puppet
class site::profiles::redis::server {# Hiera
$redis_user = hiera('redis::user', 'redis')
$redis_group = hiera('redis::group', 'redis')
$redis_settings = hiera_hash('redis::settings')
$redis_save_settings = hiera_hash('redis::settings::save')# Resources
anchor { 'site::profiles::redis::server::begin': } ->
class { '::redis':
user => $redis_user,
group => $redis_group,
settings => $redis_settings,
save_settings => $redis_save_settings,
} ->
anchor { 'site::profiles::redis::server::end': }}
```