short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
; Example configuration file for inputexec | |
[DEFAULT] | |
; ---traceback : Include full stack trace on exception | |
#traceback = | |
## Source | |
[source] | |
; --source-file : The source to read from (e.g /dev/input/event0) | |
file = /dev/input/by-id/usb-MICROSOFT_SAM_0.1.0000-if01-event-mouse |
This snippet is a sample showing how to implement CloudWatch Logs streaming to ElasticSearch using terraform
.
I wrote this gist
because I didn't found a clear, end-to-end example on how to achieve this task. In particular,
I understood the resource "aws_lambda_permission" "cloudwatch_allow"
part by reading a couple of bug reports plus
this stackoverflow post.
The js
file is actually the Lambda function automatically created by AWS when creating this pipeline through the
web console. I only added a endpoint
variable handling so it is configurable from terraform
.
sudo yum update | |
sudo yum install -y tar wget | |
# Install Mesos dependencies | |
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
#sudo vi /etc/yum.repos.d/wandisco-svn.repo and add the following content | |
#[WANdiscoSVN] | |
#name=WANdisco SVN Repo 1.9 | |
#enabled=1 | |
#baseurl=http://opensource.wandisco.com/centos/7/svn-1.9/RPMS/$basearch/ | |
#gpgcheck=1 |
--- | |
# ^^^ 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. |
#!/bin/bash | |
curl -L -O -H "Cookie: oraclelicense=accept-securebackup-cookie" $1 | |
#ORACLE Solaris download links | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.iso | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.usb | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.iso | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.usb | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.iso #c09f40ed91d43b0adf109c124154a2b4 | |
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-vbox.ova #448619f56f48cd6dc7490ce379599f9a |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
ANSIBLE_PATH = '.' # path targeting Ansible directory (relative to Vagrantfile) | |
# Set Ansible roles_path relative to Ansible directory | |
ENV['ANSIBLE_ROLES_PATH'] = File.join(ANSIBLE_PATH, 'vendor', 'roles') |
# | |
# Vagrantfile for testing | |
# | |
Vagrant::configure("2") do |config| | |
# the Chef version to use | |
config.omnibus.chef_version = "11.4.4" | |
def configure_vbox_provider(config, name, ip, memory = 384) | |
config.vm.provider :virtualbox do |vbox, override| |
# | |
# Vagrantfile for testing | |
# | |
def configure_provider provider,config,cfg_lmbd | |
config.vm.provider provider do |prvdr,override| | |
cfg_lmbd.call(prvdr,override) | |
end | |
end | |
def vbox_config name,ip,memory_size=384 |