Merge branch 'master' of git.opennebula.org:one

This commit is contained in:
Daniel Molina committed 2011-06-22 16:17:28 +02:00
commit 8cd7e6af58
2 files changed
+15 -6

No files matched your search

+13 -4
View File
@@ -73,7 +73,7 @@ while true ; do
-r) UNINSTALL="yes" ; shift ;;
-l) LINK="yes" ; shift ;;
-c) CLIENT="yes"; INSTALL_ETC="no" ; shift ;;
-s) SUNSTONE="yes"; INSTALL_ETC="no" ; shift ;;
-s) SUNSTONE="yes"; shift ;;
-u) ONEADMIN_USER="$2" ; shift 2;;
-g) ONEADMIN_GROUP="$2"; shift 2;;
-d) ROOT="$2" ; shift 2 ;;
@@ -320,7 +320,6 @@ INSTALL_SUNSTONE_RUBY_FILES=(
INSTALL_SUNSTONE_FILES=(
SUNSTONE_FILES:$SUNSTONE_LOCATION
SUNSTONE_BIN_FILES:$BIN_LOCATION
SUNSTONE_ETC_FILES:$ETC_LOCATION
SUNSTONE_MODELS_FILES:$SUNSTONE_LOCATION/models
SUNSTONE_MODELS_JSON_FILES:$SUNSTONE_LOCATION/models/OpenNebulaJSON
SUNSTONE_TEMPLATE_FILES:$SUNSTONE_LOCATION/templates
@@ -337,6 +336,10 @@ INSTALL_SUNSTONE_FILES=(
SUNSTONE_PUBLIC_IMAGES_FILES:$SUNSTONE_LOCATION/public/images
)
INSTALL_SUNSTONE_ETC_FILES=(
SUNSTONE_ETC_FILES:$ETC_LOCATION
)
INSTALL_ETC_FILES=(
ETC_FILES:$ETC_LOCATION
VMM_EC2_ETC_FILES:$ETC_LOCATION/vmm_ec2
@@ -352,7 +355,6 @@ INSTALL_ETC_FILES=(
ECO_ETC_TEMPLATE_FILES:$ETC_LOCATION/ec2query_templates
OCCI_ETC_FILES:$ETC_LOCATION
OCCI_ETC_TEMPLATE_FILES:$ETC_LOCATION/occi_templates
SUNSTONE_ETC_FILES:$ETC_LOCATION
CLI_CONF_FILES:$ETC_LOCATION/cli
)
@@ -951,7 +953,14 @@ for i in ${INSTALL_SET[@]}; do
done
if [ "$INSTALL_ETC" = "yes" ] ; then
for i in ${INSTALL_ETC_FILES[@]}; do
if [ "$SUNSTONE" = "yes" ]; then
INSTALL_ETC_SET="${INSTALL_SUNSTONE_ETC_FILES[@]}"
else
INSTALL_ETC_SET="${INSTALL_ETC_FILES[@]} \
${INSTALL_SUNSTONE_ETC_FILES[@]}"
fi
for i in ${INSTALL_ETC_SET[@]}; do
SRC=$`echo $i | cut -d: -f1`
DST=`echo $i | cut -d: -f2`
+2 -2
View File
@@ -53,7 +53,7 @@ class InformationManagerDriver < OpenNebulaDriver
# Execute the run_probes in the remote host
def action_monitor(number, host, do_update)
if !action_is_local?(:monitor)
if !action_is_local?(:MONITOR)
if do_update == "1"
# Use SCP to sync:
sync_cmd = "scp -r #{@local_scripts_base_path}/. " \
@@ -65,7 +65,7 @@ class InformationManagerDriver < OpenNebulaDriver
LocalCommand.run(sync_cmd, log_method(number))
end
end
do_action("#{@hypervisor}", number, host, :monitor,
do_action("#{@hypervisor}", number, host, :MONITOR,
:script_name => 'run_probes')
end
end