2021-11-15 00:51:23 +00:00
|
|
|
This module provides a redis terminus for storing configuration from puppet.
|
|
|
|
|
|
|
|
A redis instance can be used for caching facts (via routes.yaml), and/or as a
|
|
|
|
backend for storeconfigs. When used as such a backend, PuppetDB is no longer
|
|
|
|
required in order to use exported resources.
|
|
|
|
|
|
|
|
# Pre-requisites
|
|
|
|
|
|
|
|
redis running on localhost, on the default port
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
1. Install the ruby files:
|
|
|
|
|
|
|
|
cp -r src/lib/* /usr/lib/ruby/vendor_ruby
|
|
|
|
|
2021-11-15 00:52:54 +00:00
|
|
|
2. Update routes, `/etc/puppet/routes.yaml`: eg.,
|
|
|
|
|
|
|
|
```
|
2021-11-15 00:51:23 +00:00
|
|
|
---
|
|
|
|
master:
|
|
|
|
facts:
|
|
|
|
terminus: redis
|
|
|
|
cache: yaml
|
|
|
|
```
|
|
|
|
|
2021-11-15 00:52:54 +00:00
|
|
|
3. In the `/etc/puppet/puppet.conf` master section:
|
|
|
|
|
|
|
|
```
|
2021-11-15 00:51:23 +00:00
|
|
|
[master]
|
|
|
|
storeconfigs = true
|
|
|
|
storeconfigs_backend = redis
|
|
|
|
```
|
|
|
|
|
2021-11-15 00:52:54 +00:00
|
|
|
4. Restart the puppet server or rack application, eg.
|
|
|
|
|
|
|
|
```
|
2021-11-15 00:51:23 +00:00
|
|
|
service apache2 restart
|
|
|
|
```
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
GPLv3
|