Hi there,
I tried to install fluentd elasticsearch plugin using ansible gem, however for some reason the installation does not install the dependencies even though i explicitly set to install dependencies
Background:
-
ansible 1.7.1
-
ubuntu 12.04
-
elasticsearch installed separately
-
install fluentd from tresuredata repo
- apt_key: url=http://packages.treasuredata.com/GPG-KEY-td-agent state=present
- apt_repository: repo=‘deb http://packages.treasuredata.com/2/ubuntu/precise/ precise contrib’ state=present
- apt: name=td-agent state=present force=yes
Trying the following code result with success, however the td-agent service can’t start because it is missing some dependencies
gem: name=fluent-plugin-elasticsearch state=present executable=/opt/td-agent/embedded/bin/fluent-gem include_dependencies=yes
When starting the service ,receive error
`
fluent/supervisor.rb:257:rescue in main_process: config error file=“/etc/td-agent/td-agent.conf” error=“Unknown output plugin ‘elasticsearch’. Run ‘gem search -rd fluent-plugin’ to find plugins”
`
However if i execute it using standard command (below) , i don’t encounter the problem
command: /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-elasticsearch
How do i know it is missing dependencies? When i see the gem list under td-agent directory (/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/) no elasticsearch listed there when installing using “ansible gem” . if i try to install elasticsearch using “ansible gem” it will complain it is missing other fluentd plugins.
Is this problem with gem plugin ? or can anyone shed any light on this?
Thanks,