This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ken@kb puppetdb]# PGDATA=~/Library/Application\ Support/Postgres93/var/ pg_ctl status | |
pg_ctl: server is running (PID: 73637) | |
/Applications/Postgres.app/Contents/Versions/9.3/bin/postgres | |
ruby-1.9.3-p547@puppetdb (git)-[1.6.x] | |
[ken@kb puppetdb]# curl 'http://localhost:8080/v3/facts/facterversion' | |
[ { | |
"certname" : "anawdlxglhmtoaxywidwginvgyeeqwcslixvmerweuzsefktyk", | |
"name" : "facterversion", | |
"value" : "1.7.3" | |
} ]% ruby-1.9.3-p547@puppetdb (git)-[1.6.x] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'facter' | |
require 'pp' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ken@kb classifier]# lein run --config classifier.conf | |
Exception in thread "main" java.lang.IllegalStateException: Unable to find bootstrap.cfg file via --bootstrap-config command line argument, current working directory, or on classpath, compiling:(/private/var/folders/21/g1xxs_ws1rx3vc4w4lbdwbxh0000gp/T/form-init4078273981487895119.clj:1:142) | |
at clojure.lang.Compiler.load(Compiler.java:7142) | |
at clojure.lang.Compiler.loadFile(Compiler.java:7086) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ken@kb puppetdb]# openssl s_client -connect kb.local:8081 -cert /Users/ken/.puppet/ssl/certs/kb.local.pem -certform PEM -key ~/.puppet/ssl/private_keys/kb.local.pem -CAfile ~/.puppet/ssl/certs/ca.pem -ssl3 | |
CONNECTED(00000003) | |
depth=1 /CN=Puppet CA: kb.local | |
verify return:1 | |
depth=0 /CN=kb.local | |
verify return:1 | |
--- | |
Certificate chain | |
0 s:/CN=kb.local | |
i:/CN=Puppet CA: kb.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
require 'rubygems' | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'pp' | |
def replace_catalog(catalog) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ken@kb puppetdb]# telnet 0 8080 | |
Trying 0.0.0.0... | |
Connected to 0. | |
Escape character is '^]'. | |
POST /v3/commands HTTP/1.1 | |
Accept: application/json | |
Content-Type: application/json | |
Host: foo | |
Content-Length: 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################### | |
# Init settings for puppetdb | |
########################################### | |
# Location of your Java binary | |
# Debian | |
if [ -f /usr/lib/jvm/java-7-openjdk-amd64/bin/java ]; then | |
JAVA_BIN="/usr/lib/jvm/java-7-openjdk-amd64/bin/java" | |
elif [ -f /usr/lib/jvm/java-7-openjdk-i386/bin/java ]; then | |
JAVA_BIN="/usr/lib/jvm/java-7-openjdk-i386/bin/java" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@localhost:/etc/default# apt-get dist-upgrade | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Calculating upgrade... Done | |
The following packages will be upgraded: | |
puppetdb | |
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 21.7 MB of archives. | |
After this operation, 434 kB of additional disk space will be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@localhost:/etc/apt# grep -v '^#' sources.list | sort | uniq | |
deb http://security.ubuntu.com/ubuntu precise-security main restricted | |
deb http://security.ubuntu.com/ubuntu precise-security multiverse | |
deb http://security.ubuntu.com/ubuntu precise-security universe | |
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted | |
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ precise universe | |
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Tue May 6 19:50:00 on ttys006 | |
ruby-2.0.0-p353 | |
[ken@kb ~]# cd Development/puppetdb-vagrant | |
ruby-2.0.0-p353 (git)-[master] | |
[ken@kb puppetdb-vagrant]# vagrant status | |
Current machine states: | |
centos-5.10-64-nocm not created (vmware_fusion) | |
centos-6.5-64-nocm not running (vmware_fusion) | |
debian-7.4-64-nocm not created (vmware_fusion) |