mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Adding management server startup to puppet config.
This commit is contained in:
parent
3610401edc
commit
1bad242f7b
@ -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
|
||||||
@ -283,22 +283,38 @@ class puppet-devcloud {
|
|||||||
cwd => '/',
|
cwd => '/',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package { 'mkisofs':
|
||||||
|
ensure => latest,
|
||||||
|
}
|
||||||
|
|
||||||
exec { "build_cloudstack":
|
exec { "build_cloudstack":
|
||||||
require => [
|
require => [
|
||||||
Package['ant'],
|
Package['ant'],
|
||||||
Exec["catalina_home"],
|
Exec["catalina_home"],
|
||||||
File['/opt/cloudstack/incubator-cloudstack/dist'],
|
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",
|
command => "/usr/bin/ant clean-all build-all deploy-server deploydb",
|
||||||
cwd => "/opt/cloudstack/incubator-cloudstack/",
|
cwd => "/opt/cloudstack/incubator-cloudstack/",
|
||||||
timeout => '0',
|
timeout => '0',
|
||||||
}
|
}
|
||||||
|
|
||||||
# exec { "start_cloudstack":
|
file { '/opt/cloudstack/startdevcloud.sh':
|
||||||
# require => Exec["build_cloudstack"],
|
ensure => 'file',
|
||||||
# command => "/usr/bin/ant debug",
|
source => 'puppet:///modules/puppet-devcloud/startdevcloud.sh',
|
||||||
# cwd => "/opt/cloudstack/incubator-cloudstack",
|
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/",
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user