This file contains hidden or 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
| file { | |
| path => "/vagrant/src/api/log/events.log" | |
| tags => "events" | |
| } | |
| pipe { | |
| command => "/data/virtualenv/logstash_outputs/bin/python /vagrant/src/sandbox/logstash_outputs/pythonscript.py" | |
| ttl => "0" | |
| } |
This file contains hidden or 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
| # | |
| # Cookbook Name:: wave-rethink | |
| # Recipe:: default | |
| # | |
| # Copyright (C) 2013 Steve Pereira | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| package "wget" |
This file contains hidden or 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
| # docker build -t="rails" . | |
| FROM ubuntu:12.04 | |
| RUN apt-get update | |
| ## MYSQL | |
| RUN apt-get install -y -q mysql-client libmysqlclient-dev | |
| ## RUBY |
This file contains hidden or 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
| { | |
| "title": "Tweets Search", | |
| "rows": [ | |
| { | |
| "title": "Options", | |
| "height": "50px", | |
| "editable": true, | |
| "collapse": false, | |
| "collapsable": true, | |
| "panels": [ |
This file contains hidden or 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
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
This file contains hidden or 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
| vars.yml: | |
| --- | |
| project_name: myproject | |
| project_root: /var/projects/myproject | |
| project_repo: git@bitbucket.org:username/myproject.git | |
| system_packages: | |
| - build-essential | |
| - git | |
| - libevent-dev | |
| - nginx |
This file contains hidden or 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
| [2013-08-20T22:07:58+00:00] INFO: Processing directory[/opt/logstash/beaver] action create (logstash::beaver line 61) | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver] created directory /opt/logstash/beaver | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver] owner changed to 997 | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver] group changed to 997 | |
| [2013-08-20T22:07:58+00:00] INFO: Processing directory[/opt/logstash/beaver/etc] action create (logstash::beaver line 72) | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver/etc] created directory /opt/logstash/beaver/etc | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver/etc] owner changed to 997 | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/opt/logstash/beaver/etc] group changed to 997 | |
| [2013-08-20T22:07:58+00:00] INFO: Processing directory[/var/log/logstash] action create (logstash::beaver line 72) | |
| [2013-08-20T22:07:58+00:00] INFO: directory[/var/log/logstash] created directory /var/log/logst |
This file contains hidden or 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
| input { | |
| exec { | |
| type => "dstat" | |
| command => "dstat -cdngypms --nocolor 1 0" | |
| interval => 13 | |
| } | |
| exec { | |
| type => "apache-benchmark" |
This file contains hidden or 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
| input { | |
| file { | |
| path => [ "/var/log/messages", "/var/log/kern.log" ] | |
| type => "linux-syslog" | |
| } | |
| file { | |
| path => "/var/log/apache2/access.log" | |
| type => "apache-access" | |
| } |
This file contains hidden or 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
| name "elasticsearch" | |
| description "Install and configure elasticsearch" | |
| run_list( | |
| "role[network]", | |
| "role[yum]", | |
| "recipe[java]", | |
| "recipe[elasticsearch]" | |
| ) | |
| default_attributes({ |