Testing Mac Platforms with Test Kitchen
We'll assume an OS X Mavericks (10.9) box here.
- Vagrant's VMware Fusion provider
This is happening thanks to a refactoring of the data manipulation code formerly in
There are now 3 main configuration blocks that can be placed in the various levels:
driver: Configurtation relavent to Kitchen drivers. This is a combination of what was
driver_config. Backwards compatability is guarenteed with the legacy formats for a time, then will be deprecated (with a warning when encountered), then will be removed in a future release.
provisioner: Configuration relating to the automation tool being used. Currently supporting
"chef_zero". Previously several Chef-related config paths were dumped in a Suite block, namely
roles_path, etc. These will be supported for backwards compatability, then will be deprecated (with a warning when encountered), then will be removed in a future release.
busser: Configuration rela
I've been using this technique in most of my Ruby projects lately where Ruby versions are required:
.rbenv-versioncontaining the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far...
rvm --create --rvmrc "1.9.3@myapp") and edit the
environment_id=line to fetch the Ruby version from
Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with
There is a long standing issue in Ruby where the net/http library by default does not check the validity of an SSL certificate during a TLS handshake. Rather than deal with the underlying problem (a missing certificate authority, a self-signed certificate, etc.) one tends to see bad hacks everywhere. This can lead to problems down the road.
From what I can see the OpenSSL library that Rails Installer delivers has no certificate authorities defined. So, let's go fetch some from the curl website. And since this is for ruby, why don't we download and install the file with a ruby script?
Note: total experiment and hack, looks nasty, could be awesome:
brew install polipo, with Ubuntu:
apt-get install polipo)
polipo-consolesomewhere useful (perhaps
|# Copyright (c) 2018 Chef Software, Inc. and/or applicable contributors|
|# Licensed under the Apache License, Version 2.0 (the "License");|
|# you may not use this file except in compliance with the License.|
|# You may obtain a copy of the License at|
|///! Simple, blocking, one shot UDP client and server.|
|/// This shows a server that recieves one UDP datagram and returns the reversed contents of the|
|/// source datagram back to the client. There is a short pause on the server side which simulates|
|/// some expensive work.|
|/// # Example|
|/// Create a Cargo project with:|
|# Change directory to the root of your `habitat-sh/habitat` repo checkout|
|# cd /path/to/habiatat-sh/habitat|
|# Cleanup any existing Studio instances--keep it clean to be safe!|
|hab studio rm|
|# Enter the studio with the `core` key and prevent a Supervisor from starting|
|env HAB_ORIGIN=core HAB_STUDIO_SUP=false hab studio enter|
|# Build a static `hab` CLI for the `x86_64-linux-kernel2` target|