Skip to content

Elastic/logstash puppet forge module config_dir not being set #399

@cgutshal

Description

@cgutshal

I am working with the following module in puppet forge:
https://forge.puppet.com/elastic/logstash

This is my current profile: https://gist.github.com/cgutshal/116d2cfd1bd21b9083088bfbacd1a804

The issue I am running into is that while my pipeline configs are places in /data/logstash/conf/conf.d/ as expected, the other config files are still created in /etc/logstash regardless of if I define it as follows in my profile.

  $base_dir = '/data/logstash'

  file { $base_dir:
    ensure  => 'directory',
    group   => $config['group'],
    owner   => $config['user']
  }

  class { 'logstash':
    config_dir          => "${base_dir}/conf", #THIS ISN'T WORKING
    ...
  }

Not sure what I might be doing wrong that isn't causing this to work as documented, and if there is additional info I can provide let me know. Hoping I just missed something simple.

Any help is appreciated.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions