Skip to content

Instantly share code, notes, and snippets.

View swade1987's full-sized avatar

Steve Wade swade1987

View GitHub Profile
@swade1987
swade1987 / gist:5ff854a4037c0afb30eb
Created February 4, 2016 00:41
berks upload result
PS C:\GIT\PDS\bamboo-cookbook> berks upload
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/webagent-cookie.rb:458: warning:
lready initialized constant HTTPClient::CookieManager
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/cookie.rb:8: warning: previous d
inition of CookieManager was here
E, [2016-02-04T00:37:15.474971 #6652] ERROR -- : Ridley::Errors::ClientError: SSL_connect returned=1 errno=0 state=err
: certificate verify failed
E, [2016-02-04T00:37:15.474971 #6652] ERROR -- : C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/
b/celluloid/responses.rb:29:in `value'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
@swade1987
swade1987 / gist:1a739334811b32dcc7a8
Created February 4, 2016 01:32
bamboo - main.tf
provider "aws" {
region = "${var.aws_region}"
}
module "base" {
source = "../base"
}
resource "aws_security_group" "core-services" {
name = "core-services"
@swade1987
swade1987 / gist:1dff9bf5c9ea1d1bf39a
Created February 4, 2016 01:43
chef provisioning ...
vpc_security_group_ids.3000218733: "" => "sg-2cb8754b"←[0m
←[0m←[1maws_instance.bamboo-server: Provisioning with 'chef'...←[21m←[0m
←[0m←[0maws_instance.bamboo-server (chef): Connecting to remote host via SSH...
aws_instance.bamboo-server (chef): Host: 54.69.167.80
aws_instance.bamboo-server (chef): User: root
aws_instance.bamboo-server (chef): Password: false
aws_instance.bamboo-server (chef): Private key: false
aws_instance.bamboo-server (chef): SSH Agent: false
@swade1987
swade1987 / gist:47446d71e3b08081c624
Created February 4, 2016 02:02
bamboo provisioning failure
←[0m←[0maws_instance.bamboo-server (chef): Connecting to remote host via SSH...
aws_instance.bamboo-server (chef): Host: 54.148.141.99
aws_instance.bamboo-server (chef): User: root
aws_instance.bamboo-server (chef): Password: false
aws_instance.bamboo-server (chef): Private key: false
aws_instance.bamboo-server (chef): SSH Agent: false
←[31mError applying plan:
1 error(s) occurred:
@swade1987
swade1987 / gist:b0e7fdd303def78609da
Created February 4, 2016 02:45
chef provisioning - SSL
aws_instance.bamboo-server (chef): (Reading database ... 51127 files and directories currently installed.)
←[0m←[0maws_instance.bamboo-server (chef): Preparing to unpack .../chef_12.6.0-1_amd64.deb ...
←[0m←[0maws_instance.bamboo-server (chef): Unpacking chef (12.6.0-1) ...
←[0m←[0maws_instance.bamboo-server (chef): Setting up chef (12.6.0-1) ...
←[0m←[0maws_instance.bamboo-server (chef): Thank you for installing Chef!
←[0m←[0maws_instance.bamboo-server (chef): Creating configuration files...
←[0m←[0maws_instance.bamboo-server (chef): Starting initial Chef-Client run...
←[0m←[0maws_instance.bamboo-server (chef): Starting Chef Client, version 12.6.0←[0m
←[0m←[0maws_instance.bamboo-server (chef): Creating a new client identity for bamboo-server using the validator key.←[0m
@swade1987
swade1987 / gist:f4db01a88c8ee762a31d
Created February 4, 2016 12:26
chef provisioning of ubuntu trusty
AMI ID - ubuntu-trusty-14.04-amd64-server-20150603 (ami-7f675e4f)
←[0m←[0maws_instance.bamboo-server (chef): Get:33 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty/main manpages-d
ev all 3.54-1ubuntu1 [1820 kB]
←[0m←[0maws_instance.bamboo-server (chef): Fetched 27.6 MB in 0s (31.8 MB/s)
←[0m←[0maws_instance.bamboo-server (chef): STDERR: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linu
x/linux-libc-dev_3.13.0-53.89_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
←[0m←[0m
←[0m←[0maws_instance.bamboo-server (chef): E: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?
@swade1987
swade1987 / gist:2d32e149319763640159
Last active February 4, 2016 14:06
error when running server recipe on Ubuntu Trusty 14.04
[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[37m+echo "If you encounter issues starting or stopping Bamboo Standalon
e Edition, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Bamboo+installation+g
uide"←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[37m echo ""←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[37m #if [ "$BAMBOO_HOME_MINUSD" != "" ]; then←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[37m # echo "Using BAMBOO_HOME: $BAMBOO_HOME"←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[0m * template[/opt/bamboo/bin/stop-bamboo.sh] action create
←[0m←[0maws_instance.bamboo-server (chef): ←[32m- update content in file /opt/bamboo/bin/stop-bamboo.sh from b1d015
to 1a7e5b←[0m
@swade1987
swade1987 / gist:496e4a526dacbca30527
Created February 4, 2016 14:12
bamboo-server client run
←[0m←[0maws_instance.bamboo-server (chef): Recipe: apt::default←[0m
←[0m←[0maws_instance.bamboo-server (chef): * bash[apt-get-update at compile time] action run
←[0m←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[32m- execute "bash" "/tmp/chef-script20160204-1494-vgefpm"←[0m
←[0m←[0maws_instance.bamboo-server (chef): ←[0m Converging 37 resources←[0m
←[0m←[0maws_instance.bamboo-server (chef): * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped
due to action :nothing)
←[0m←[0maws_instance.bamboo-server (chef): * bash[apt-get-update at compile time] action nothing (skipped due to actio
n :nothing)
←[0m←[0m
@swade1987
swade1987 / gist:4e3f278b605d5425b5ea
Created February 4, 2016 14:20
bamboo service from box itself
Stopping bamboo
Bamboo Server Edition
Version : 5.9.4
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m
If you encounter issues starting or stopping Bamboo Standalone Edition, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Bamboo+installation+guide
2016-02-04 13:55:49,423 INFO [localhost-startStop-1] [BootstrapLoaderListener] Starting BootstrapLoaderListener
2016-02-04 13:55:49,423 INFO [localhost-startStop-1] [lifecycle] *******************************
2016-02-04 13:55:49,423 INFO [localhost-startStop-1] [lifecycle] * Bamboo is starting up *
2016-02-04 13:55:49,424 INFO [localhost-startStop-1] [lifecycle] *******************************
2016-02-04 13:55:49,424 INFO [localhost-startStop-1] [ServletContextHolder] Setting servlet context: Bamboo
2016-02-04 13:55:49,442 INFO [localhost-startStop-1] [lifecycle] atlassian.org.osgi.framework.bootdelegation set to javax.servlet,javax.servlet.*,sun.*,com.sun.*,org.w3c.dom.*,org.apache.xerces.*
2016-02-04 13:55:50,814 INFO [localhost-startStop-1] [lifecycle] Starting Bamboo 5.9.4 (build #5919 Sat Aug 15 12:22:28 UTC 2015) using Java 1.8.0_72-internal from Oracle Corporation
2016-02-04 13:55:50,815 INFO [localhost-startStop-1] [lifecycle] Real path of servlet context: /usr/local/bamboo-5.9.4/atlassian-bambo