BOOM Analytics: Exploring Data-Centric, Declarative Programming for the Cloud
I hereby claim:
- I am gregbuehler on github.
- I am gregbuehler (https://keybase.io/gregbuehler) on keybase.
- I have a public key whose fingerprint is F49C 5DF8 93A2 9CE3 5DEF 9C5A 7DCB 9B26 1D3A 88A5
To claim this, I am signing this object:
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
| - name: register systems | |
| shell: foo.py {{ item }} | |
| with_items: targets | |
| register: registered_systems | |
| - name: toggle baz | |
| shell: bar.py {{ item }} | |
| with_items: registered_systems.results |
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 pg = require('pg'); | |
| var pg_cs = "tcp://gbuehler@localhost/bigbro"; | |
| exports.disconnect = function pg_disconnect() { | |
| pg.end() | |
| }; | |
| exports.pg_query = function pg_query(sql) { | |
| console.log("database.pg_query: %s", sql); |
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
| vars: | |
| java_home: /opt/java/jdk1.7 | |
| tasks: | |
| - shell: echo $PATH | |
| register: initial_path | |
| - name: do work | |
| shell: run_java_foo.sh | |
| environment: |
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
| config: | |
| name: foo | |
| owner: bar |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| boxes = [ | |
| { | |
| :hostname => "redacted", | |
| :ip => 'redacted', | |
| :ports => [ |
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
| upstream gitlab { | |
| server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; | |
| } | |
| # This is a normal HTTP host which redirects all traffic to the HTTPS host. | |
| # Replace git.example.com with your FQDN. | |
| server { | |
| listen *:80; | |
| server_name gitlab.example.com gitlab; | |
| server_tokens off; |
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
| - name: Check if EPEL is installed | |
| shell: yum repolist | grep epel | wc -l | |
| register: epel_installed | |
| - name: Install EPEL5 package | |
| yum: name={epel5_rpm} state=installed | |
| when: (epel_installed == 0) and (ansible_distribution_version.find('5.') != -1) | |
| - name: Install EPEL6 package | |
| yum: name={epel6_rpm} state=installed |
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
| foo: | |
| version: "1.0.0" | |
| server: | |
| url: "http://www.example.com/releases/{{ foo.version }}/server/server-{{ foo.version }}.tar.gz" | |
| client: | |
| url: "http://www.example.com/releases/{{ foo.version }}/client/client-{{ foo.version }}.tar.gz" |