Skip to content

Instantly share code, notes, and snippets.

@kaz29
Created April 22, 2013 00:09
Show Gist options
  • Save kaz29/5431660 to your computer and use it in GitHub Desktop.
Save kaz29/5431660 to your computer and use it in GitHub Desktop.
fluentd plugin install cookbook memo みんなどうやってるんだろ?まだ、LWRPがよくわからないのでこれでごまかしてる
default["fluentd"]["path"] = '/usr/lib/fluent'
default["fluentd"]["plugins"] = []
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