Comments (11)
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.
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.
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.
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.
@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.
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.
It works right now. You can take a look here: echocat/puppet-grafana#8
from puppet-graphite.
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.
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.
Thats the plan
from puppet-graphite.
Should be done, but will not happen at the moment.
from puppet-graphite.
Related Issues (20)
- [Enhancement] make the installation of graphite-web optional HOT 1
- Can you release a new version in the forge, please ? HOT 3
- graphite-web not starting with graphite-web version 1.0.2
- ImportError: No module named django.conf HOT 1
- Carbon Flow Control Missing HOT 1
- [Release] Debian Stretch HOT 2
- Fresh install fails on CentOS 7.4 using Graphite v1.1.1 HOT 7
- gr_graphiteweb_storage_dir breaks puppet
- /opt/graphite not available - puppet run fails HOT 4
- ensuring order for storage aggregation rules HOT 3
- Gunicorn can't listen on TCP socket
- Support Debian Buster HOT 3
- Add support for graphite tags
- Acceptance Tests need update
- Installation of Graphite-Web with URL prefix
- manage.py no more available from graphite-web 1.0.x HOT 2
- validate functions from stdlib are deprecated
- https://github.com/echocat/puppet-graphite/releases/tag/v8.0.0 HOT 1
- Support for Ubuntu 20.4
- Doesn't work on Debian bullseye due to it trying to install python-tz...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-graphite.