Skip to content

Instantly share code, notes, and snippets.

View cheeseplus's full-sized avatar
🎯
Focusing

Seth Thomas cheeseplus

🎯
Focusing
View GitHub Profile
have_library: checking for tgetnum() in -lncurses... -------------------- yes
"gcc -o conftest -I../../.ext/include/x86_64-solaris2.11 -I../.././include -I../.././ext/readline -I/opt/local/include -std=gnu99 -fPIC conftest.c -L. -L../.. -L/opt/local/lib -Wl,-R/opt/local/lib -L. -L/opt/local/lib -Wl,-R/opt/local/lib -m64 -Wl,-R -Wl,/root/.rbenv/versions/1.9.3-p484/lib -L/root/.rbenv/versions/1.9.3-p484/lib -lruby-static -lncurses -lpthread -lrt -lsocket -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:9:57: error: 'tgetnum' undeclared (first use in this function)
conftest.c:9:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
# -*- mode: ruby; -*-
Vagrant.configure("2") do |config|
config.vm.guest = :freebsd
# config.vm.box_url = "http://files.wunki.org/freebsd-10.0-amd64-wunki.box"
# config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/vmware/opscode_freebsd-9.2_chef-provisionerless.box"
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_freebsd-9.2_chef-provisionerless.box"
# config.vm.box = "freebsd-10.0-amd64-wunki"
config.vm.box = "opscode-freebsd-9.2"
config.vm.network "private_network", ip: "10.0.1.10"
config.omnibus.chef_version = :latest
package "riak-1.4.8" do
package_name "riak-1.4.8-FreeBSD-amd64.tbz"
source "http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.8/freebsd/9/"
action :install
version "1.4.8"
end
# Running tests:
riak::default#test_0001_installs riak = 0.01 s = .
riak::default#test_0002_responds to riak ping = 0.35 s = .
riak::default#test_0003_emits riak stats = 0.00 s = .
Finished tests in 0.368258s, 8.1465 tests/s, 8.1465 assertions/s.
3 tests, 3 assertions, 0 failures, 0 errors, 0 skips
@cheeseplus
cheeseplus / gist:4bd21a6fd7cc85644a14
Created August 13, 2014 16:26
packagecloud.io no worky for yum
Downloading repository file: https://packagecloud.io/basho/riak-cs.repo?os=centos&dist=6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
113 227 0 227 0 0 494 0 --:--:-- --:--:-- --:--:-- 5279
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.tocici.com
* epel: mirrors.cat.pdx.edu
* extras: mirrors.syringanetworks.net
* updates: centos.eecs.wsu.edu
@cheeseplus
cheeseplus / role
Last active August 29, 2015 14:05
sql_server::server recipe on ec2
projects/cookbooks/umbraco-cookbook master ✗ 172d ⚑ ◒
▶ knife ec2 server create --image ami-9ade1df2 --flavor m1.medium --region us-east-1 --user-data dat-boostrap.ps1 -x chef -P 'chef' -r 'role[sql_databass],recipe[sql_server::server]' --ssh-key aws-east
Instance ID: i-895146a4
Flavor: m1.medium
Image: ami-9ade1df2
Region: us-east-1
Availability Zone: us-east-1c
Security Groups: default
Tags: Name: i-895146a4
SSH Key: aws-east
@cheeseplus
cheeseplus / gist:93e98dfe14254882dd9f
Created September 27, 2014 03:18
vcair linux customization script
#!/bin/sh
if test -f "/etc/lsb-release" && grep -q DISTRIB_ID /etc/lsb-release; then
platform=`grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]'`
platform_version=`grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2`
elif test -f "/etc/debian_version"; then
platform="debian"
platform_version=`cat /etc/debian_version`
elif test -f "/etc/redhat-release"; then
@cheeseplus
cheeseplus / basho.repo
Last active August 29, 2015 14:07
CentOS 5, packagecloud, and alternate repo
[basho]
name=Basho Stable Repo
baseurl=http://yum.basho.com/el/5/products/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://yum.basho.com/gpg/RPM-GPG-KEY-basho
sslverify=true
@cheeseplus
cheeseplus / serverspec-fixes.md
Last active August 29, 2015 14:07
serverspec :(

ServerSpec, Test Kitchen, and Sanity

We're big fans of the ServerSpec, the RSpec-based testing framework, for functional testing of cookbooks. We're also big fans of working test and if you've been paying attention, changes in ServerSpec are wreaking a bit of havoc for those that are users of test kitchen.

What Happened?

The fine folks behind ServerSpec (Specinfra too) released [version 2][1] which brings some syntax changes and is based on Rspec 3. These changes seem like a generally good idea so why is this a problem? Busser, a component of test kitchen that executes tests including serverspec via plugins,currently pulls the latest gems to run it's tests. This means that if you didn't update your tests for Serverspec v2 then you are going to have a bad time.

Version 2 tl;dr

* package[riak-cs-control] action install[2014-11-17T22:16:14+00:00] INFO: Processing package[riak-cs-control] action install (riak-cs::control line 32)
================================================================================
Error executing action `install` on resource 'package[riak-cs-control]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed