Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 658D2D14A for ; Tue, 31 Jul 2012 20:40:04 +0000 (UTC) Received: (qmail 78454 invoked by uid 500); 31 Jul 2012 20:40:03 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 78371 invoked by uid 500); 31 Jul 2012 20:40:02 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 78089 invoked by uid 99); 31 Jul 2012 20:40:02 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 20:40:02 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 34B331A875; Tue, 31 Jul 2012 20:40:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: alena1108@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [9/50] [abbrv] git commit: Adding management server startup to puppet config. Message-Id: <20120731204002.34B331A875@tyr.zones.apache.org> Date: Tue, 31 Jul 2012 20:40:02 +0000 (UTC) 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 Authored: Tue Jul 31 08:43:15 2012 -0400 Committer: 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