Skip to content

Instantly share code, notes, and snippets.

@dr3s
Created August 27, 2015 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dr3s/c3652d8f144049c0ed6e to your computer and use it in GitHub Desktop.
Save dr3s/c3652d8f144049c0ed6e to your computer and use it in GitHub Desktop.
name = 'server'
# the logstash agent instance
logstash_instance name do
action :create
end
# the service that manages the instance
logstash_service name do
action [:enable]
end
logstash_config name do
action [:create]
notifies :restart, "logstash_service[#{name}]"
end
logstash_pattern name do
action [:create]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment