asher256 / puppet-redis_cluster Goto Github PK
View Code? Open in Web Editor NEWInstall multiple redis instances via Puppet to configure a cluster with redis-trib.rb (for Redis version >= 3.0)
License: Apache License 2.0
Install multiple redis instances via Puppet to configure a cluster with redis-trib.rb (for Redis version >= 3.0)
License: Apache License 2.0
Hi,
I've been trying to set up a redis cluster through using this module. In hiera, I have defined an array as follows:
# redis node config
redis_cluster::instances:
'master_6379':
ip: '10.0.5.9'
port: '6379'
'master_6380':
ip: '10.0.5.10'
port: '6380'
Whenever I run this on the node in question, this results in a dependency loop:
node1 /root # pa -tv --environment=redis_cluster_stage --graph
Info: Using configured environment 'redis_cluster_stage'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for node1
Info: Applying configuration version '1481542006'
Error: Failed to apply catalog: Found 1 dependency cycle:
(File[/lib/systemd/system/redis-server-master_6379.service] => Redis_cluster::Instance::Service[master_6379] => Redis_cluster::Instance[master_6379] => Class[Redis_cluster::Load_instances] => Redis_cluster::Instance::Service[master_6379] => File[/lib/systemd/system/redis-server-master_6379.service])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Which to me looks like the systemd file, depends on the redis-server-${name} resource, which in turn depends back on the redis_cluster instance service resource, and back on the systemd file.
In the puppet code I have seen the following:
redis_port => $redis_port,
require => [Class['::redis_cluster::repos'],
Class['::redis_cluster::install'],
Class['::redis_cluster::load_instances'],
Augeas["update ${redis_config}"]],
}
When I comment out the Class requirements of the individual manifests, the puppetrun works as expected. Why are these explicit requires set if they are actually going to be loaded on module autoload anyway?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.