Skip to content

Instantly share code, notes, and snippets.

View sroegner's full-sized avatar

Steffen Roegner sroegner

View GitHub Profile
@sroegner
sroegner / start_accumulo.sh
Last active April 22, 2016 16:03
Accumulo cluster with three tserver containers
#!/bin/bash
tag=docker.io/sroegner/accumulo
container_name=accumulo-cluster
accumulo_net=accumulo-docker-local
if [ "$1" = "-clean" -o "$1" = "-shutdown" ]
then
echo "Shutting down all Accumulo containers ($1)"
for c in namenode zookeeper tserver0 tserver1 tserver2 master proxy
@sroegner
sroegner / gist:9508741
Created March 12, 2014 15:02
creating a simple serverlist string from an array in jinja
{%- set lst = ['servera', 'serverb', 'serverc'] %}
{%- set s = 'ldap://' + ',ldap://'.join(lst) %}
/tmp/gaga:
file.managed:
- contents: {{ s }}
# produces ldap://servera,ldap://serverb,ldap://serverc
install-my-stuff:
pkg.installed:
- names:
- nginx
- vim-enhanced
@sroegner
sroegner / gist:8337806
Created January 9, 2014 17:04
salt-cloud provider config example with vpc
myprovider:
provider: ec2
ssh_interface: private_ips
id: JHHJHUHLLJLKKLK>NKLL
key: 'lnjfelvehvho4of24fn2nf02[fn3ov3sfk'
private_key: /etc/salt/automation.pem
keyname: automation
securitygroupid:
- sg-abcdef12
- sg-abcdef13
@sroegner
sroegner / gist:8271518
Last active January 2, 2016 07:39
simple salt example for mongodb on ubuntu
/srv/salt/top.sls
base:
'*':
- mongodb
/srv/salt/mongodb/init.sls
@sroegner
sroegner / gist:4198268
Created December 3, 2012 21:31
reproducing rspec-hiera-puppet example
>>> ./modules/example/spec/classes/example_spec.rb
describe "example" do
let(:hiera_data) { { :foo_message => "bar" } }
it { should contain_notify("foo").with_message("bar") }
end
>>> ./modules/example/spec/manifests/site.pp #this just exists because rspec-puppet appears to insist on it?)
@sroegner
sroegner / gitlab_ubuntu.log
Created October 28, 2012 14:39
puppet-gitlab log with debian-wheezy-x64.box
[gitlab] Forcing shutdown of VM...
[gitlab] Destroying VM and associated drives...
[gitlab] Box ubuntu1204-amd64 was not found. Fetching box from specified URL...
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: http://sebian.yasaw.net/pub/debian-wheezy-x64.box
[vagrant] Extracting box...
[vagrant] Verifying box...
[vagrant] Cleaning up downloaded box...
[gitlab] Importing base box 'ubuntu1204-amd64'...
[gitlab] The guest additions on this VM do not match the install version of