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
package chef; | |
use Rex -base; | |
# Knife Conf Location | |
my $env = environment || 'dev'; | |
set knife_conf => "vagrant/private/$env-knife.rb"; | |
set user => $ENV{'USER'}; | |
set environment => $env; |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.11 (Darwin) | |
mQENBFAEiqQBCADC5rWMZsqona9ThWYMgfWSqea5T+Yg7BnSPUqGlfepPfWO5pVr | |
n+P0hjRZ2nUTv+Wg1gRcvw+7y3Bx4jmPiA7QjvF7sNWapl+/Wx0k40qyIX4trtKv | |
eqDowVVpF5IwlKkk1sOw78gl8/aKJps8V1p/YcShkAEVCKL0Ljc5nRQGxCutVXJC | |
BVtTrAO2D0grT+KxgzP5GQNXjARUr5cqgKGYn3bkSHLfZR64oKIiqat9qF+cmd2Q | |
Qv4fsdqAkGzHlD40XOAVHMNW4Q/CFKOKzrTq79KnMbose5taScxae0Wb1onAS0QP | |
TAdMNLi5b1t67lp/YWqesZ+SQWquM5B9T6f5ABEBAAG0Ik1hdHQgV2lsbGlhbXMg | |
PG1hdHRAY3Jvd2R0aWx0LmNvbT6JAT4EEwECACgFAlAEiqQCGwMFCV38DwAGCwkI |
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
knife ec2 server create -E staging_standalone -r "role[standalone]" -I ami-3fe54d56 -f m1.small -S knife -N $SERVNAME --ssh-user ubuntu -G default,standalone -j "{ \"crowdtilt\": { \"base_tld\": \"${SERVNAME}.crowdtilt.com\", \"base_url\": \"https://${SERVNAME}.crowdtilt.com\", \"cookie_domain\": \".${SERVNAME}.crowdtilt.com\", \"nginx\": { \"admin\": { \"base_url\": \"admin.${SERVNAME}.crowdtilt.com\" }, \"www\": { \"server_name\": \"${SERVNAME}.crowdtilt.com www.${SERVNAME}.crowdtilt.com\", \"base_url\": \"${SERVNAME}.crowdtilt.com\" } } } }" |
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/bash | |
if [ $# -ne 4 ]; then | |
echo "Usage: $0 <'password'> <index> <field> <value>" | |
fi | |
password=$1 | |
index=$2 | |
field=$3 | |
value=$4 |
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
=INFO REPORT==== 2-Nov-2012::15:39:29 === | |
accepting AMQP connection <0.394.0> (127.0.0.1:53618 -> 127.0.0.1:5671) | |
=ERROR REPORT==== 2-Nov-2012::15:39:29 === | |
** State machine <0.395.0> terminating | |
** Last message in was {tcp,#Port<0.3068>, | |
<<129,15,1,3,3,0,246,0,0,0,16,0,192,48,0,192,44,0, | |
192,40,0,192,36,0,192,20,0,192,10,0,192,34,0, | |
192,33,0,0,163,0,0,159,0,0,107,0,0,106,0,0,57,0, | |
0,56,0,0,136,0,0,135,0,192,25,0,192,32,0,192,50, |
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
{ | |
"version": "0.9.6-4", | |
"rabbitmq": { | |
"host": "localhost", | |
"port": 5672, | |
"vhost": "/sensu", | |
"user": "sensu", | |
"password": "blah", | |
"heartbeat": 20 | |
}, |
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
{"timestamp":"2012-11-05T19:10:27.519518+0000","message":"handling event","event":{"client":{"name":"database2a","address":"10.0.3.249","subscriptions":["base","monitoring"],"timestamp":1352142620},"check":{"command":"/etc/sensu/plugins/check-disk.rb -w 90 -c 95 -x nfs,tmpfs,fuse -i /boot,/mnt/data_imports","interval":60,"notification":"Disk usage is too high.","subscribers":["base"],"name":"disk_usage","issued":1352142627,"output":"/etc/sensu/plugins/check-disk.rb:14:in `require': no such file to load -- rubygems (LoadError)\n\tfrom /etc/sensu/plugins/check-disk.rb:14\n","status":1,"duration":0.011,"history":["0","0","0","0","0","0","0","0","0","0","1","1","1","1","1","1","1","1","1","1","1"],"flapping":false},"occurrences":11,"action":"create"},"handler":{"command":"/etc/sensu/handlers/debug.rb","type":"pipe","name":"debug"},"level":"info"} | |
{"timestamp":"2012-11-05T19:10:27.519973+0000","message":"handling event","event":{"client":{"name":"database2a","address":"10.0.3.249","subscriptions":["base","monitori |
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
/var/log/nginx/www_ssl_access.log { | |
daily | |
rotate 7 | |
create 644 root adm | |
missingok | |
compress | |
delaycompress | |
copytruncate | |
notifempty | |
} |
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-05-14T20:36:25+00:00] ERROR: Server returned error for http://33.33.33.1:8889/search/node?q=ossec:[*%20TO%20*]%20NOT%20role:ossec_server&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000, retrying 5/5 in 37s | |
[2013-05-14T16:37:01-04:00] ERROR: #<NameError: undefined local variable or method `expected_end_range' for #<ChefZero::Solr::SolrParser:0x00000002719100>> | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/solr/solr_parser.rb:146:in `read_single_expression' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/solr/solr_parser.rb:94:in `read_expression' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/solr/solr_parser.rb:17:in `parse' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/endpoints/search_endpoint.rb:96:in `search' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/endpoints/search_endpoint.rb:14:in `get' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/rest_base.rb:29:in `call' | |
/var/lib/gems/1.9.1/gems/chef-zero-0.9.8/lib/chef_zero/rest_router.rb:21:in `block in c |
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
<ossec_config> | |
<global> | |
<email_notification>yes</email_notification> | |
<email_to>[email protected]</email_to> | |
<smtp_server>localhost</smtp_server> | |
<email_from>ossecm@srv3</email_from> | |
</global> | |
<client> | |
<server-ip>33.33.33.18</server-ip> |