Created
April 22, 2013 00:09
-
-
Save kaz29/5431660 to your computer and use it in GitHub Desktop.
fluentd plugin install cookbook memo みんなどうやってるんだろ?まだ、LWRPがよくわからないのでこれでごまかしてる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default["fluentd"]["path"] = '/usr/lib/fluent' | |
default["fluentd"]["plugins"] = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = node["fluentd"]["path"] | |
plugins = node["fluentd"]["plugins"] | |
plugins.each do |plugin| | |
bash "install #{plugin}" do | |
cwd "/usr/local/src" | |
code <<-EOF | |
#{path}/ruby/bin/fluent-gem install #{plugin} | |
EOF | |
not_if "#{path}/ruby/bin/fluent-gem list | grep #{plugin}" | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment