Attributes are set differently from Chef 11 to Chef 12.
cookbooks/test/recipes/default.rb
node.set['foo'] = JSON.parse('[{"bar": true}]')
p node[:foo].first.class| // https://twitter.com/bahamas10_/status/545714690589200384 | |
| function add(x,y) { | |
| throw x + y; | |
| } | |
| try { | |
| add(2, 2); | |
| } catch(sum) { | |
| console.log(sum) | |
| }; |
| $ mmkdir ~~/stor/foo | |
| $ echo foo | mput ~~/stor/foo/a | |
| /bahamas10/stor/foo/a 4B | |
| $ echo bar | mput ~~/stor/foo/b | |
| /bahamas10/stor/foo/b 4B | |
| $ echo baz | mput ~~/stor/foo/c | |
| /bahamas10/stor/foo/c 4B | |
| $ mkdir foo | |
| $ ./manta-sync -v -r ~~/stor/foo ./foo | |
| sourcedir: <MantaFile: /bahamas10/stor/foo> |
| > fs.mkdirSync('test-dir', 0777) | |
| undefined | |
| > (fs.statSync('test-dir').mode & 0777).toString(8) | |
| '755' | |
| > process.version | |
| 'v0.10.33' |
I compiled openssl 1.0.1l to $LIBSSLBUILD before hand use the directions in the haproxy readme... then
$ make TARGET=solaris USE_OPENSSL=yes USE_STATIC_PCRE=1 ADDINC=-I$LIBSSLBUILD/include ADDLIB="-L$LIBSSLBUILD/lib -ldl" clean all
...
$ ./haproxy -vv | grep OpenSSL | head -2
Built with OpenSSL version : OpenSSL 1.0.1l 15 Jan 2015
Running on OpenSSL version : OpenSSL 1.0.1e 11 Feb 2013
rm -rf /var/tmp/ssl
mkdir -p /var/tmp/ssl
mkdir ~/src
cd ~/src
wget https://www.openssl.org/source/openssl-1.0.1l.tar.gz
wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.11.tar.gz
pfiles(1) is slow when gathering information about sockets.
This patch (https://www.illumos.org/issues/5397) sped it up immensely, but it is still slower than it should be. Looking at the time spent in syscalls when pfiles(1) is run from the patch we can see this:
pwrite 355720528
write 842822775
| #!/usr/bin/env bash | |
| s=( | |
| '#!/usr/bin/env bash' | |
| '' | |
| 's=(' | |
| ')' | |
| '' | |
| 'q=$(printf "\x27")' | |
| 'for ((i = 0; i < 3; i++ )); do' |
| #!/usr/bin/env node | |
| var util = require("util"); | |
| var source = [ | |
| '#!/usr/bin/env node', | |
| '', | |
| 'var util = require("util");', | |
| '', | |
| 'var source = [', |
| (as root) | |
| mkdir ~/src | |
| cd ~/src | |
| # install ruby | |
| wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz | |
| tar xf ruby-2.2.1.tar.gz | |
| cd ruby-2.2.1 | |
| ./configure --prefix=/opt/chef --with-opt-dir=/opt/local --enable-shared ac_cv_func_dl_iterate_phdr=no CFLAGS="-R -fPIC" rb_cv_have_signbit=no --disable-install-doc |