Created
June 26, 2012 03:28
-
-
Save bbeck/2993091 to your computer and use it in GitHub Desktop.
Asgard Issues
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
[2012-06-26 03:25:58,712] [pool-2-thread-2] com.netflix.asgard.ConfigService Initializing... | |
[2012-06-26 03:25:59,417] [pool-2-thread-2] com.netflix.asgard.InitService Initializing... | |
[2012-06-26 03:25:59,437] [pool-2-thread-2] com.netflix.asgard.RegionService Initializing... | |
[2012-06-26 03:26:03,132] [pool-2-thread-2] com.netflix.asgard.MonkeyPatcherService Initializing... | |
[2012-06-26 03:26:15,571] [http-bio-8080-exec-1] grails.app.filters.TrackingFilters 2012-06-26T03:26:15.463Z Session started. Client 10.0.2.2, User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5 | |
[2012-06-26 03:26:17,159] [http-bio-8080-exec-1] com.netflix.asgard.EmailerService Initializing... | |
[2012-06-26 03:26:38,699] [http-bio-8080-exec-9] com.netflix.asgard.InitService Starting caches | |
[2012-06-26 03:26:38,704] [http-bio-8080-exec-9] com.netflix.asgard.SshService Initializing... | |
[2012-06-26 03:26:38,704] [http-bio-8080-exec-9] com.netflix.asgard.SecretService Initializing... | |
[2012-06-26 03:26:38,709] [http-bio-8080-exec-9] com.netflix.asgard.AwsClientService Initializing... | |
[2012-06-26 03:26:38,834] [http-bio-8080-exec-9] com.netflix.asgard.AwsSimpleDbService Initializing... | |
[2012-06-26 03:26:39,198] [http-bio-8080-exec-9] com.netflix.asgard.TaskService Initializing... | |
[2012-06-26 03:26:39,199] [http-bio-8080-exec-9] com.netflix.asgard.ApplicationService Initializing... | |
[2012-06-26 03:26:39,230] [http-bio-8080-exec-9] com.netflix.asgard.AwsSnsService Initializing... | |
[2012-06-26 03:26:39,374] [http-bio-8080-exec-9] com.netflix.asgard.RestClientService Initializing... | |
[2012-06-26 03:26:39,387] [http-bio-8080-exec-9] com.netflix.asgard.AwsEc2Service Initializing... | |
[2012-06-26 03:26:39,585] [http-bio-8080-exec-9] com.netflix.asgard.InstanceTypeService Initializing... | |
[2012-06-26 03:26:39,586] [http-bio-8080-exec-9] com.netflix.asgard.SimpleDbDomainService Initializing... | |
[2012-06-26 03:26:39,587] [http-bio-8080-exec-9] com.netflix.asgard.AwsCloudWatchService Initializing... | |
[2012-06-26 03:26:39,646] [http-bio-8080-exec-9] com.netflix.asgard.AwsRdsService Initializing... | |
[2012-06-26 03:26:39,763] [http-bio-8080-exec-9] com.netflix.asgard.DiscoveryService Initializing... | |
[2012-06-26 03:26:39,773] [http-bio-8080-exec-9] com.netflix.asgard.AwsLoadBalancerService Initializing... | |
[2012-06-26 03:26:39,965] [http-bio-8080-exec-9] com.netflix.asgard.LaunchTemplateService Initializing... | |
[2012-06-26 03:26:39,967] [http-bio-8080-exec-9] com.netflix.asgard.MergedInstanceService Initializing... | |
[2012-06-26 03:26:39,972] [http-bio-8080-exec-9] com.netflix.asgard.AwsS3Service Initializing... | |
[2012-06-26 03:26:40,113] [http-bio-8080-exec-9] com.netflix.asgard.ImageService Initializing... | |
[2012-06-26 03:26:40,114] [http-bio-8080-exec-9] com.netflix.asgard.PushService Initializing... | |
[2012-06-26 03:26:40,115] [http-bio-8080-exec-9] com.netflix.asgard.AwsAutoScalingService Initializing... | |
[2012-06-26 03:26:40,208] [http-bio-8080-exec-9] com.netflix.asgard.MergedInstanceGroupingService Initializing... | |
[2012-06-26 03:26:40,208] [http-bio-8080-exec-9] com.netflix.asgard.FastPropertyService Initializing... | |
[2012-06-26 03:26:40,209] [http-bio-8080-exec-9] com.netflix.asgard.AwsSqsService Initializing... |
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
Jun 26, 2012 3:24:52 AM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["http-bio-8080"] | |
Jun 26, 2012 3:24:52 AM org.apache.catalina.startup.Catalina load | |
INFO: Initialization processed in 913 ms | |
Jun 26, 2012 3:24:52 AM org.apache.catalina.core.StandardService startInternal | |
INFO: Starting service Catalina | |
Jun 26, 2012 3:24:52 AM org.apache.catalina.core.StandardEngine startInternal | |
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 | |
Jun 26, 2012 3:24:52 AM org.apache.catalina.startup.HostConfig deployDirectory | |
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT | |
Jun 26, 2012 3:24:53 AM org.apache.coyote.AbstractProtocol start | |
INFO: Starting ProtocolHandler ["http-bio-8080"] | |
Jun 26, 2012 3:24:53 AM org.apache.catalina.startup.Catalina start | |
INFO: Server startup in 1213 ms | |
Jun 26, 2012 3:25:43 AM org.apache.catalina.startup.HostConfig deployWAR | |
INFO: Deploying web application archive /var/lib/tomcat7/webapps/asgard.war | |
Using /usr/share/tomcat7/.asgard as ASGARD_HOME | |
Unable to load specified config location file:/usr/share/tomcat7/.asgard/Config.groovy : /usr/share/tomcat7/.asgard/Config.groovy (No such file or directory) |
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
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 20.0-b12 | |
Deadlock Detection: | |
No deadlocks found. | |
Thread 10819: (state = BLOCKED) | |
- java.lang.Thread.sleep(long) @bci=0 (Interpreted frame) | |
- com.amazonaws.http.IdleConnectionReaper.run() @bci=3, line=75 (Interpreted frame) | |
Thread 10689: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10688: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10687: (state = BLOCKED) | |
- java.lang.Object.wait(long) @bci=0 (Interpreted frame) | |
- java.util.TimerThread.mainLoop() @bci=201, line=531 (Interpreted frame) | |
- java.util.TimerThread.run() @bci=1, line=484 (Interpreted frame) | |
Thread 10686: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10685: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10684: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10683: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10682: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10681: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10680: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 10679: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=186 (Interpreted frame) | |
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2043 (Interpreted frame) | |
- java.util.concurrent.LinkedBlockingQueue.take() @bci=29, line=386 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=36, line=104 (Interpreted frame) | |
- org.apache.tomcat.util.threads.TaskQueue.take() @bci=1, line=32 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=156, line=1043 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=17, line=1103 (Interpreted frame) | |
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=603 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 9788: (state = BLOCKED) | |
- java.lang.Thread.sleep(long) @bci=0 (Interpreted frame) | |
- org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run() @bci=13, line=148 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 9787: (state = IN_NATIVE) | |
- java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) @bci=0 (Interpreted frame) | |
- java.net.AbstractPlainSocketImpl.accept(java.net.SocketImpl) @bci=7, line=375 (Interpreted frame) | |
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=60, line=470 (Interpreted frame) | |
- java.net.ServerSocket.accept() @bci=48, line=438 (Interpreted frame) | |
- org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(java.net.ServerSocket) @bci=1, line=60 (Interpreted frame) | |
- org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run() @bci=95, line=216 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 9786: (state = BLOCKED) | |
- java.lang.Thread.sleep(long) @bci=0 (Interpreted frame) | |
- org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run() @bci=22, line=1515 (Interpreted frame) | |
- java.lang.Thread.run() @bci=11, line=679 (Interpreted frame) | |
Thread 9783: (state = BLOCKED) | |
- java.lang.Object.wait(long) @bci=0 (Interpreted frame) | |
- sun.misc.GC$Daemon.run() @bci=51, line=117 (Interpreted frame) | |
Thread 9778: (state = BLOCKED) | |
Thread 9777: (state = BLOCKED) | |
Thread 9776: (state = BLOCKED) | |
- java.lang.Object.wait(long) @bci=0 (Interpreted frame) | |
- java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=133 (Interpreted frame) | |
- java.lang.ref.ReferenceQueue.remove() @bci=2, line=149 (Interpreted frame) | |
- java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=177 (Interpreted frame) | |
Thread 9775: (state = BLOCKED) | |
- java.lang.Object.wait(long) @bci=0 (Interpreted frame) | |
- java.lang.Object.wait() @bci=2, line=502 (Compiled frame) | |
- java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=133 (Compiled frame) | |
Thread 9770: (state = IN_NATIVE) | |
- java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) @bci=0 (Interpreted frame) | |
- java.net.AbstractPlainSocketImpl.accept(java.net.SocketImpl) @bci=7, line=375 (Interpreted frame) | |
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=60, line=470 (Interpreted frame) | |
- java.net.ServerSocket.accept() @bci=48, line=438 (Interpreted frame) | |
- org.apache.catalina.core.StandardServer.await() @bci=175, line=452 (Interpreted frame) | |
- org.apache.catalina.startup.Catalina.await() @bci=4, line=727 (Interpreted frame) | |
- org.apache.catalina.startup.Catalina.start() @bci=176, line=673 (Interpreted frame) | |
- sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame) | |
- sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=57 (Interpreted frame) | |
- sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Interpreted frame) | |
- java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=161, line=616 (Interpreted frame) | |
- org.apache.catalina.startup.Bootstrap.start() @bci=37, line=322 (Interpreted frame) | |
- org.apache.catalina.startup.Bootstrap.main(java.lang.String[]) @bci=135, line=450 (Interpreted frame) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.define :asgard do |asgard_config| | |
# Give Asgard a nice chunk of memory | |
asgard_config.vm.customize ["modifyvm", :id, "--memory", 2048] | |
# Every Vagrant virtual environment requires a box to build off of. | |
asgard_config.vm.box = "ubuntu-12.04-server-64bit" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
asgard_config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
# Forward a port from the guest to the host, which allows for outside | |
# computers to access the VM, whereas host only networking does not. | |
asgard_config.vm.forward_port 8080, 8080 # This is the port that tomcat listens on | |
asgard_config.vm.provision :shell do |shell| | |
shell.inline = <<-eos | |
#!/bin/bash | |
function cpad { | |
local s=" $* " | |
while [ ${#s} -lt 100 ]; do | |
if [ ${#s} -lt 100 ]; then s="=$s"; fi | |
if [ ${#s} -lt 100 ]; then s="$s="; fi | |
done | |
echo "$s" | |
} | |
# Upgrade to the latest version of all packages | |
cpad Upgrading Packages | |
DEBIAN_FRONTEND="noninteractive" sudo apt-get --assume-yes update | |
DEBIAN_FRONTEND="noninteractive" sudo apt-get --assume-yes upgrade | |
echo | |
# Install tomcat 7 | |
cpad Installing Tomcat 7 | |
DEBIAN_FRONTEND="noninteractive" sudo apt-get --assume-yes install tomcat7 | |
sudo chown tomcat7:tomcat7 /usr/share/tomcat7 /var/lib/tomcat7 | |
echo | |
# Install curl | |
cpad Installing curl | |
DEBIAN_FRONTEND="noninteractive" sudo apt-get --assume-yes install curl | |
echo | |
# Install asgard | |
cpad Installing Netflix Asgard | |
curl --silent -O http://cloud.github.com/downloads/Netflix/asgard/asgard-1.0.war | |
sudo chown tomcat7:tomcat7 asgard-1.0.war | |
sudo mv asgard-1.0.war /var/lib/tomcat7/webapps/asgard.war | |
echo | |
eos | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment