I need to more finely tune the Apache vhost file being generated by the example42/kibana
Puppet module. Is it possible in Puppet to 'reach through' the example42/kibana
plugin and configure the puppetlabs/apache
module directly?
For example, I need to modify the apache::vhost.vhost_name
setting to "*"
somehow (https://forge.puppetlabs.com/puppetlabs/apache#defined-type-apachevhost). Below is my current configuration for Kibana.
class { 'kibana':
install_url => 'https://download.elasticsearch.org/kibana/kibana/kibana-3.1.0.zip',
elasticsearch_url => "http://elastic.${::domain}:9200",
webserver => 'apache',
virtualhost => "logs.${::domain}",
}
I assume you are referring to this vhost that is declared inside the
kibana
module.It is indeed possible to modify this resource. Note that the means to that basically form a monkey patch, so you should not rely on it too often. You do it using a resource override, similar to a virtual resource collector:
As a cleaner alternative, you would need to enhance the module's interface (and ideally send your patch upstream).