Skip to content

Instantly share code, notes, and snippets.


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: ""
2018/07/10 22:58:01 [INFO] command: empty terraform config, returning nil
metmajer /
Last active Jan 27, 2016
Wait for command to execute successfully
if [ $WAIT_INTERVAL_S -gt $WAIT_TIME_S ]; then
echo "Error: \$WAIT_INTERVAL_S must be <= \$WAIT_TIME_S"
exit 1
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
- 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 / agentpath
Last active Feb 17, 2016
Blog: How to Automate Enterprise Application Monitoring with Ansible
View agentpath
metmajer /
Created Feb 26, 2015
Ansible Logging To Elasticsearch

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 /
Last active Mar 31, 2019
Zoomable Sunburst with Labels

Zoomable Sunburst with Labels

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

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