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
| FROM stackbrew/ubuntu:precise | |
| RUN locale-gen en_US.UTF-8 | |
| ENV LANG en_US.UTF-8 |
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
| node_modules |
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
| // benchmark/object-stream-throughput.js | |
| // | |
| // Shows performance of pipe()ing new streams in object mode | |
| // through Transform streams. | |
| var OBJECTS_PER_B = 12 / 1024; // I get 12 of my objects per KB of input XML | |
| var SOURCE_WRITE_SIZE = 64*1024; | |
| var common = require('./common'); | |
| var net = require('net'); |
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
| server.modules += ( "mod_auth" ) | |
| server.modules += ( "mod_proxy" ) | |
| accesslog.filename = "/var/log/lighttpd/logs-access.log" | |
| # server.bind = "0.0.0.0" | |
| $SERVER["socket"] == ":80" { | |
| $HTTP["remoteip"] =~ "^10\.10\.10\." { | |
| # hosts in the 10.10.10.10 range can access :80/api/ subroot | |
| $HTTP["url"] !~ "^/api/" { |
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
| define elastic_template($host='localhost', $port='9200', $prefix='', $require=undef) { | |
| $es_templ = "${name}-template.json" | |
| file { "/tmp/${es_templ}": | |
| ensure => present, | |
| source => "puppet:///modules/${module_name}/${prefix}${es_templ}", | |
| require => $require, | |
| } | |
| $es_locn = "http://${host}:${port}/_template/${name}" | |
| exec { "curl -s -XPUT ${es_locn} -d @/tmp/${es_templ}": |
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
| diff --git a/manifests/params.pp b/manifests/params.pp | |
| index 3278a7a..06b2db5 100644 | |
| --- a/manifests/params.pp | |
| +++ b/manifests/params.pp | |
| @@ -89,27 +89,4 @@ class logstash::params { | |
| for \"${::operatingsystem}\"") | |
| } | |
| } | |
| - | |
| - # parameters when using a custom jar sourcea |
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
| MANIFESTS = [ | |
| 'vagrant-prereq.pp', # prerequisites, e.g. other Puppet modules | |
| 'vagrant.pp' # the Logstash configuration we're testing | |
| ] | |
| # Run the Puppet provisioner for each manifest | |
| for manifest in MANIFESTS | |
| ls.vm.provision :puppet do |puppet| | |
| puppet.manifests_path = "tests" | |
| puppet.manifest_file = manifest |
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: dashboard-workers | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: dashboard workers | |
| # Description: Start dashboard-workers daemon placed in /etc/init.d. | |
| ### END INIT INFO |
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
| root@lsserver:/tmp/vagrant-puppet/manifests# puppet --version | |
| 2.7.19 | |
| root@lsserver:/tmp/vagrant-puppet/manifests# which puppet | |
| /usr/bin/puppet | |
| root@lsserver:/tmp/vagrant-puppet/manifests# `which puppet` --version | |
| 3.0.2 | |
| root@lsserver:/tmp/vagrant-puppet/manifests# echo $PATH | |
| /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin:/opt/vagrant_ruby/bin | |
| root@lsserver:/tmp/vagrant-puppet/manifests# alias | |
| alias egrep='egrep --color=auto' |