example42 / puppet-kibana

Puppet module for Kibana 3 based on stdmod naming standards
Other
9 stars 11 forks source link

Enhancement - Add custom apache virtualhost port #5

Open pythianali opened 10 years ago

pythianali commented 10 years ago

Self explanatory, it would be useful to be able to run on a nonstandard port if desired

lsh-0 commented 9 years ago

Hi pythianali - I'm new to Puppet and was having the same issue so I raised the question here: http://serverfault.com/questions/625084/configure-dependency-of-a-puppet-module

Apparently configuring a module's dependency is something that can't be done (or not done easily) with Puppet. My takeaway on this is to keep the configuration shallow and not expect module providers to also expose bits of their dependent module's interfaces.

I fixed my problem by putting this after my class declaration for kibana. This configures Apache directly (almost) exactly how the example42/kibana module does it:

apache::vhost { "logs.${::domain}":
  vhost_name => "*",
  port    => '80',
  docroot => '/opt/kibana-3.1.0',
}
pythianali commented 9 years ago

Ish-0 I'll have to try this, thanks!