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
~/clipboard [ssl] $ git branch -a | |
invites | |
master | |
* ssl | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/annotations | |
remotes/origin/gary | |
remotes/origin/master | |
remotes/origin/riaksearchHackery | |
remotes/origin/setupEnvAdditions |
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
#!/bin/bash | |
# Minimal Puppet Bootstrap script | |
sudo apt-get -y install rubygems libopenssl-ruby libaugeas-ruby | |
wget http://puppetlabs.com/downloads/gems/facter-1.5.7.gem | |
wget http://puppetlabs.com/downloads/gems/puppet-2.6.1.gem | |
sudo gem install facter-1.5.7.gem | |
sudo gem install puppet-2.6.1.gem |
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
node node-01 { | |
include base, nginx, nginx::clipboard | |
package { "git-core": | |
ensure => present, | |
} | |
vcsrepo { "/usr/src/clipboard-release": | |
ensure => present, | |
provider => git, |
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
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Cannot find definition Nodejs::Nginxproxymember at line 5 on node nginx-01.chicago.il.private.test.clpbrd.com | |
warning: Not using cache on failed catalog | |
err: Could not retrieve catalog; skipping run | |
# modules/nodejs/manifests/init.pp | |
class nodejs { | |
@@nginxproxymember { "${fqdn}": | |
url => "${fqdn}:3000", | |
} |
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
#!upstart | |
description "clipboard.com app server" | |
author "Ken Perkins & Mark Dawson (c) 2011" | |
env NAME=clipboard-app | |
env APP=clipboard-app.js | |
env LOGFILE=/home/clipboard/clipboard-app.log | |
env ERRORFILE=/home/clipboard/clipboard-app-error.log | |
env HOME="/home/clipboard/node/apps" |
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
config.vm.provision :puppet do |puppet| | |
puppet.pp_path = "/Users/ken/src/clipboard-config" | |
puppet.module_path = "/Users/ken/src/clipboard-config/modules" | |
puppet.manifests_path = "/Users/ken/src/clipboard-config/manifests" | |
puppet.manifest_file = "clipboard-onebox.pp" | |
end | |
output from vagrant up | |
=============================================================== |
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@lucid32:/puppet/manifests# puppet apply --environment test --modulepath '/puppet/modules-0' clipboard-onebox-full.pp --debug | |
info: Loading facts in acpi_available | |
info: Loading facts in interfaces | |
warning: Could not retrieve fact fqdn | |
warning: Host is missing hostname and/or domain: lucid32 | |
debug: importing '/puppet/modules-0/ssh/manifests/init.pp' in environment test | |
debug: Automatically imported ssh from ssh into test | |
debug: importing '/puppet/modules-0/ssh/manifests/params.pp' in environment test | |
debug: Automatically imported ssh::params from ssh/params into test | |
debug: importing '/puppet/modules-0/ssh/manifests/install.pp' in environment test |
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
class clipboard-src::release { | |
require git, users::admin | |
vcsrepo { "/usr/local/src/clipboard-release": | |
ensure => present, | |
provider => git, | |
source => "[email protected]:clipboard/release.git", | |
require => Class["users::admin", "git"], | |
} |
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@dev:~# riak console | |
Attempting to restart script through sudo -u riak | |
Exec: /usr/lib/riak/erts-5.8.4/bin/erlexec -boot /usr/lib/riak/releases/1.0.0/riak -embedded -config /etc/riak/app.config -args_file /etc/riak/vm.args -- console | |
Root: /usr/lib/riak | |
{error_logger,{{2011,12,5},{15,34,27}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]} | |
{error_logger,{{2011,12,5},{15,34,27}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.152>,<0.17.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,451}],[]]} |
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@dev:~# riak stop | |
Attempting to restart script through sudo -u riak | |
Node '[email protected]' not responding to pings. | |
root@dev:~# riak ping | |
Attempting to restart script through sudo -u riak | |
Node '[email protected]' not responding to pings. | |
root@dev:~# riak start | |
Attempting to restart script through sudo -u riak |
OlderNewer