Skip to content

Instantly share code, notes, and snippets.

View bascht's full-sized avatar
📢
Setting all the statuses.

Sebastian Schulze bascht

📢
Setting all the statuses.
View GitHub Profile
task:
- name: This
template: src=templates/thesame.conf.j2 dest=/etc/this.conf
- name: That
template: src=templates/thesame.conf.j2 dest=/etc/that.conf

Keybase proof

I hereby claim:

  • I am bascht on github.
  • I am bascht (https://keybase.io/bascht) on keybase.
  • I have a public key whose fingerprint is A21D 0E0E 0517 04FF 599C 4C84 7406 AC3E BC21 CEC5

To claim this, I am signing this object:

@bascht
bascht / gist:aa79faab75b95fbea479
Created May 13, 2014 06:07
list of loaded gems
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.6.2
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rake-10.1.1
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/i18n-0.6.9
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/minitest-4.7.5
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/multi_json-1.10.0
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/atomic-1.1.16
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/thread_safe-0.2.0
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/tzinfo-0.3.39
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.5
/home/vagrant/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/builder-3.1.4
@bascht
bascht / json
Created November 29, 2013 17:00
Processing by Api::V1::HostsController#create as JSON
Parameters: {"capabilities"=>"build", "host"=>{"ptable_id"=>1, "operatingsystem_id"=>1, "medium_id"=>5, "type"=>"Host::Managed", "name"=>"…", "environment_id"=>8, "provision_method"=>"build", "domain_id"=>"1", "architecture_id"=>"1", "compute_attributes"=>{"path"=>"…", "volumes_attributes"=>{"new_volumes"=>{"name"=>"Hard disk", "thin"=>true, "size_gb"=>10, "datastore"=>"…"}, "0"=>{"name"=>"Hard disk", "thin"=>true, "size_gb"=>10, "datastore"=>"…"}}, "interfaces_attributes"=>{"0"=>{"network"=>"VLan496"}, "new_interfaces"=>{"network"=>"…"}}, "start"=>1, "memory_mb"=>1024, "cluster"=>"…", "power_action"=>"start", "cpus"=>1}, "build"=>1, "compute_resource_id"=>1, "enabled"=>1, "subnet_id"=>1}}
{
"capabilities": "build",
"host": {
"operatingsystem_id": 1,
"environment_id": 8,
"compute_resource_id": 1,
"ptable_id": 1,
"build": 1,
"subnet_id": 1,
"enabled": 1,
{
"type": "shell",
"script": "scripts/{{.InsertBuilderTypeHere}}.sh",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
}
# Everything is fine until I add the line
# "post-processors": [ "vagrant" ]
 packer validate template.json
Template validation failed. Errors are shown below.
Errors validating build 'virtualbox'. 1 error(s) occurred:
* Failed creating VirtualBox driver: exec: "VBoxManage": executable file not found in $PATH
# Everything is fine until I add the line
# "post-processors": [ "vagrant" ]
 packer validate template.json
Template validation failed. Errors are shown below.
Errors validating build 'virtualbox'. 1 error(s) occurred:
* Failed creating VirtualBox driver: exec: "VBoxManage": executable file not found in $PATH
@bascht
bascht / README.md
Created July 25, 2013 16:58
Small KVB Monitor for dashing
@bascht
bascht / patch-insecure-defaults-vagrant-1.0.7.patch
Created June 19, 2013 08:09
For those who just want to quickly patch their 'old' Vagrant 1.0.x installations until they can upgrade to hashicorp/vagrant#1785
From 021dc42756dc44e17d3b2555b0652b96dea39559 Mon Sep 17 00:00:00 2001
From: Sebastian Schulze <github.com(at)bascht.com>
Date: Wed, 19 Jun 2013 10:05:08 +0200
Subject: [PATCH] Quickly patch Vagrants insecure VirtualBox defaults [GH-1785]
---
lib/vagrant/driver/virtualbox_4_0.rb | 2 +-
lib/vagrant/driver/virtualbox_4_1.rb | 2 +-
lib/vagrant/driver/virtualbox_4_2.rb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)