Skip to content

Instantly share code, notes, and snippets.

[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Processing group[couchdb]
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: group[couchdb] using Chef::Provider::Group::Groupadd
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Processing user[couchdb]
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: user[couchdb] using Chef::Provider::User::Useradd
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Setting user[couchdb] comment to CouchDB user
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Setting user[couchdb] home to
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Executing usermod -c 'CouchDB user' -d couchdb
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: ---- Begin output of usermod -c 'CouchDB user' -d couchdb ----
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: STDOUT:
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: STDERR: Usage: usermod [options] LOGIN
# token is created first
mkdir -p /etc/chef/
echo "tokentokentoken" > /etc/chef/validation_token
# output from chef-solo run...
[Tue, 04 Aug 2009 14:49:32 -0700] DEBUG: Processing execute[Register client node with Chef Server]
[Tue, 04 Aug 2009 14:49:32 -0700] DEBUG: execute[Register client node with Chef Server] using Chef::Provider::Execute
[Tue, 04 Aug 2009 14:49:32 -0700] DEBUG: Executing /usr/bin/env chef-client -t `cat /etc/chef/validation_token`
[Tue, 04 Aug 2009 14:49:36 -0700] DEBUG: ---- Begin output of /usr/bin/env chef-client -t `cat /etc/chef/validation_token` ----
[Tue, 04 Aug 2009 14:49:36 -0700] DEBUG: STDOUT: INFO: Starting Chef Run
from twisted.enterprise import adbapi
from twisted.python import log
import MySQLdb
class ReconnectingConnectionPool(adbapi.ConnectionPool):
"""Reconnecting adbapi connection pool for MySQL.
This class improves on the solution posted at
http://www.gelens.org/2008/09/12/reinitializing-twisted-connectionpool/
by checking exceptions by error code and only disconnecting the current
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: Processing package[couchdb]
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: package[couchdb] using Chef::Provider::Package::Apt
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: Checking apt-cache policy for couchdb
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: Current version is nil
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: Current version is 0.8.0-2
[Tue, 01 Sep 2009 22:12:06 -0700] INFO: Installing package[couchdb] version 0.8.0-2
[Tue, 01 Sep 2009 22:12:06 -0700] DEBUG: Executing apt-get -q -y install couchdb=0.8.0-2
^CFATAL: SIGINT received, stopping
case node[:platform]
when "debian", "ubuntu"
%w{build-essential erlang libicu-dev libmozjs-dev libcurl4-openssl-dev}.each {|pkg| package(pkg) }
end
execute "download_couchdb" do
user "root"
cwd "/tmp"
command "wget http://mirror.uoregon.edu/apache/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz"
creates "/tmp/apache-couchdb-0.9.1.tar.gz"
; CouchDB Configuration Settings
; Custom settings should be made in this file. They will override settings
; in default.ini, but unlike changes made to default.ini, this file won't be
; overwritten on server upgrade.
[couchdb]
;max_document_size = 4294967296 ; bytes
[httpd]
#!/usr/bin/python
import os
from couchdbkit import Server
from couchdbkit.loaders import FileSystemDocsLoader
server = Server()
cwd = os.getcwd()
for node in os.listdir(cwd):
#!/bin/bash
###############################################################################
# mkscript is a tool to quickly create executable script files
#
# Instead of:
# echo '#!/usr/bin/python' > test.py
# chmod a+x test.py
# Just do:
# mkscript test.py
make[3]: Entering directory `/home/garret/collectd/collectd-4.8.0/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DPREFIX='"/opt/collectd"' -DCONFIGFILE='"/opt/collectd/etc/collectd.conf"' -DLOCALSTATEDIR='"/opt/collectd/var"' -DPKGLOCALSTATEDIR='"/opt/collectd/var/lib/collectd"' -DPIDFILE='"/opt/collectd/var/run/collectd.pid"' -DPLUGINDIR='"/opt/collectd/lib/collectd"' -DPKGDATADIR='"/opt/collectd/share/collectd"' -Wall -Werror -g -O2 -MT iptables.lo -MD -MP -MF .deps/iptables.Tpo -c -o iptables.lo iptables.c
gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/opt/collectd\" -DCONFIGFILE=\"/opt/collectd/etc/collectd.conf\" -DLOCALSTATEDIR=\"/opt/collectd/var\" -DPKGLOCALSTATEDIR=\"/opt/collectd/var/lib/collectd\" -DPIDFILE=\"/opt/collectd/var/run/collectd.pid\" -DPLUGINDIR=\"/opt/collectd/lib/collectd\" -DPKGDATADIR=\"/opt/collectd/share/collectd\" -Wall -Werror -g -O2 -MT iptables.lo -MD -MP -MF .deps/iptables.Tpo -c iptables.c -fPIC -DPIC -o .libs/iptables.o
iptables.c:55: error: conflicti
test1:/tmp/collectd-4.8.0 !ldd
ldd /opt/collectd/lib/collectd/curl_json.so
linux-vdso.so.1 => (0x00007fffa05fe000)
libyajl.so.1 => not found
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f279809d000)
libidn.so.11 => /usr/lib/libidn.so.11 (0x00007f2797e69000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007f2797c5a000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007f2797a11000)
librt.so.1 => /lib/librt.so.1 (0x00007f2797808000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f27975db000)