Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Etmajer metmajer

View GitHub Profile
View terraform-destroy.log
$ terraform destroy -auto-approve
2018/07/10 22:58:01 [INFO] Terraform version: 0.11.7
2018/07/10 22:58:01 [INFO] Go runtime version: go1.10.1
2018/07/10 22:58:01 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.7/bin/terraform", "destroy", "-auto-approve"}
2018/07/10 22:58:01 [DEBUG] Attempting to open CLI config file: /Users/metmajer-bi/.terraformrc
2018/07/10 22:58:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/07/10 22:58:01 [INFO] CLI command args: []string{"destroy", "-auto-approve"}
2018/07/10 22:58:01 [TRACE] module source: "github.com/metmajer/terraform-aws-ec2"
2018/07/10 22:58:01 [INFO] command: empty terraform config, returning nil
@metmajer
metmajer / wait-for-cmd.sh
Last active Jan 27, 2016
Wait for command to execute successfully
View wait-for-cmd.sh
#!/bin/bash
WAIT_CMD=$1
WAIT_TIME_S=${2:-10}
WAIT_INTERVAL_S=${WAIT_INTERVAL_S:-1}
WAIT_NUM_LOOPS=$(($WAIT_TIME_S / $WAIT_INTERVAL_S))
if [ $WAIT_INTERVAL_S -gt $WAIT_TIME_S ]; then
echo "Error: \$WAIT_INTERVAL_S must be <= \$WAIT_TIME_S"
exit 1
fi
@metmajer
metmajer / playbook.yml
Last active Feb 17, 2016
Blog: How to Automate Enterprise Application Monitoring with Ansible - Part 2
View playbook.yml
---
- hosts: dynatrace-server
roles:
- role: Dynatrace.Dynatrace-Server
dynatrace_server_do_pwh_connection: yes
dynatrace_server_pwh_connection_hostname: dynatrace-pwh
dynatrace_server_pwh_connection_port: 5432
dynatrace_server_pwh_connection_dbms: postgresql
dynatrace_server_pwh_connection_database: dynatrace-pwh
dynatrace_server_pwh_connection_username: dynatrace
@metmajer
metmajer / agentpath
Last active Feb 17, 2016
Blog: How to Automate Enterprise Application Monitoring with Ansible
View agentpath
-agentpath:/opt/dynatrace/agent/lib/libdtagent.so=name=java-agent,collector=dynatrace.company.com
@metmajer
metmajer / README.md
Created Feb 26, 2015
Ansible Logging To Elasticsearch
View README.md

Ansible Logging To Elasticsearch

Turns Ansible log outputs into plain JSON strings and sends them to an Elasticsearch cluster.

Place the script in your playbook's plugins/callbacks/ directory.

@metmajer
metmajer / README.md
Last active Mar 31, 2019
Zoomable Sunburst with Labels
View README.md

Zoomable Sunburst with Labels

@metmajer
metmajer / README.md
Last active Dec 12, 2015
Simple time series data modeling with dataseries.js.
View README.md

Simple time series data modeling composed of a trend, seasonality and random component with dataseries.js.