Git Product home page Git Product logo

Comments (11)

dwerder avatar dwerder commented on July 30, 2024

Thats true. For apache it would be a way to do that with the apache modue. But its possible to do that right now. YOu just need to configure, that this module should not install/manage a webserver.

I will think about it for the next major release to refactore it. Or someone can send an Pull Request maybe ;)

from puppet-graphite.

scottsuch avatar scottsuch commented on July 30, 2024

I'd love to see this as well. Right now I'm using the puppetlabs-apache module with a defined vhost for graphite and have to always run puppet 2x to resolve a dependency initially. See error below:

err: /Stage[main]//Node[vagrant]/Apache::Vhost[graphite.example.com]/File[/opt/graphite/webapp]/ensure: change from absent to directory failed: Cannot create /opt/graphite/webapp; parent directory /opt/graphite does not exist

I've not had any luck getting the resource ordering of this module and the puppetlabs-apache module via the before, after, notify, and subscribe metaparameters.

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

As far as I know, something like:

class { apache: bla => blub }->
class { graphite: foo => bar }

should do the trick.
But to use puppetlabs-apache is planed for release 6.0.0, which is in progress.

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

This brings me to the point, that I will just drop all that built-in Apache support and instead give an README example how to configure things with separate modules.

Like

class { apache: }
apache::vhost {foo bar}
class {graphite: }

Class[apache]->Class[graphite]

from puppet-graphite.

brettswift avatar brettswift commented on July 30, 2024

@dwerder your last comment would work in my use case. The difficulty I'm finding is getting up and running with graphite and grafana on the same server. Both graphite and grafana have puppet modules but they don't work well together without a lot of intervention.

For this use case, this module could configure an apache::vhost, and then external modules (grafana) could also use the apache::vhost module. The puppet catalog would compile them at the same time as long as the vhosts were unique (great candidate for a parameter to inject) and then this module and external modules on the same server would be compatible.

I think that'd be a powerful way of utilizing the apache module.

Just a thought!

from puppet-graphite.

iverberk avatar iverberk commented on July 30, 2024

I agree with @brettswift , it would be really nice to install graphite and grafana (with your modules) on the same server without running into duplicate declaration issues. Current workaround is to disable apache config and just create the vhost manually elsewhere for grafana and graphite?

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

It works right now. You can take a look here: echocat/puppet-grafana#8

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

As mention in the ticket above, the next major version 6 will use the puppetlabs/apache module if you use gr_web_server => 'apache' and the default will become 'none'. So that you can provide your own webserver config.

from puppet-graphite.

brettswift avatar brettswift commented on July 30, 2024

Thanks @dwerder - that's what I was looking for. Github search-fu was not good apparently.

It might be helpful to get that example vhost configuration into the README file.

Will the next major release let you inject a vhost name, and port, and encapsulate all the graphite specifics under the hood from the example in echocat/puppet-grafana#8 ?

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

Thats the plan

from puppet-graphite.

dwerder avatar dwerder commented on July 30, 2024

Should be done, but will not happen at the moment.

from puppet-graphite.

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.