Skip to content

Instantly share code, notes, and snippets.

---
# ^^^ 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.
{
"title": "Tweets Search",
"rows": [
{
"title": "Options",
"height": "50px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
# docker build -t="rails" .
FROM ubuntu:12.04
RUN apt-get update
## MYSQL
RUN apt-get install -y -q mysql-client libmysqlclient-dev
## RUBY
@stevepereira
stevepereira / gist:6816410
Created October 3, 2013 20:15
wave-cookbooks/base/rethink.rb add "recipe[base::rethink]", to roles/base.rb and vagrant provision
#
# Cookbook Name:: wave-rethink
# Recipe:: default
#
# Copyright (C) 2013 Steve Pereira
#
# All rights reserved - Do Not Redistribute
#
package "wget"
@stevepereira
stevepereira / gist:6829649
Created October 4, 2013 17:33
file goes under input, pipe goes under output
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"
}
@stevepereira
stevepereira / gist:6939555
Created October 11, 2013 18:20
Redis config, she no work.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
daemon
#debug
#quiet
user haproxy
group haproxy
stats socket /var/run/haproxy.sock
$ grep 'node\[:network\]\[:interfaces\].' \#chef.log
10:15 < mkent_> node[:network][:interfaces][:eth1][:addresses]
22:24 <+Damm> msf, just pulling in the node[:network][:interfaces] attributes
20:44 < randybias> node[:network][:interfaces][:eth0][:addresses]
09:13 < sinBot> so fujin if I wanted to use that in an erb template, it'd be <%= @node[:network][:interfaces]["en1"]["addresses"].select{address}.flatten.to_str %> ?
12:27 < cwj> if i have an ipv4 ip address set on eth0, will it always be in @node[:network][:interfaces][:eth0][1] ?
02:19 < pluesch0r> however, i don't seem to be able to access @node[:network][:interfaces]... from inside the attributes file.
19:52 <@jtimberman> or node[:network][:interfaces][:eth0][:addresses][0]
20:09 < seryl> well, it's searchable. I'm trying the @node[:network][:interfaces][:eth0][:addresses][0] route, but getting blanks right now, playing around with it in chef solo
20:29 < kallistec> pp node[:network][:interfaces].current_attribute
doctor
tap homebrew/dupes
tap homebrew/binary
tap phinze/homebrew-cask
tap caskroom/versions
tap homebrew/games
update
---
# ^^^ 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.
---
# ^^^ 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.