Skip to content

Instantly share code, notes, and snippets.

View snowch's full-sized avatar

Chris Snow snowch

View GitHub Profile
@snowch
snowch / gist:9087879
Created February 19, 2014 08:06
xmlrpc from devcloud to xen
POST / HTTP/1.1
Content-Type: text/xml
User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport)
Cache-Control: no-cache
Pragma: no-cache
Host: 192.168.56.10
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 216
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>Status</name>
<value>Success</value>
</member>
<member>
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>VM.create</methodName>
<params>
<param>
<value>OpaqueRef:d4941108-eef1-956f-1fa0-e4091bb2f778</value>
</param>
<param>
<value>
<struct>
@snowch
snowch / auth.conf
Created April 21, 2014 05:54
Puppet auth.conf
vagrant@puppet:~$ cat /etc/puppet/auth.conf
# This is the default auth.conf file, which implements the default rules
# used by the puppet master. (That is, the rules below will still apply
# even if this file is deleted.)
#
# The ACLs are evaluated in top-down order. More specific stanzas should
# be towards the top of the file and more general ones at the bottom;
# otherwise, the general rules may "steal" requests that should be
# governed by the specific rules.
#
[ERROR] Failed to execute goal on project apache-stratos-load-balancer: Could not resolve dependencies for project org.apache.stratos.load.balancer:apache-stratos-load-balancer:pom:4.0.0-incubating: Failed to collect dependencies for [org.wso2.carbon:wso2carbon-core:zip:4.2.0 (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v3 (compile), org.apache.synapse:synapse-nhttp-transport:jar:2.1.2-wso2v3 (compile), org.apache.synapse:synapse-pipe-transport:jar:2.1.1-wso2v4 (compile), org.apache.synapse:synapse-core:jar:2.1.2-wso2v3 (compile), org.apache.synapse:synapse-tasks:jar:2.1.2-wso2v3 (compile), org.apache.synapse:synapse-extensions:jar:2.1.2-wso2v3 (compile), org.wso2.carbon:org.wso2.carbon.mediation.initializer:jar:4.2.0 (compile), org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar:4.2.0 (compile), org.wso2.carbon:org.wso2.carbon.mediation.dependency.mgt:jar:4.2.0 (compile), org.wso2.carbon:org.wso2.carbon.transport.mgt:jar:4.2.0 (compile), org.wso2.carbon:org.wso2.carbon.transport.http:jar:4.2.0
@snowch
snowch / config_sh_output_log
Created April 27, 2014 06:41
Config.sh output log
This script will install and configure puppet agent, do you want to continue [y/n]y
--2014-04-27 05:44:36-- http://169.254.169.254/latest/user-data
Connecting to 169.254.169.254:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-04-27 05:44:37 ERROR 404: Not Found.
Please provide stratos service-name:php
Please provide puppet master IP:192.168.56.5
Please provide puppet master hostname [puppet.stratos.org]:puppet.stratos.com
@snowch
snowch / maven debug output
Last active August 29, 2015 14:01
Stratos mvn build issue
Listening for transport dt_socket at address: 8888
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.8.0-19-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/vagrant/.m2/settings.xml
INFO global: Vagrant version: 1.6.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.6.2\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
INFO global: Plugins:
@snowch
snowch / init.pp
Created October 5, 2014 15:27
puppet erlang package install
class erlang($version = '1:17.3') {
Apt::Pin <| |> -> Package <| |>
Apt::Source <| |> -> Package <| |>
apt::source { 'erlang_repo':
location => 'http://packages.erlang-solutions.com/ubuntu',
repos => 'contrib',
key => 'A14F4FCA'
}
@snowch
snowch / buildsource.pp
Created October 5, 2014 15:42
puppet build from source
#
# Depends on: puppetlabs/stdlib
#
define buildsource(
$dir = $title,
$user = 'root',
$path = '/usr/bin:/bin',
$timeout = '0',
$options = ''
) {