Giter Club home page Giter Club logo

Comments (7)

jurgenweber avatar jurgenweber commented on June 5, 2024

To sum it up; using puppet 2.7.22-1puppetlabs1, the custom fact rabbitmq_erlang_cookie seems to be not available to the client so if $erlang_cookie != $::rabbitmq_erlang_cookie { is always evaluating to true. A fact should just be available so just like a the $hostname fact I should be able to reference it with $rabbitmq_erlang_cookie....... but its always ""/null. I am very confused. :)

from puppet-rabbitmq.

apenney avatar apenney commented on June 5, 2024

Before I start digging into this I just want to check the very obvious case of making sure pluginsync is enabled for your 2.7 clients, right?

from puppet-rabbitmq.

jurgenweber avatar jurgenweber commented on June 5, 2024

confirmed, pluginsync is on:

info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
info: Caching catalog for node0.shop.com
info: Applying configuration version '1374851492'
notice: /Stage[main]/Rabbitmq::Config/Exec[wipe_db]/returns: executed successfully
info: Class[Rabbitmq::Config]: Scheduling refresh of Class[Rabbitmq::Service]
info: Class[Rabbitmq::Service]: Scheduling refresh of Service[rabbitmq-server]
notice: /Stage[main]/Rabbitmq::Service/Service[rabbitmq-server]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]/Rabbitmq::Service/Service[rabbitmq-server]: Triggered 'refresh' from 1 events
notice: Finished catalog run in 27.07 seconds
root@node0:~# cat /etc/puppet/puppet.conf
[main]
server=middleware.shop.com
listen=true
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
pluginsync=true

from puppet-rabbitmq.

apenney avatar apenney commented on June 5, 2024

Urgh, so embarrassing - #97 fixes this and I'll merge it tomorrow as I'm about to head out of the door. Sorry about this. I'm going to add spec tests for the fact as soon as I can get them to work properly!

from puppet-rabbitmq.

jurgenweber avatar jurgenweber commented on June 5, 2024

no need to be embarrassed. :)

after merging your commit I received the error: err: Failed to apply catalog: Could not find dependency Exec[wipe_db] for File[erlang_cookie] at /etc/puppet/modules/rabbitmq/manifests/config.pp:87

I assume the exec is never executed/processed when the if statement evaluates to true so you end up with this catch 22. I just removed the require.

from puppet-rabbitmq.

apenney avatar apenney commented on June 5, 2024

I'll dig into this today, I'm working through this with a cold and conjunctivitis so hang in there while I stumble around and fix it up. :)

from puppet-rabbitmq.

apenney avatar apenney commented on June 5, 2024

This should be fixed now in master.

from puppet-rabbitmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.