incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [9/50] [abbrv] git commit: Adding management server startup to puppet config.
Date Tue, 31 Jul 2012 20:40:02 GMT
Adding management server startup to puppet config.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/1bad242f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/1bad242f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/1bad242f

Branch: refs/heads/vpc
Commit: 1bad242f7bfe7bc273388a0db9e2e2c4d59eed1c
Parents: 3610401
Author: chip.childers@gmail.com <chip.childers@gmail.com>
Authored: Tue Jul 31 08:43:15 2012 -0400
Committer: chip.childers@gmail.com <chip.childers@gmail.com>
Committed: Tue Jul 31 08:43:50 2012 -0400

----------------------------------------------------------------------
 .../puppet-devcloud/files/startdevcloud.sh         |   23 ++++++++++++
 .../devcloudbox/puppet-devcloud/manifests/init.pp  |   28 +++++++++++---
 tools/devcloud/devcloudsetup.sh                    |    2 +-
 3 files changed, 46 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1bad242f/tools/devcloud/devcloudbox/puppet-devcloud/files/startdevcloud.sh
----------------------------------------------------------------------
diff --git a/tools/devcloud/devcloudbox/puppet-devcloud/files/startdevcloud.sh b/tools/devcloud/devcloudbox/puppet-devcloud/files/startdevcloud.sh
new file mode 100644
index 0000000..f496891
--- /dev/null
+++ b/tools/devcloud/devcloudbox/puppet-devcloud/files/startdevcloud.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+export CATALINA_HOME=/opt/cloudstack/apache-tomcat-6.0.32
+cd /opt/cloudstack/incubator-cloudstack/
+nohup ant run > /dev/null 2>&1 & 
+exit 0

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1bad242f/tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp
----------------------------------------------------------------------
diff --git a/tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp b/tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp
index 96f931d..b84ec26 100644
--- a/tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp
+++ b/tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp
@@ -283,22 +283,38 @@ class puppet-devcloud {
     cwd     => '/',
   }
 
+  package { 'mkisofs':
+    ensure  => latest,
+  }
+
   exec { "build_cloudstack":
     require => [
       Package['ant'],
       Exec["catalina_home"],
       File['/opt/cloudstack/incubator-cloudstack/dist'],
-      File['/opt/cloudstack/incubator-cloudstack/target']
+      File['/opt/cloudstack/incubator-cloudstack/target'],
+      Package['mkisofs']
       ],
     command => "/usr/bin/ant clean-all build-all deploy-server deploydb",
     cwd     => "/opt/cloudstack/incubator-cloudstack/",
     timeout => '0',
   }
 
-#  exec { "start_cloudstack":
-#    require => Exec["build_cloudstack"],
-#    command => "/usr/bin/ant debug",
-#    cwd     => "/opt/cloudstack/incubator-cloudstack",
-#  }
+  file { '/opt/cloudstack/startdevcloud.sh':
+    ensure  => 'file', 
+    source  => 'puppet:///modules/puppet-devcloud/startdevcloud.sh', 
+    mode    => '777', 
+    owner   => '0', 
+    group   => '0',
+  }
+
+  exec { "start_cloudstack":
+    require => [
+      Exec["build_cloudstack"],
+      File["/opt/cloudstack/startdevcloud.sh"]
+      ],
+    command => "/opt/cloudstack/startdevcloud.sh",
+    cwd     => "/opt/cloudstack/",
+  }
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1bad242f/tools/devcloud/devcloudsetup.sh
----------------------------------------------------------------------
diff --git a/tools/devcloud/devcloudsetup.sh b/tools/devcloud/devcloudsetup.sh
index b5a97cb..f8b69fa 100644
--- a/tools/devcloud/devcloudsetup.sh
+++ b/tools/devcloud/devcloudsetup.sh
@@ -121,7 +121,7 @@ postsetup() {
         mkdir incubator-cloudstack/dist
         wget http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.zip
-P /opt/cloudstack/
         unzip apache-tomcat-6.0.32.zip
-        echo "exportCATALINA_HOME=/opt/cloudstack/apache-tomcat-6.0.32" >> /root/.bashrc
+        echo "export CATALINA_HOME=/opt/cloudstack/apache-tomcat-6.0.32" >> /root/.bashrc
         cd ~
     fi
 


Mime
View raw message