Giter Club home page Giter Club logo

Comments (7)

solarkennedy avatar solarkennedy commented on May 24, 2024

What? It should be restarting the service after any config change:
https://github.com/solarkennedy/puppet-consul/blob/master/manifests/check.pp#L53
https://github.com/solarkennedy/puppet-consul/blob/master/manifests/service.pp#L60

from puppet-consul.

dannykansas avatar dannykansas commented on May 24, 2024

Interesting. The only relevant output I'm seeing after configuration change is as follows (Debian 7.6 nodes):

Notice: /Stage[main]/Consul::Run_service/Service[consul]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Consul::Run_service/Service[consul]: Unscheduling refresh on Service[consul]

Actually, this info appears with each puppet run, regardless of whether configuration changed or not. Possibly my implementation is wrong?

from puppet-consul.

solarkennedy avatar solarkennedy commented on May 24, 2024

Yea, it sounds like puppet is continuously trying to start consul.

Is it:
A: Consul isn't actually starting at all? (bad config, etc).
Try to start consul yourself and check logs.
or
B: Puppet isn't detecting that consul is already running?
Confirm with a ps that consul is running before puppet runs.
Pastebin a puppet run with --debug and a full ps -ef

from puppet-consul.

solarkennedy avatar solarkennedy commented on May 24, 2024

@dannykansas can you confirm if this is still an issue? Is consul even running like normal?

from puppet-consul.

dominikschulz avatar dominikschulz commented on May 24, 2024

In https://github.com/solarkennedy/puppet-consul/blob/master/manifests/service.pp#L90 there is a Notify on Class[consul::run_service]. Shouldn`t that rather be a Notify on Service[consul]?

from puppet-consul.

solarkennedy avatar solarkennedy commented on May 24, 2024

Notifying the entire class is ok, it should in-turn notify any resources inside, including Service[consul]

from puppet-consul.

aj-jester avatar aj-jester commented on May 24, 2024

Fixed #152

from puppet-consul.

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.