Statistics
| Branch: | Tag: | Revision:

one / install.sh @ 40086e5c

History | View | Annotate | Download (89.8 KB)

1
#!/bin/bash
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs        #
5
#                                                                            #
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
7
# not use this file except in compliance with the License. You may obtain    #
8
# a copy of the License at                                                   #
9
#                                                                            #
10
# http://www.apache.org/licenses/LICENSE-2.0                                 #
11
#                                                                            #
12
# Unless required by applicable law or agreed to in writing, software        #
13
# distributed under the License is distributed on an "AS IS" BASIS,          #
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
15
# See the License for the specific language governing permissions and        #
16
# limitations under the License.                                             #
17
#--------------------------------------------------------------------------- #
18

    
19
#-------------------------------------------------------------------------------
20
# Install program for OpenNebula. It will install it relative to
21
# $ONE_LOCATION if defined with the -d option, otherwise it'll be installed
22
# under /. In this case you may specified the oneadmin user/group, so you do
23
# not need run the OpenNebula daemon with root privileges
24
#-------------------------------------------------------------------------------
25

    
26
#-------------------------------------------------------------------------------
27
# COMMAND LINE PARSING
28
#-------------------------------------------------------------------------------
29
usage() {
30
 echo
31
 echo "Usage: install.sh [-u install_user] [-g install_group] [-k keep conf]"
32
 echo "                  [-d ONE_LOCATION] [-c cli|ec2] [-r] [-h]"
33
 echo
34
 echo "-u: user that will run opennebula, defaults to user executing install.sh"
35
 echo "-g: group of the user that will run opennebula, defaults to user"
36
 echo "    executing install.sh"
37
 echo "-k: keep configuration files of existing OpenNebula installation, useful"
38
 echo "    when upgrading. This flag should not be set when installing"
39
 echo "    OpenNebula for the first time"
40
 echo "-d: target installation directory, if not defined it'd be root. Must be"
41
 echo "    an absolute path."
42
 echo "-c: install client utilities: OpenNebula cli and ec2 client files"
43
 echo "-s: install OpenNebula Sunstone"
44
 echo "-p: do not install OpenNebula Sunstone non-minified files"
45
 echo "-G: install OpenNebula Gate"
46
 echo "-f: install OpenNebula Flow"
47
 echo "-r: remove Opennebula, only useful if -d was not specified, otherwise"
48
 echo "    rm -rf \$ONE_LOCATION would do the job"
49
 echo "-l: creates symlinks instead of copying files, useful for development"
50
 echo "-h: prints this help"
51
}
52
#-------------------------------------------------------------------------------
53

    
54
PARAMETERS="hkrlcspou:g:d:"
55

    
56
if [ $(getopt --version | tr -d " ") = "--" ]; then
57
    TEMP_OPT=`getopt $PARAMETERS "$@"`
58
else
59
    TEMP_OPT=`getopt -o $PARAMETERS -n 'install.sh' -- "$@"`
60
fi
61

    
62
if [ $? != 0 ] ; then
63
    usage
64
    exit 1
65
fi
66

    
67
eval set -- "$TEMP_OPT"
68

    
69
INSTALL_ETC="yes"
70
UNINSTALL="no"
71
LINK="no"
72
CLIENT="no"
73
ONEGATE="no"
74
SUNSTONE="no"
75
SUNSTONE_DEV="yes"
76
ONEFLOW="no"
77
ONEADMIN_USER=`id -u`
78
ONEADMIN_GROUP=`id -g`
79
SRC_DIR=$PWD
80

    
81
while true ; do
82
    case "$1" in
83
        -h) usage; exit 0;;
84
        -k) INSTALL_ETC="no"   ; shift ;;
85
        -r) UNINSTALL="yes"   ; shift ;;
86
        -l) LINK="yes" ; shift ;;
87
        -c) CLIENT="yes"; INSTALL_ETC="no" ; shift ;;
88
        -G) ONEGATE="yes"; shift ;;
89
        -s) SUNSTONE="yes"; shift ;;
90
        -p) SUNSTONE_DEV="no"; shift ;;
91
        -f) ONEFLOW="yes"; shift ;;
92
        -u) ONEADMIN_USER="$2" ; shift 2;;
93
        -g) ONEADMIN_GROUP="$2"; shift 2;;
94
        -d) ROOT="$2" ; shift 2 ;;
95
        --) shift ; break ;;
96
        *)  usage; exit 1 ;;
97
    esac
98
done
99

    
100
#-------------------------------------------------------------------------------
101
# Definition of locations
102
#-------------------------------------------------------------------------------
103

    
104
CONF_LOCATION="$HOME/.one"
105

    
106
if [ -z "$ROOT" ] ; then
107
    BIN_LOCATION="/usr/bin"
108
    LIB_LOCATION="/usr/lib/one"
109
    ETC_LOCATION="/etc/one"
110
    LOG_LOCATION="/var/log/one"
111
    VAR_LOCATION="/var/lib/one"
112
    ONEGATE_LOCATION="$LIB_LOCATION/onegate"
113
    SUNSTONE_LOCATION="$LIB_LOCATION/sunstone"
114
    ONEFLOW_LOCATION="$LIB_LOCATION/oneflow"
115
    SYSTEM_DS_LOCATION="$VAR_LOCATION/datastores/0"
116
    DEFAULT_DS_LOCATION="$VAR_LOCATION/datastores/1"
117
    RUN_LOCATION="/var/run/one"
118
    LOCK_LOCATION="/var/lock/one"
119
    INCLUDE_LOCATION="/usr/include"
120
    SHARE_LOCATION="/usr/share/one"
121
    MAN_LOCATION="/usr/share/man/man1"
122
    VM_LOCATION="/var/lib/one/vms"
123
    DOCS_LOCATION="/usr/share/docs/one"
124

    
125
    if [ "$CLIENT" = "yes" ]; then
126
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION"
127

    
128
        DELETE_DIRS=""
129

    
130
        CHOWN_DIRS=""
131
    elif [ "$SUNSTONE" = "yes" ]; then
132
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
133
                   $SUNSTONE_LOCATION $ETC_LOCATION"
134

    
135
        DELETE_DIRS="$MAKE_DIRS"
136

    
137
        CHOWN_DIRS=""
138
    elif [ "$ONEGATE" = "yes" ]; then
139
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
140
                   $ONEGATE_LOCATION $ETC_LOCATION"
141

    
142
        DELETE_DIRS="$MAKE_DIRS"
143

    
144
        CHOWN_DIRS=""
145
    elif [ "$ONEFLOW" = "yes" ]; then
146
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $ONEFLOW_LOCATION \
147
                    $ETC_LOCATION"
148

    
149
        DELETE_DIRS="$MAKE_DIRS"
150

    
151
        CHOWN_DIRS=""
152
    else
153
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION $VAR_LOCATION \
154
                   $INCLUDE_LOCATION $SHARE_LOCATION $DOCS_LOCATION \
155
                   $LOG_LOCATION $RUN_LOCATION $LOCK_LOCATION \
156
                   $SYSTEM_DS_LOCATION $DEFAULT_DS_LOCATION $MAN_LOCATION \
157
                   $VM_LOCATION $ONEGATE_LOCATION $ONEFLOW_LOCATION"
158

    
159
        DELETE_DIRS="$LIB_LOCATION $ETC_LOCATION $LOG_LOCATION $VAR_LOCATION \
160
                     $RUN_LOCATION $SHARE_DIRS"
161

    
162
        CHOWN_DIRS="$LOG_LOCATION $VAR_LOCATION $RUN_LOCATION $LOCK_LOCATION"
163
    fi
164

    
165
else
166
    BIN_LOCATION="$ROOT/bin"
167
    LIB_LOCATION="$ROOT/lib"
168
    ETC_LOCATION="$ROOT/etc"
169
    VAR_LOCATION="$ROOT/var"
170
    ONEGATE_LOCATION="$LIB_LOCATION/onegate"
171
    SUNSTONE_LOCATION="$LIB_LOCATION/sunstone"
172
    ONEFLOW_LOCATION="$LIB_LOCATION/oneflow"
173
    SYSTEM_DS_LOCATION="$VAR_LOCATION/datastores/0"
174
    DEFAULT_DS_LOCATION="$VAR_LOCATION/datastores/1"
175
    INCLUDE_LOCATION="$ROOT/include"
176
    SHARE_LOCATION="$ROOT/share"
177
    MAN_LOCATION="$ROOT/share/man/man1"
178
    VM_LOCATION="$VAR_LOCATION/vms"
179
    DOCS_LOCATION="$ROOT/share/docs"
180

    
181
    if [ "$CLIENT" = "yes" ]; then
182
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION"
183

    
184
        DELETE_DIRS="$MAKE_DIRS"
185
    elif [ "$ONEGATE" = "yes" ]; then
186
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
187
                   $ONEGATE_LOCATION $ETC_LOCATION"
188

    
189
        DELETE_DIRS="$MAKE_DIRS"
190
    elif [ "$SUNSTONE" = "yes" ]; then
191
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
192
                   $SUNSTONE_LOCATION $ETC_LOCATION"
193

    
194
        DELETE_DIRS="$MAKE_DIRS"
195
    elif [ "$ONEFLOW" = "yes" ]; then
196
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $ONEFLOW_LOCATION \
197
                   $ETC_LOCATION"
198

    
199
        DELETE_DIRS="$MAKE_DIRS"
200
    else
201
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION $VAR_LOCATION \
202
                   $INCLUDE_LOCATION $SHARE_LOCATION $SYSTEM_DS_LOCATION \
203
                   $DEFAULT_DS_LOCATION $MAN_LOCATION $DOCS_LOCATION \
204
                   $VM_LOCATION $ONEGATE_LOCATION $ONEFLOW_LOCATION"
205

    
206
        DELETE_DIRS="$MAKE_DIRS"
207

    
208
        CHOWN_DIRS="$ROOT"
209
    fi
210

    
211
    CHOWN_DIRS="$ROOT"
212
fi
213

    
214
SHARE_DIRS="$SHARE_LOCATION/examples \
215
            $SHARE_LOCATION/websockify"
216

    
217
ETC_DIRS="$ETC_LOCATION/vmm_exec \
218
          $ETC_LOCATION/hm \
219
          $ETC_LOCATION/auth \
220
          $ETC_LOCATION/auth/certificates \
221
          $ETC_LOCATION/ec2query_templates \
222
          $ETC_LOCATION/sunstone-views \
223
          $ETC_LOCATION/cli"
224

    
225
LIB_DIRS="$LIB_LOCATION/ruby \
226
          $LIB_LOCATION/ruby/opennebula \
227
          $LIB_LOCATION/ruby/cloud/ \
228
          $LIB_LOCATION/ruby/cloud/econe \
229
          $LIB_LOCATION/ruby/cloud/econe/views \
230
          $LIB_LOCATION/ruby/cloud/marketplace \
231
          $LIB_LOCATION/ruby/cloud/CloudAuth \
232
          $LIB_LOCATION/ruby/onedb \
233
          $LIB_LOCATION/ruby/onedb/shared \
234
          $LIB_LOCATION/ruby/onedb/local \
235
          $LIB_LOCATION/ruby/onedb/patches \
236
          $LIB_LOCATION/ruby/vendors \
237
          $LIB_LOCATION/ruby/vendors/rbvmomi \
238
          $LIB_LOCATION/ruby/vendors/rbvmomi/lib \
239
          $LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi \
240
          $LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi/utils \
241
          $LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi/vim \
242
          $LIB_LOCATION/mads \
243
          $LIB_LOCATION/sh \
244
          $LIB_LOCATION/ruby/cli \
245
          $LIB_LOCATION/ruby/cli/one_helper"
246

    
247
VAR_DIRS="$VAR_LOCATION/remotes \
248
          $VAR_LOCATION/remotes/im \
249
          $VAR_LOCATION/remotes/im/kvm.d \
250
          $VAR_LOCATION/remotes/im/xen3.d \
251
          $VAR_LOCATION/remotes/im/xen4.d \
252
          $VAR_LOCATION/remotes/im/kvm-probes.d \
253
          $VAR_LOCATION/remotes/im/xen3-probes.d \
254
          $VAR_LOCATION/remotes/im/xen4-probes.d \
255
          $VAR_LOCATION/remotes/im/vmware.d \
256
          $VAR_LOCATION/remotes/im/vcenter.d \
257
          $VAR_LOCATION/remotes/im/ec2.d \
258
          $VAR_LOCATION/remotes/im/sl.d \
259
          $VAR_LOCATION/remotes/im/az.d \
260
          $VAR_LOCATION/remotes/vmm \
261
          $VAR_LOCATION/remotes/vmm/kvm \
262
          $VAR_LOCATION/remotes/vmm/xen3 \
263
          $VAR_LOCATION/remotes/vmm/xen4 \
264
          $VAR_LOCATION/remotes/vmm/vmware \
265
          $VAR_LOCATION/remotes/vmm/vcenter \
266
          $VAR_LOCATION/remotes/vmm/ec2 \
267
          $VAR_LOCATION/remotes/vmm/sl \
268
          $VAR_LOCATION/remotes/vmm/az \
269
          $VAR_LOCATION/remotes/vnm \
270
          $VAR_LOCATION/remotes/vnm/802.1Q \
271
          $VAR_LOCATION/remotes/vnm/vxlan \
272
          $VAR_LOCATION/remotes/vnm/dummy \
273
          $VAR_LOCATION/remotes/vnm/ebtables \
274
          $VAR_LOCATION/remotes/vnm/fw \
275
          $VAR_LOCATION/remotes/vnm/ovswitch \
276
          $VAR_LOCATION/remotes/vnm/ovswitch_brcompat \
277
          $VAR_LOCATION/remotes/vnm/vmware \
278
          $VAR_LOCATION/remotes/tm/ \
279
          $VAR_LOCATION/remotes/tm/dummy \
280
          $VAR_LOCATION/remotes/tm/shared \
281
          $VAR_LOCATION/remotes/tm/fs_lvm \
282
          $VAR_LOCATION/remotes/tm/qcow2 \
283
          $VAR_LOCATION/remotes/tm/ssh \
284
          $VAR_LOCATION/remotes/tm/vmfs \
285
          $VAR_LOCATION/remotes/tm/lvm \
286
          $VAR_LOCATION/remotes/tm/ceph \
287
          $VAR_LOCATION/remotes/tm/dev \
288
          $VAR_LOCATION/remotes/hooks \
289
          $VAR_LOCATION/remotes/hooks/ft \
290
          $VAR_LOCATION/remotes/datastore \
291
          $VAR_LOCATION/remotes/datastore/dummy \
292
          $VAR_LOCATION/remotes/datastore/fs \
293
          $VAR_LOCATION/remotes/datastore/vmfs \
294
          $VAR_LOCATION/remotes/datastore/lvm \
295
          $VAR_LOCATION/remotes/datastore/ceph \
296
          $VAR_LOCATION/remotes/datastore/dev \
297
          $VAR_LOCATION/remotes/auth \
298
          $VAR_LOCATION/remotes/auth/plain \
299
          $VAR_LOCATION/remotes/auth/ssh \
300
          $VAR_LOCATION/remotes/auth/x509 \
301
          $VAR_LOCATION/remotes/auth/ldap \
302
          $VAR_LOCATION/remotes/auth/server_x509 \
303
          $VAR_LOCATION/remotes/auth/server_cipher \
304
          $VAR_LOCATION/remotes/auth/dummy"
305

    
306
SUNSTONE_DIRS="$SUNSTONE_LOCATION/routes \
307
               $SUNSTONE_LOCATION/models \
308
               $SUNSTONE_LOCATION/models/OpenNebulaJSON \
309
               $SUNSTONE_LOCATION/views"
310

    
311
SUNSTONE_MINIFIED_DIRS="SUNSTONE_LOCATION/public \
312
               $SUNSTONE_LOCATION/public/dist \
313
               $SUNSTONE_LOCATION/public/dist/console \
314
               $SUNSTONE_LOCATION/public/css \
315
               $SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts \
316
               $SUNSTONE_LOCATION/public/locale/languages \
317
               $SUNSTONE_LOCATION/public/images \
318
               $SUNSTONE_LOCATION/public/images/logos"
319

    
320
ONEFLOW_DIRS="$ONEFLOW_LOCATION/lib \
321
              $ONEFLOW_LOCATION/lib/strategy \
322
              $ONEFLOW_LOCATION/lib/models"
323

    
324
LIB_ECO_CLIENT_DIRS="$LIB_LOCATION/ruby \
325
                 $LIB_LOCATION/ruby/opennebula \
326
                 $LIB_LOCATION/ruby/cloud/ \
327
                 $LIB_LOCATION/ruby/cloud/econe"
328

    
329
LIB_MARKET_CLIENT_DIRS="$LIB_LOCATION/ruby \
330
                 $LIB_LOCATION/ruby/opennebula \
331
                 $LIB_LOCATION/ruby/cloud/marketplace"
332

    
333
LIB_OCA_CLIENT_DIRS="$LIB_LOCATION/ruby \
334
                 $LIB_LOCATION/ruby/opennebula"
335

    
336
LIB_CLI_CLIENT_DIRS="$LIB_LOCATION/ruby/cli \
337
                     $LIB_LOCATION/ruby/cli/one_helper"
338

    
339
CONF_CLI_DIRS="$ETC_LOCATION/cli"
340

    
341
if [ "$CLIENT" = "yes" ]; then
342
    MAKE_DIRS="$MAKE_DIRS $LIB_ECO_CLIENT_DIRS $LIB_MARKET_CLIENT_DIRS \
343
               $LIB_OCA_CLIENT_DIRS $LIB_CLI_CLIENT_DIRS $CONF_CLI_DIRS \
344
               $ETC_LOCATION"
345
elif [ "$ONEGATE" = "yes" ]; then
346
    MAKE_DIRS="$MAKE_DIRS $LIB_OCA_CLIENT_DIRS"
347
elif [ "$SUNSTONE" = "yes" ]; then
348
  if [ "$SUNSTONE_DEV" = "no" ]; then
349
    MAKE_DIRS="$MAKE_DIRS $SUNSTONE_DIRS $SUNSTONE_MINIFIED_DIRS $LIB_OCA_CLIENT_DIRS"
350
  else
351
    MAKE_DIRS="$MAKE_DIRS $SUNSTONE_DIRS $LIB_OCA_CLIENT_DIRS"
352
  fi
353
elif [ "$ONEFLOW" = "yes" ]; then
354
    MAKE_DIRS="$MAKE_DIRS $ONEFLOW_DIRS $LIB_OCA_CLIENT_DIRS"
355
elif [ "$SUNSTONE_DEV" = "no" ]; then
356
    MAKE_DIRS="$MAKE_DIRS $SHARE_DIRS $ETC_DIRS $LIB_DIRS $VAR_DIRS \
357
                $SUNSTONE_DIRS $SUNSTONE_MINIFIED_DIRS $ONEFLOW_DIRS"
358
else
359
    MAKE_DIRS="$MAKE_DIRS $SHARE_DIRS $ETC_DIRS $LIB_DIRS $VAR_DIRS \
360
                $SUNSTONE_DIRS $ONEFLOW_DIRS"
361
fi
362

    
363
#-------------------------------------------------------------------------------
364
#-------------------------------------------------------------------------------
365
# FILE DEFINITION, WHAT IS GOING TO BE INSTALLED AND WHERE
366
#-------------------------------------------------------------------------------
367
#-------------------------------------------------------------------------------
368
INSTALL_FILES=(
369
    BIN_FILES:$BIN_LOCATION
370
    INCLUDE_FILES:$INCLUDE_LOCATION
371
    LIB_FILES:$LIB_LOCATION
372
    RUBY_LIB_FILES:$LIB_LOCATION/ruby
373
    RUBY_AUTH_LIB_FILES:$LIB_LOCATION/ruby/opennebula
374
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
375
    MAD_RUBY_LIB_FILES:$LIB_LOCATION/ruby
376
    MAD_RUBY_LIB_FILES:$VAR_LOCATION/remotes
377
    MAD_SH_LIB_FILES:$LIB_LOCATION/sh
378
    MAD_SH_LIB_FILES:$VAR_LOCATION/remotes
379
    ONEDB_FILES:$LIB_LOCATION/ruby/onedb
380
    ONEDB_SHARED_MIGRATOR_FILES:$LIB_LOCATION/ruby/onedb/shared
381
    ONEDB_LOCAL_MIGRATOR_FILES:$LIB_LOCATION/ruby/onedb/local
382
    ONEDB_PATCH_FILES:$LIB_LOCATION/ruby/onedb/patches
383
    MADS_LIB_FILES:$LIB_LOCATION/mads
384
    IM_PROBES_FILES:$VAR_LOCATION/remotes/im
385
    IM_PROBES_KVM_FILES:$VAR_LOCATION/remotes/im/kvm.d
386
    IM_PROBES_KVM_PROBES_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d
387
    IM_PROBES_XEN3_FILES:$VAR_LOCATION/remotes/im/xen3.d
388
    IM_PROBES_XEN3_PROBES_FILES:$VAR_LOCATION/remotes/im/xen3-probes.d
389
    IM_PROBES_XEN4_FILES:$VAR_LOCATION/remotes/im/xen4.d
390
    IM_PROBES_XEN4_PROBES_FILES:$VAR_LOCATION/remotes/im/xen4-probes.d
391
    IM_PROBES_VMWARE_FILES:$VAR_LOCATION/remotes/im/vmware.d
392
    IM_PROBES_VCENTER_FILES:$VAR_LOCATION/remotes/im/vcenter.d
393
    IM_PROBES_EC2_FILES:$VAR_LOCATION/remotes/im/ec2.d
394
    IM_PROBES_SL_FILES:$VAR_LOCATION/remotes/im/sl.d
395
    IM_PROBES_AZ_FILES:$VAR_LOCATION/remotes/im/az.d
396
    IM_PROBES_VERSION:$VAR_LOCATION/remotes
397
    AUTH_SSH_FILES:$VAR_LOCATION/remotes/auth/ssh
398
    AUTH_X509_FILES:$VAR_LOCATION/remotes/auth/x509
399
    AUTH_LDAP_FILES:$VAR_LOCATION/remotes/auth/ldap
400
    AUTH_SERVER_X509_FILES:$VAR_LOCATION/remotes/auth/server_x509
401
    AUTH_SERVER_CIPHER_FILES:$VAR_LOCATION/remotes/auth/server_cipher
402
    AUTH_DUMMY_FILES:$VAR_LOCATION/remotes/auth/dummy
403
    AUTH_PLAIN_FILES:$VAR_LOCATION/remotes/auth/plain
404
    VMM_EXEC_KVM_SCRIPTS:$VAR_LOCATION/remotes/vmm/kvm
405
    VMM_EXEC_XEN3_SCRIPTS:$VAR_LOCATION/remotes/vmm/xen3
406
    VMM_EXEC_XEN4_SCRIPTS:$VAR_LOCATION/remotes/vmm/xen4
407
    VMM_EXEC_VMWARE_SCRIPTS:$VAR_LOCATION/remotes/vmm/vmware
408
    VMM_EXEC_VCENTER_SCRIPTS:$VAR_LOCATION/remotes/vmm/vcenter
409
    VMM_EXEC_EC2_SCRIPTS:$VAR_LOCATION/remotes/vmm/ec2
410
    VMM_EXEC_SL_SCRIPTS:$VAR_LOCATION/remotes/vmm/sl
411
    VMM_EXEC_AZ_SCRIPTS:$VAR_LOCATION/remotes/vmm/az
412
    TM_FILES:$VAR_LOCATION/remotes/tm
413
    TM_SHARED_FILES:$VAR_LOCATION/remotes/tm/shared
414
    TM_FS_LVM_FILES:$VAR_LOCATION/remotes/tm/fs_lvm
415
    TM_QCOW2_FILES:$VAR_LOCATION/remotes/tm/qcow2
416
    TM_SSH_FILES:$VAR_LOCATION/remotes/tm/ssh
417
    TM_VMFS_FILES:$VAR_LOCATION/remotes/tm/vmfs
418
    TM_LVM_FILES:$VAR_LOCATION/remotes/tm/lvm
419
    TM_CEPH_FILES:$VAR_LOCATION/remotes/tm/ceph
420
    TM_DEV_FILES:$VAR_LOCATION/remotes/tm/dev
421
    TM_DUMMY_FILES:$VAR_LOCATION/remotes/tm/dummy
422
    DATASTORE_DRIVER_COMMON_SCRIPTS:$VAR_LOCATION/remotes/datastore/
423
    DATASTORE_DRIVER_DUMMY_SCRIPTS:$VAR_LOCATION/remotes/datastore/dummy
424
    DATASTORE_DRIVER_FS_SCRIPTS:$VAR_LOCATION/remotes/datastore/fs
425
    DATASTORE_DRIVER_VMFS_SCRIPTS:$VAR_LOCATION/remotes/datastore/vmfs
426
    DATASTORE_DRIVER_LVM_SCRIPTS:$VAR_LOCATION/remotes/datastore/lvm
427
    DATASTORE_DRIVER_CEPH_SCRIPTS:$VAR_LOCATION/remotes/datastore/ceph
428
    DATASTORE_DRIVER_DEV_SCRIPTS:$VAR_LOCATION/remotes/datastore/dev
429
    NETWORK_FILES:$VAR_LOCATION/remotes/vnm
430
    NETWORK_8021Q_FILES:$VAR_LOCATION/remotes/vnm/802.1Q
431
    NETWORK_VXLAN_FILES:$VAR_LOCATION/remotes/vnm/vxlan
432
    NETWORK_DUMMY_FILES:$VAR_LOCATION/remotes/vnm/dummy
433
    NETWORK_EBTABLES_FILES:$VAR_LOCATION/remotes/vnm/ebtables
434
    NETWORK_FW_FILES:$VAR_LOCATION/remotes/vnm/fw
435
    NETWORK_OVSWITCH_FILES:$VAR_LOCATION/remotes/vnm/ovswitch
436
    NETWORK_OVSWITCH_BRCOMPAT_FILES:$VAR_LOCATION/remotes/vnm/ovswitch_brcompat
437
    NETWORK_VMWARE_FILES:$VAR_LOCATION/remotes/vnm/vmware
438
    EXAMPLE_SHARE_FILES:$SHARE_LOCATION/examples
439
    WEBSOCKIFY_SHARE_FILES:$SHARE_LOCATION/websockify
440
    INSTALL_GEMS_SHARE_FILE:$SHARE_LOCATION
441
    HOOK_FT_FILES:$VAR_LOCATION/remotes/hooks/ft
442
    COMMON_CLOUD_LIB_FILES:$LIB_LOCATION/ruby/cloud
443
    CLOUD_AUTH_LIB_FILES:$LIB_LOCATION/ruby/cloud/CloudAuth
444
    ECO_LIB_FILES:$LIB_LOCATION/ruby/cloud/econe
445
    ECO_LIB_VIEW_FILES:$LIB_LOCATION/ruby/cloud/econe/views
446
    ECO_BIN_FILES:$BIN_LOCATION
447
    MARKET_LIB_FILES:$LIB_LOCATION/ruby/cloud/marketplace
448
    MARKET_BIN_FILES:$BIN_LOCATION
449
    MAN_FILES:$MAN_LOCATION
450
    DOCS_FILES:$DOCS_LOCATION
451
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
452
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
453
    RBVMOMI_VENDOR_RUBY_FILES:$LIB_LOCATION/ruby/vendors/rbvmomi
454
    RBVMOMI_VENDOR_RUBY_LIB_FILES:$LIB_LOCATION/ruby/vendors/rbvmomi/lib
455
    RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_FILES:$LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi
456
    RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_VIM_FILES:$LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi/vim
457
    RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_UTILS_FILES:$LIB_LOCATION/ruby/vendors/rbvmomi/lib/rbvmomi/utils
458
)
459

    
460
INSTALL_CLIENT_FILES=(
461
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
462
    ECO_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/econe
463
    ECO_BIN_CLIENT_FILES:$BIN_LOCATION
464
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
465
    MARKET_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/marketplace
466
    MARKET_BIN_CLIENT_FILES:$BIN_LOCATION
467
    CLI_BIN_FILES:$BIN_LOCATION
468
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
469
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
470
    CLI_CONF_FILES:$ETC_LOCATION/cli
471
    OCA_LIB_FILES:$LIB_LOCATION/ruby
472
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
473
    RUBY_AUTH_LIB_FILES:$LIB_LOCATION/ruby/opennebula
474
)
475

    
476
INSTALL_SUNSTONE_RUBY_FILES=(
477
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
478
    OCA_LIB_FILES:$LIB_LOCATION/ruby
479
)
480

    
481
INSTALL_SUNSTONE_FILES=(
482
    SUNSTONE_FILES:$SUNSTONE_LOCATION
483
    SUNSTONE_BIN_FILES:$BIN_LOCATION
484
    SUNSTONE_MODELS_FILES:$SUNSTONE_LOCATION/models
485
    SUNSTONE_MODELS_JSON_FILES:$SUNSTONE_LOCATION/models/OpenNebulaJSON
486
    SUNSTONE_VIEWS_FILES:$SUNSTONE_LOCATION/views
487
    SUNSTONE_ROUTES_FILES:$SUNSTONE_LOCATION/routes
488
)
489

    
490
INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES=(
491
  SUNSTONE_PUBLIC_JS_FILES:$SUNSTONE_LOCATION/public/dist
492
  SUNSTONE_PUBLIC_JS_CONSOLE_FILES:$SUNSTONE_LOCATION/public/dist/console
493
  SUNSTONE_PUBLIC_FONT_AWSOME:$SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts
494
  SUNSTONE_PUBLIC_CSS_FILES:$SUNSTONE_LOCATION/public/css
495
  SUNSTONE_PUBLIC_IMAGES_FILES:$SUNSTONE_LOCATION/public/images
496
  SUNSTONE_PUBLIC_LOGOS_FILES:$SUNSTONE_LOCATION/public/images/logos
497
  SUNSTONE_PUBLIC_LOCALE_CA:$SUNSTONE_LOCATION/public/locale/languages
498
  SUNSTONE_PUBLIC_LOCALE_CS_CZ:$SUNSTONE_LOCATION/public/locale/languages
499
  SUNSTONE_PUBLIC_LOCALE_DE:$SUNSTONE_LOCATION/public/locale/languages
500
  SUNSTONE_PUBLIC_LOCALE_DA:$SUNSTONE_LOCATION/public/locale/languages
501
  SUNSTONE_PUBLIC_LOCALE_EL_GR:$SUNSTONE_LOCATION/public/locale/languages
502
  SUNSTONE_PUBLIC_LOCALE_EN_US:$SUNSTONE_LOCATION/public/locale/languages
503
  SUNSTONE_PUBLIC_LOCALE_ES_ES:$SUNSTONE_LOCATION/public/locale/languages
504
  SUNSTONE_PUBLIC_LOCALE_FA_IR:$SUNSTONE_LOCATION/public/locale/languages
505
  SUNSTONE_PUBLIC_LOCALE_FR_FR:$SUNSTONE_LOCATION/public/locale/languages
506
  SUNSTONE_PUBLIC_LOCALE_IT_IT:$SUNSTONE_LOCATION/public/locale/languages
507
  SUNSTONE_PUBLIC_LOCALE_JA:$SUNSTONE_LOCATION/public/locale/languages
508
  SUNSTONE_PUBLIC_LOCALE_LT_LT:$SUNSTONE_LOCATION/public/locale/languages
509
  SUNSTONE_PUBLIC_LOCALE_NL_NL:$SUNSTONE_LOCATION/public/locale/languages
510
  SUNSTONE_PUBLIC_LOCALE_PL:$SUNSTONE_LOCATION/public/locale/languages
511
  SUNSTONE_PUBLIC_LOCALE_PT_PT:$SUNSTONE_LOCATION/public/locale/languages
512
  SUNSTONE_PUBLIC_LOCALE_PT_BR:$SUNSTONE_LOCATION/public/locale/languages
513
  SUNSTONE_PUBLIC_LOCALE_RU_RU:$SUNSTONE_LOCATION/public/locale/languages
514
  SUNSTONE_PUBLIC_LOCALE_SK_SK:$SUNSTONE_LOCATION/public/locale/languages
515
  SUNSTONE_PUBLIC_LOCALE_ZH_CN:$SUNSTONE_LOCATION/public/locale/languages
516
  SUNSTONE_PUBLIC_LOCALE_ZH_TW:$SUNSTONE_LOCATION/public/locale/languages
517
)
518

    
519
INSTALL_SUNSTONE_PUBLIC_DEV_DIR=(
520
  SUNSTONE_PUBLIC_DEV_DIR:$SUNSTONE_LOCATION
521
)
522

    
523
INSTALL_SUNSTONE_ETC_FILES=(
524
    SUNSTONE_ETC_FILES:$ETC_LOCATION
525
    SUNSTONE_ETC_VIEW_FILES:$ETC_LOCATION/sunstone-views
526
)
527

    
528
INSTALL_ONEGATE_FILES=(
529
    ONEGATE_FILES:$ONEGATE_LOCATION
530
    ONEGATE_BIN_FILES:$BIN_LOCATION
531
)
532

    
533
INSTALL_ONEGATE_ETC_FILES=(
534
    ONEGATE_ETC_FILES:$ETC_LOCATION
535
)
536

    
537
INSTALL_ONEFLOW_FILES=(
538
    ONEFLOW_FILES:$ONEFLOW_LOCATION
539
    ONEFLOW_BIN_FILES:$BIN_LOCATION
540
    ONEFLOW_LIB_FILES:$ONEFLOW_LOCATION/lib
541
    ONEFLOW_LIB_STRATEGY_FILES:$ONEFLOW_LOCATION/lib/strategy
542
    ONEFLOW_LIB_MODELS_FILES:$ONEFLOW_LOCATION/lib/models
543
)
544

    
545
INSTALL_ONEFLOW_ETC_FILES=(
546
    ONEFLOW_ETC_FILES:$ETC_LOCATION
547
)
548

    
549
INSTALL_ETC_FILES=(
550
    ETC_FILES:$ETC_LOCATION
551
    VMWARE_ETC_FILES:$ETC_LOCATION
552
    EC2_ETC_FILES:$ETC_LOCATION
553
    SL_ETC_FILES:$ETC_LOCATION
554
    AZ_ETC_FILES:$ETC_LOCATION
555
    VMM_EXEC_ETC_FILES:$ETC_LOCATION/vmm_exec
556
    HM_ETC_FILES:$ETC_LOCATION/hm
557
    AUTH_ETC_FILES:$ETC_LOCATION/auth
558
    ECO_ETC_FILES:$ETC_LOCATION
559
    ECO_ETC_TEMPLATE_FILES:$ETC_LOCATION/ec2query_templates
560
    CLI_CONF_FILES:$ETC_LOCATION/cli
561
)
562

    
563
#-------------------------------------------------------------------------------
564
# Binary files, to be installed under $BIN_LOCATION
565
#-------------------------------------------------------------------------------
566

    
567
BIN_FILES="src/nebula/oned \
568
           src/scheduler/src/sched/mm_sched \
569
           src/cli/onevm \
570
           src/cli/oneacct \
571
           src/cli/oneshowback \
572
           src/cli/onehost \
573
           src/cli/onevnet \
574
           src/cli/oneuser \
575
           src/cli/oneimage \
576
           src/cli/onegroup \
577
           src/cli/onetemplate \
578
           src/cli/oneacl \
579
           src/cli/onedatastore \
580
           src/cli/onecluster \
581
           src/cli/onezone \
582
           src/cli/oneflow \
583
           src/cli/oneflow-template \
584
           src/cli/onesecgroup \
585
           src/cli/onevdc \
586
           src/cli/onevcenter \
587
           src/onedb/onedb \
588
           src/mad/utils/tty_expect \
589
           share/scripts/one"
590

    
591
#-------------------------------------------------------------------------------
592
# C/C++ OpenNebula API Library & Development files
593
# Include files, to be installed under $INCLUDE_LOCATION
594
# Library files, to be installed under $LIB_LOCATION
595
#-------------------------------------------------------------------------------
596

    
597
INCLUDE_FILES=""
598
LIB_FILES=""
599

    
600
#-------------------------------------------------------------------------------
601
# Ruby library files, to be installed under $LIB_LOCATION/ruby
602
#-------------------------------------------------------------------------------
603

    
604
RUBY_LIB_FILES="src/mad/ruby/ActionManager.rb \
605
                src/mad/ruby/CommandManager.rb \
606
                src/mad/ruby/OpenNebulaDriver.rb \
607
                src/mad/ruby/VirtualMachineDriver.rb \
608
                src/mad/ruby/DriverExecHelper.rb \
609
                src/mad/ruby/ssh_stream.rb \
610
                src/vnm_mad/one_vnm.rb \
611
                src/oca/ruby/deprecated/OpenNebula.rb \
612
                src/oca/ruby/opennebula.rb \
613
                src/sunstone/OpenNebulaVNC.rb \
614
                src/vmm_mad/remotes/vcenter/vcenter_driver.rb \
615
                src/vmm_mad/remotes/az/az_driver.rb \
616
                src/vmm_mad/remotes/ec2/ec2_driver.rb \
617
                src/vmm_mad/remotes/sl/sl_driver.rb"
618

    
619
#-------------------------------------------------------------------------------
620
# Ruby auth library files, to be installed under $LIB_LOCATION/ruby/opennebula
621
#-------------------------------------------------------------------------------
622

    
623
RUBY_AUTH_LIB_FILES="src/authm_mad/remotes/ssh/ssh_auth.rb \
624
                src/authm_mad/remotes/server_x509/server_x509_auth.rb \
625
                src/authm_mad/remotes/server_cipher/server_cipher_auth.rb \
626
                src/authm_mad/remotes/ldap/ldap_auth.rb \
627
                src/authm_mad/remotes/x509/x509_auth.rb"
628

    
629
#-----------------------------------------------------------------------------
630
# MAD Script library files, to be installed under $LIB_LOCATION/<script lang>
631
# and remotes directory
632
#-----------------------------------------------------------------------------
633

    
634
MAD_SH_LIB_FILES="src/mad/sh/scripts_common.sh"
635
MAD_RUBY_LIB_FILES="src/mad/ruby/scripts_common.rb"
636

    
637
#-------------------------------------------------------------------------------
638
# Driver executable files, to be installed under $LIB_LOCATION/mads
639
#-------------------------------------------------------------------------------
640

    
641
MADS_LIB_FILES="src/mad/sh/madcommon.sh \
642
              src/vmm_mad/exec/one_vmm_exec.rb \
643
              src/vmm_mad/exec/one_vmm_exec \
644
              src/vmm_mad/exec/one_vmm_sh \
645
              src/vmm_mad/exec/one_vmm_ssh \
646
              src/vmm_mad/dummy/one_vmm_dummy.rb \
647
              src/vmm_mad/dummy/one_vmm_dummy \
648
              src/im_mad/im_exec/one_im_exec.rb \
649
              src/im_mad/im_exec/one_im_exec \
650
              src/im_mad/im_exec/one_im_ssh \
651
              src/im_mad/im_exec/one_im_sh \
652
              src/im_mad/dummy/one_im_dummy.rb \
653
              src/im_mad/dummy/one_im_dummy \
654
              src/im_mad/collectd/collectd \
655
              src/tm_mad/one_tm \
656
              src/tm_mad/one_tm.rb \
657
              src/hm_mad/one_hm.rb \
658
              src/hm_mad/one_hm \
659
              src/authm_mad/one_auth_mad.rb \
660
              src/authm_mad/one_auth_mad \
661
              src/datastore_mad/one_datastore.rb \
662
              src/datastore_mad/one_datastore"
663

    
664
#-------------------------------------------------------------------------------
665
# VMM SH Driver KVM scripts, to be installed under $REMOTES_LOCATION/vmm/kvm
666
#-------------------------------------------------------------------------------
667

    
668
VMM_EXEC_KVM_SCRIPTS="src/vmm_mad/remotes/kvm/cancel \
669
                    src/vmm_mad/remotes/kvm/deploy \
670
                    src/vmm_mad/remotes/kvm/kvmrc \
671
                    src/vmm_mad/remotes/kvm/migrate \
672
                    src/vmm_mad/remotes/kvm/migrate_local \
673
                    src/vmm_mad/remotes/kvm/restore \
674
                    src/vmm_mad/remotes/kvm/reboot \
675
                    src/vmm_mad/remotes/kvm/reset \
676
                    src/vmm_mad/remotes/kvm/save \
677
                    src/vmm_mad/remotes/kvm/poll \
678
                    src/vmm_mad/remotes/kvm/attach_disk \
679
                    src/vmm_mad/remotes/kvm/detach_disk \
680
                    src/vmm_mad/remotes/kvm/attach_nic \
681
                    src/vmm_mad/remotes/kvm/detach_nic \
682
                    src/vmm_mad/remotes/kvm/snapshot_create \
683
                    src/vmm_mad/remotes/kvm/snapshot_revert \
684
                    src/vmm_mad/remotes/kvm/snapshot_delete \
685
                    src/vmm_mad/remotes/kvm/shutdown"
686

    
687
#-------------------------------------------------------------------------------
688
# VMM SH Driver Xen scripts, to be installed under $REMOTES_LOCATION/vmm/xen
689
#-------------------------------------------------------------------------------
690

    
691
VMM_EXEC_XEN3_SCRIPTS="src/vmm_mad/remotes/xen/cancel \
692
                    src/vmm_mad/remotes/xen/deploy \
693
                    src/vmm_mad/remotes/xen/xen3/xenrc \
694
                    src/vmm_mad/remotes/xen/xen3/migrate \
695
                    src/vmm_mad/remotes/xen/restore \
696
                    src/vmm_mad/remotes/xen/reboot \
697
                    src/vmm_mad/remotes/xen/xen3/reset \
698
                    src/vmm_mad/remotes/xen/save \
699
                    src/vmm_mad/remotes/xen/poll \
700
                    src/vmm_mad/remotes/xen/attach_disk \
701
                    src/vmm_mad/remotes/xen/detach_disk \
702
                    src/vmm_mad/remotes/xen/attach_nic \
703
                    src/vmm_mad/remotes/xen/detach_nic \
704
                    src/vmm_mad/remotes/xen/snapshot_create \
705
                    src/vmm_mad/remotes/xen/snapshot_revert \
706
                    src/vmm_mad/remotes/xen/snapshot_delete \
707
                    src/vmm_mad/remotes/xen/shutdown"
708

    
709
VMM_EXEC_XEN4_SCRIPTS="src/vmm_mad/remotes/xen/cancel \
710
                    src/vmm_mad/remotes/xen/deploy \
711
                    src/vmm_mad/remotes/xen/xen4/xenrc \
712
                    src/vmm_mad/remotes/xen/xen4/migrate \
713
                    src/vmm_mad/remotes/xen/restore \
714
                    src/vmm_mad/remotes/xen/reboot \
715
                    src/vmm_mad/remotes/xen/xen4/reset \
716
                    src/vmm_mad/remotes/xen/save \
717
                    src/vmm_mad/remotes/xen/poll \
718
                    src/vmm_mad/remotes/xen/attach_disk \
719
                    src/vmm_mad/remotes/xen/detach_disk \
720
                    src/vmm_mad/remotes/xen/attach_nic \
721
                    src/vmm_mad/remotes/xen/detach_nic \
722
                    src/vmm_mad/remotes/xen/snapshot_create \
723
                    src/vmm_mad/remotes/xen/snapshot_revert \
724
                    src/vmm_mad/remotes/xen/snapshot_delete \
725
                    src/vmm_mad/remotes/xen/shutdown"
726
#-------------------------------------------------------------------------------
727
# VMM Driver VMWARE scripts, to be installed under $REMOTES_LOCATION/vmm/vmware
728
#-------------------------------------------------------------------------------
729

    
730
VMM_EXEC_VMWARE_SCRIPTS="src/vmm_mad/remotes/vmware/cancel \
731
                         src/vmm_mad/remotes/vmware/attach_disk \
732
                         src/vmm_mad/remotes/vmware/detach_disk \
733
                         src/vmm_mad/remotes/vmware/attach_nic \
734
                         src/vmm_mad/remotes/vmware/detach_nic \
735
                         src/vmm_mad/remotes/vmware/snapshot_create \
736
                         src/vmm_mad/remotes/vmware/snapshot_revert \
737
                         src/vmm_mad/remotes/vmware/snapshot_delete \
738
                         src/vmm_mad/remotes/vmware/scripts_common_sh.sh \
739
                         src/vmm_mad/remotes/vmware/deploy \
740
                         src/vmm_mad/remotes/vmware/migrate \
741
                         src/vmm_mad/remotes/vmware/restore \
742
                         src/vmm_mad/remotes/vmware/reboot \
743
                         src/vmm_mad/remotes/vmware/reset \
744
                         src/vmm_mad/remotes/vmware/save \
745
                         src/vmm_mad/remotes/vmware/poll \
746
                         src/vmm_mad/remotes/vmware/checkpoint \
747
                         src/vmm_mad/remotes/vmware/shutdown \
748
                         src/vmm_mad/remotes/vmware/vmware_driver.rb \
749
                         src/vmm_mad/remotes/vmware/vi_driver.rb"
750

    
751
#-------------------------------------------------------------------------------
752
# VMM Driver vCenter scripts, installed under $REMOTES_LOCATION/vmm/vcenter
753
#-------------------------------------------------------------------------------
754

    
755
VMM_EXEC_VCENTER_SCRIPTS="src/vmm_mad/remotes/vcenter/cancel \
756
                         src/vmm_mad/remotes/vcenter/attach_disk \
757
                         src/vmm_mad/remotes/vcenter/detach_disk \
758
                         src/vmm_mad/remotes/vcenter/attach_nic \
759
                         src/vmm_mad/remotes/vcenter/detach_nic \
760
                         src/vmm_mad/remotes/vcenter/snapshot_create \
761
                         src/vmm_mad/remotes/vcenter/snapshot_revert \
762
                         src/vmm_mad/remotes/vcenter/snapshot_delete \
763
                         src/vmm_mad/remotes/vcenter/deploy \
764
                         src/vmm_mad/remotes/vcenter/migrate \
765
                         src/vmm_mad/remotes/vcenter/restore \
766
                         src/vmm_mad/remotes/vcenter/reboot \
767
                         src/vmm_mad/remotes/vcenter/reset \
768
                         src/vmm_mad/remotes/vcenter/save \
769
                         src/vmm_mad/remotes/vcenter/poll \
770
                         src/vmm_mad/remotes/vcenter/shutdown"
771

    
772
#------------------------------------------------------------------------------
773
# VMM Driver EC2 scripts, to be installed under $REMOTES_LOCATION/vmm/ec2
774
#------------------------------------------------------------------------------
775

    
776
VMM_EXEC_EC2_SCRIPTS="src/vmm_mad/remotes/ec2/cancel \
777
                      src/vmm_mad/remotes/ec2/attach_disk \
778
                      src/vmm_mad/remotes/ec2/detach_disk \
779
                      src/vmm_mad/remotes/ec2/attach_nic \
780
                      src/vmm_mad/remotes/ec2/detach_nic \
781
                      src/vmm_mad/remotes/ec2/snapshot_create \
782
                      src/vmm_mad/remotes/ec2/snapshot_revert \
783
                      src/vmm_mad/remotes/ec2/snapshot_delete \
784
                      src/vmm_mad/remotes/ec2/deploy \
785
                      src/vmm_mad/remotes/ec2/migrate \
786
                      src/vmm_mad/remotes/ec2/restore \
787
                      src/vmm_mad/remotes/ec2/reboot \
788
                      src/vmm_mad/remotes/ec2/reset \
789
                      src/vmm_mad/remotes/ec2/save \
790
                      src/vmm_mad/remotes/ec2/poll \
791
                      src/vmm_mad/remotes/ec2/shutdown"
792

    
793
#------------------------------------------------------------------------------
794
# VMM Driver SoftLayer scripts, to be installed under $REMOTES_LOCATION/vmm/sl
795
#------------------------------------------------------------------------------
796

    
797
VMM_EXEC_SL_SCRIPTS="src/vmm_mad/remotes/sl/cancel \
798
                     src/vmm_mad/remotes/sl/attach_disk \
799
                     src/vmm_mad/remotes/sl/detach_disk \
800
                     src/vmm_mad/remotes/sl/attach_nic \
801
                     src/vmm_mad/remotes/sl/detach_nic \
802
                     src/vmm_mad/remotes/sl/snapshot_create \
803
                     src/vmm_mad/remotes/sl/snapshot_revert \
804
                     src/vmm_mad/remotes/sl/snapshot_delete \
805
                     src/vmm_mad/remotes/sl/deploy \
806
                     src/vmm_mad/remotes/sl/migrate \
807
                     src/vmm_mad/remotes/sl/restore \
808
                     src/vmm_mad/remotes/sl/reboot \
809
                     src/vmm_mad/remotes/sl/reset \
810
                     src/vmm_mad/remotes/sl/save \
811
                     src/vmm_mad/remotes/sl/poll \
812
                     src/vmm_mad/remotes/sl/shutdown"
813

    
814
#------------------------------------------------------------------------------
815
# VMM Driver Azure scripts, to be installed under $REMOTES_LOCATION/vmm/az
816
#------------------------------------------------------------------------------
817

    
818
VMM_EXEC_AZ_SCRIPTS="src/vmm_mad/remotes/az/cancel \
819
                     src/vmm_mad/remotes/az/attach_disk \
820
                     src/vmm_mad/remotes/az/detach_disk \
821
                     src/vmm_mad/remotes/az/attach_nic \
822
                     src/vmm_mad/remotes/az/detach_nic \
823
                     src/vmm_mad/remotes/az/snapshot_create \
824
                     src/vmm_mad/remotes/az/snapshot_revert \
825
                     src/vmm_mad/remotes/az/snapshot_delete \
826
                     src/vmm_mad/remotes/az/deploy \
827
                     src/vmm_mad/remotes/az/migrate \
828
                     src/vmm_mad/remotes/az/restore \
829
                     src/vmm_mad/remotes/az/reboot \
830
                     src/vmm_mad/remotes/az/reset \
831
                     src/vmm_mad/remotes/az/save \
832
                     src/vmm_mad/remotes/az/poll \
833
                     src/vmm_mad/remotes/az/shutdown"
834

    
835
#-------------------------------------------------------------------------------
836
# Information Manager Probes, to be installed under $REMOTES_LOCATION/im
837
#-------------------------------------------------------------------------------
838

    
839
IM_PROBES_FILES="src/im_mad/remotes/run_probes \
840
                 src/im_mad/remotes/stop_probes"
841

    
842
IM_PROBES_KVM_FILES="src/im_mad/remotes/kvm.d/collectd-client_control.sh \
843
                     src/im_mad/remotes/kvm.d/collectd-client.rb"
844

    
845
IM_PROBES_KVM_PROBES_FILES="src/im_mad/remotes/kvm-probes.d/kvm.rb \
846
                     src/im_mad/remotes/kvm-probes.d/architecture.sh \
847
                     src/im_mad/remotes/kvm-probes.d/cpu.sh \
848
                     src/im_mad/remotes/kvm-probes.d/poll.sh \
849
                     src/im_mad/remotes/kvm-probes.d/name.sh \
850
                     src/im_mad/remotes/common.d/monitor_ds.sh \
851
                     src/im_mad/remotes/common.d/version.sh \
852
                     src/im_mad/remotes/common.d/collectd-client-shepherd.sh"
853

    
854
IM_PROBES_XEN3_FILES="src/im_mad/remotes/xen.d/collectd-client_control.sh \
855
                      src/im_mad/remotes/xen.d/collectd-client.rb"
856

    
857
IM_PROBES_XEN3_PROBES_FILES="src/im_mad/remotes/xen-probes.d/xen.rb \
858
                      src/im_mad/remotes/xen-probes.d/architecture.sh \
859
                      src/im_mad/remotes/xen-probes.d/cpu.sh \
860
                      src/im_mad/remotes/xen-probes.d/poll3.sh \
861
                      src/im_mad/remotes/xen-probes.d/name.sh
862
                      src/im_mad/remotes/common.d/monitor_ds.sh \
863
                      src/im_mad/remotes/common.d/version.sh \
864
                      src/im_mad/remotes/common.d/collectd-client-shepherd.sh"
865

    
866
IM_PROBES_XEN4_FILES="src/im_mad/remotes/xen.d/collectd-client_control.sh \
867
                      src/im_mad/remotes/xen.d/collectd-client.rb"
868

    
869
IM_PROBES_XEN4_PROBES_FILES="src/im_mad/remotes/xen-probes.d/xen.rb \
870
                      src/im_mad/remotes/xen-probes.d/architecture.sh \
871
                      src/im_mad/remotes/xen-probes.d/cpu.sh \
872
                      src/im_mad/remotes/xen-probes.d/poll4.sh \
873
                      src/im_mad/remotes/xen-probes.d/name.sh \
874
                      src/im_mad/remotes/common.d/monitor_ds.sh \
875
                      src/im_mad/remotes/common.d/version.sh \
876
                      src/im_mad/remotes/common.d/collectd-client-shepherd.sh"
877

    
878
IM_PROBES_VMWARE_FILES="src/im_mad/remotes/vmware.d/vmware.rb"
879

    
880
IM_PROBES_VCENTER_FILES="src/im_mad/remotes/vcenter.d/vcenter.rb"
881

    
882
IM_PROBES_EC2_FILES="src/im_mad/remotes/ec2.d/poll"
883

    
884
IM_PROBES_SL_FILES="src/im_mad/remotes/sl.d/poll"
885
IM_PROBES_AZ_FILES="src/im_mad/remotes/az.d/poll"
886

    
887
IM_PROBES_VERSION="src/im_mad/remotes/VERSION"
888

    
889
#-------------------------------------------------------------------------------
890
# Auth Manager drivers to be installed under $REMOTES_LOCATION/auth
891
#-------------------------------------------------------------------------------
892

    
893
AUTH_SERVER_CIPHER_FILES="src/authm_mad/remotes/server_cipher/authenticate"
894

    
895
AUTH_SERVER_X509_FILES="src/authm_mad/remotes/server_x509/authenticate"
896

    
897
AUTH_X509_FILES="src/authm_mad/remotes/x509/authenticate"
898

    
899
AUTH_LDAP_FILES="src/authm_mad/remotes/ldap/authenticate"
900

    
901
AUTH_SSH_FILES="src/authm_mad/remotes/ssh/authenticate"
902

    
903
AUTH_DUMMY_FILES="src/authm_mad/remotes/dummy/authenticate"
904

    
905
AUTH_PLAIN_FILES="src/authm_mad/remotes/plain/authenticate"
906

    
907
#-------------------------------------------------------------------------------
908
# Virtual Network Manager drivers to be installed under $REMOTES_LOCATION/vnm
909
#-------------------------------------------------------------------------------
910

    
911
NETWORK_FILES="src/vnm_mad/remotes/lib/vnm_driver.rb \
912
               src/vnm_mad/remotes/lib/vnmmad.rb \
913
               src/vnm_mad/remotes/OpenNebulaNetwork.conf \
914
               src/vnm_mad/remotes/lib/fw_driver.rb \
915
               src/vnm_mad/remotes/lib/sg_driver.rb \
916
               src/vnm_mad/remotes/lib/address.rb \
917
               src/vnm_mad/remotes/lib/command.rb \
918
               src/vnm_mad/remotes/lib/vm.rb \
919
               src/vnm_mad/remotes/lib/vlan.rb \
920
               src/vnm_mad/remotes/lib/security_groups.rb \
921
               src/vnm_mad/remotes/lib/security_groups_iptables.rb \
922
               src/vnm_mad/remotes/lib/nic.rb"
923

    
924
NETWORK_8021Q_FILES="src/vnm_mad/remotes/802.1Q/clean \
925
                    src/vnm_mad/remotes/802.1Q/post \
926
                    src/vnm_mad/remotes/802.1Q/pre \
927
                    src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb"
928

    
929
NETWORK_VXLAN_FILES="src/vnm_mad/remotes/vxlan/clean \
930
                    src/vnm_mad/remotes/vxlan/post \
931
                    src/vnm_mad/remotes/vxlan/pre \
932
                    src/vnm_mad/remotes/vxlan/vxlan_driver.rb"
933

    
934

    
935
NETWORK_DUMMY_FILES="src/vnm_mad/remotes/dummy/clean \
936
                    src/vnm_mad/remotes/dummy/post \
937
                    src/vnm_mad/remotes/dummy/pre"
938

    
939
NETWORK_EBTABLES_FILES="src/vnm_mad/remotes/ebtables/clean \
940
                    src/vnm_mad/remotes/ebtables/post \
941
                    src/vnm_mad/remotes/ebtables/pre \
942
                    src/vnm_mad/remotes/ebtables/Ebtables.rb"
943

    
944
NETWORK_FW_FILES="src/vnm_mad/remotes/fw/post \
945
                          src/vnm_mad/remotes/fw/pre \
946
                          src/vnm_mad/remotes/fw/clean"
947

    
948
NETWORK_OVSWITCH_FILES="src/vnm_mad/remotes/ovswitch/clean \
949
                    src/vnm_mad/remotes/ovswitch/post \
950
                    src/vnm_mad/remotes/ovswitch/pre \
951
                    src/vnm_mad/remotes/ovswitch/OpenvSwitch.rb"
952

    
953
NETWORK_OVSWITCH_BRCOMPAT_FILES="src/vnm_mad/remotes/ovswitch_brcompat/clean \
954
                    src/vnm_mad/remotes/ovswitch_brcompat/post \
955
                    src/vnm_mad/remotes/ovswitch_brcompat/pre \
956
                    src/vnm_mad/remotes/ovswitch_brcompat/OpenvSwitch.rb"
957

    
958
NETWORK_VMWARE_FILES="src/vnm_mad/remotes/vmware/clean \
959
                    src/vnm_mad/remotes/vmware/post \
960
                    src/vnm_mad/remotes/vmware/pre \
961
                    src/vnm_mad/remotes/vmware/VMware.rb"
962

    
963
#-------------------------------------------------------------------------------
964
# Transfer Manager commands, to be installed under $LIB_LOCATION/tm_commands
965
#   - SHARED TM, $VAR_LOCATION/tm/shared
966
#   - FS_LVM TM, $VAR_LOCATION/tm/fs_lvm
967
#   - QCOW2 TM, $VAR_LOCATION/tm/qcow2
968
#   - SSH TM, $VAR_LOCATION/tm/ssh
969
#   - DUMMY TM, $VAR_LOCATION/tm/dummy
970
#   - VMWARE TM, $VAR_LOCATION/tm/vmware
971
#   - LVM TM, $VAR_LOCATION/tm/lvm
972
#   - CEPH TM, $VAR_LOCATION/tm/ceph
973
#   - DEV TM, $VAR_LOCATION/tm/dev
974
#-------------------------------------------------------------------------------
975

    
976
TM_FILES="src/tm_mad/tm_common.sh"
977

    
978
TM_SHARED_FILES="src/tm_mad/shared/clone \
979
                 src/tm_mad/shared/delete \
980
                 src/tm_mad/shared/ln \
981
                 src/tm_mad/shared/mkswap \
982
                 src/tm_mad/shared/mkimage \
983
                 src/tm_mad/shared/mv \
984
                 src/tm_mad/shared/context \
985
                 src/tm_mad/shared/premigrate \
986
                 src/tm_mad/shared/postmigrate \
987
                 src/tm_mad/shared/failmigrate \
988
                 src/tm_mad/shared/mvds \
989
                 src/tm_mad/shared/snap_create \
990
                 src/tm_mad/shared/snap_create_live \
991
                 src/tm_mad/shared/snap_delete \
992
                 src/tm_mad/shared/snap_revert \
993
                 src/tm_mad/shared/cpds"
994

    
995
TM_FS_LVM_FILES="src/tm_mad/fs_lvm/clone \
996
                 src/tm_mad/fs_lvm/ln \
997
                 src/tm_mad/fs_lvm/mv \
998
                 src/tm_mad/fs_lvm/mvds \
999
                 src/tm_mad/fs_lvm/cpds \
1000
                 src/tm_mad/fs_lvm/premigrate \
1001
                 src/tm_mad/fs_lvm/postmigrate \
1002
                 src/tm_mad/fs_lvm/snap_create \
1003
                 src/tm_mad/fs_lvm/snap_create_live \
1004
                 src/tm_mad/fs_lvm/snap_delete \
1005
                 src/tm_mad/fs_lvm/snap_revert \
1006
                 src/tm_mad/fs_lvm/failmigrate \
1007
                 src/tm_mad/fs_lvm/delete"
1008

    
1009
TM_QCOW2_FILES="src/tm_mad/qcow2/clone \
1010
                 src/tm_mad/qcow2/delete \
1011
                 src/tm_mad/qcow2/ln \
1012
                 src/tm_mad/qcow2/mkswap \
1013
                 src/tm_mad/qcow2/mkimage \
1014
                 src/tm_mad/qcow2/mv \
1015
                 src/tm_mad/qcow2/context \
1016
                 src/tm_mad/qcow2/premigrate \
1017
                 src/tm_mad/qcow2/postmigrate \
1018
                 src/tm_mad/qcow2/failmigrate \
1019
                 src/tm_mad/qcow2/mvds \
1020
                 src/tm_mad/qcow2/snap_create \
1021
                 src/tm_mad/qcow2/snap_create_live \
1022
                 src/tm_mad/qcow2/snap_delete \
1023
                 src/tm_mad/qcow2/snap_revert \
1024
                 src/tm_mad/qcow2/cpds"
1025

    
1026
TM_SSH_FILES="src/tm_mad/ssh/clone \
1027
              src/tm_mad/ssh/delete \
1028
              src/tm_mad/ssh/ln \
1029
              src/tm_mad/ssh/mkswap \
1030
              src/tm_mad/ssh/mkimage \
1031
              src/tm_mad/ssh/mv \
1032
              src/tm_mad/ssh/context \
1033
              src/tm_mad/ssh/premigrate \
1034
              src/tm_mad/ssh/postmigrate \
1035
              src/tm_mad/ssh/failmigrate \
1036
              src/tm_mad/ssh/mvds \
1037
              src/tm_mad/ssh/snap_create \
1038
              src/tm_mad/ssh/snap_create_live \
1039
              src/tm_mad/ssh/snap_delete \
1040
              src/tm_mad/ssh/snap_revert \
1041
              src/tm_mad/ssh/cpds"
1042

    
1043
TM_DUMMY_FILES="src/tm_mad/dummy/clone \
1044
              src/tm_mad/dummy/delete \
1045
              src/tm_mad/dummy/ln \
1046
              src/tm_mad/dummy/mkswap \
1047
              src/tm_mad/dummy/mkimage \
1048
              src/tm_mad/dummy/mv \
1049
              src/tm_mad/dummy/context \
1050
              src/tm_mad/dummy/premigrate \
1051
              src/tm_mad/dummy/postmigrate \
1052
              src/tm_mad/dummy/failmigrate \
1053
              src/tm_mad/dummy/mvds \
1054
              src/tm_mad/dummy/snap_create \
1055
              src/tm_mad/dummy/snap_create_live \
1056
              src/tm_mad/dummy/snap_delete \
1057
              src/tm_mad/dummy/snap_revert \
1058
              src/tm_mad/dummy/cpds"
1059

    
1060
TM_VMFS_FILES="src/tm_mad/vmfs/clone \
1061
                 src/tm_mad/vmfs/delete
1062
                 src/tm_mad/vmfs/ln \
1063
                 src/tm_mad/vmfs/mkswap \
1064
                 src/tm_mad/vmfs/mkimage \
1065
                 src/tm_mad/vmfs/mv \
1066
                 src/tm_mad/vmfs/context \
1067
                 src/tm_mad/vmfs/mvds \
1068
                 src/tm_mad/vmfs/cpds \
1069
                 src/tm_mad/vmfs/postmigrate \
1070
                 src/tm_mad/vmfs/snap_create \
1071
                 src/tm_mad/vmfs/snap_create_live \
1072
                 src/tm_mad/vmfs/snap_delete \
1073
                 src/tm_mad/vmfs/snap_revert \
1074
                 src/tm_mad/vmfs/failmigrate \
1075
                 src/tm_mad/vmfs/premigrate"
1076

    
1077
TM_LVM_FILES="src/tm_mad/lvm/clone \
1078
                 src/tm_mad/lvm/ln \
1079
                 src/tm_mad/lvm/mv \
1080
                 src/tm_mad/lvm/mvds \
1081
                 src/tm_mad/lvm/cpds \
1082
                 src/tm_mad/lvm/premigrate \
1083
                 src/tm_mad/lvm/postmigrate \
1084
                 src/tm_mad/lvm/snap_create \
1085
                 src/tm_mad/lvm/snap_create_live \
1086
                 src/tm_mad/lvm/snap_delete \
1087
                 src/tm_mad/lvm/snap_revert \
1088
                 src/tm_mad/lvm/failmigrate \
1089
                 src/tm_mad/lvm/delete"
1090

    
1091
TM_CEPH_FILES="src/tm_mad/ceph/clone \
1092
                 src/tm_mad/ceph/ln \
1093
                 src/tm_mad/ceph/mv \
1094
                 src/tm_mad/ceph/mvds \
1095
                 src/tm_mad/ceph/cpds \
1096
                 src/tm_mad/ceph/premigrate \
1097
                 src/tm_mad/ceph/postmigrate \
1098
                 src/tm_mad/ceph/snap_create \
1099
                 src/tm_mad/ceph/snap_create_live \
1100
                 src/tm_mad/ceph/snap_delete \
1101
                 src/tm_mad/ceph/snap_revert \
1102
                 src/tm_mad/ceph/failmigrate \
1103
                 src/tm_mad/ceph/delete"
1104

    
1105
TM_DEV_FILES="src/tm_mad/dev/clone \
1106
                 src/tm_mad/dev/ln \
1107
                 src/tm_mad/dev/mv \
1108
                 src/tm_mad/dev/mvds \
1109
                 src/tm_mad/dev/cpds \
1110
                 src/tm_mad/dev/premigrate \
1111
                 src/tm_mad/dev/postmigrate \
1112
                 src/tm_mad/dev/snap_create \
1113
                 src/tm_mad/dev/snap_create_live \
1114
                 src/tm_mad/dev/snap_delete \
1115
                 src/tm_mad/dev/snap_revert \
1116
                 src/tm_mad/dev/failmigrate \
1117
                 src/tm_mad/dev/delete"
1118

    
1119
#-------------------------------------------------------------------------------
1120
# Datastore drivers, to be installed under $REMOTES_LOCATION/datastore
1121
#   - Dummy Image Repository, $REMOTES_LOCATION/datastore/dummy
1122
#   - FS based Image Repository, $REMOTES_LOCATION/datastore/fs
1123
#   - VMFS based Image Repository, $REMOTES_LOCATION/datastore/vmfs
1124
#   - LVM based Image Repository, $REMOTES_LOCATION/datastore/lvm
1125
#-------------------------------------------------------------------------------
1126

    
1127
DATASTORE_DRIVER_COMMON_SCRIPTS="src/datastore_mad/remotes/xpath.rb \
1128
                             src/datastore_mad/remotes/downloader.sh \
1129
                             src/datastore_mad/remotes/libfs.sh"
1130

    
1131
DATASTORE_DRIVER_DUMMY_SCRIPTS="src/datastore_mad/remotes/dummy/cp \
1132
                         src/datastore_mad/remotes/dummy/mkfs \
1133
                         src/datastore_mad/remotes/dummy/stat \
1134
                         src/datastore_mad/remotes/dummy/clone \
1135
                         src/datastore_mad/remotes/dummy/monitor \
1136
                         src/datastore_mad/remotes/dummy/snap_delete \
1137
                         src/datastore_mad/remotes/dummy/snap_revert \
1138
                         src/datastore_mad/remotes/dummy/snap_flatten \
1139
                         src/datastore_mad/remotes/dummy/rm"
1140

    
1141
DATASTORE_DRIVER_FS_SCRIPTS="src/datastore_mad/remotes/fs/cp \
1142
                         src/datastore_mad/remotes/fs/mkfs \
1143
                         src/datastore_mad/remotes/fs/stat \
1144
                         src/datastore_mad/remotes/fs/clone \
1145
                         src/datastore_mad/remotes/fs/monitor \
1146
                         src/datastore_mad/remotes/fs/snap_delete \
1147
                         src/datastore_mad/remotes/fs/snap_revert \
1148
                         src/datastore_mad/remotes/fs/snap_flatten \
1149
                         src/datastore_mad/remotes/fs/rm"
1150

    
1151
DATASTORE_DRIVER_VMFS_SCRIPTS="src/datastore_mad/remotes/vmfs/cp \
1152
                         src/datastore_mad/remotes/vmfs/mkfs \
1153
                         src/datastore_mad/remotes/vmfs/stat \
1154
                         src/datastore_mad/remotes/vmfs/clone \
1155
                         src/datastore_mad/remotes/vmfs/monitor \
1156
                         src/datastore_mad/remotes/vmfs/rm \
1157
                         src/datastore_mad/remotes/vmfs/snap_delete \
1158
                         src/datastore_mad/remotes/vmfs/snap_revert \
1159
                         src/datastore_mad/remotes/vmfs/snap_flatten \
1160
                         src/datastore_mad/remotes/vmfs/vmfs.conf"
1161

    
1162
DATASTORE_DRIVER_LVM_SCRIPTS="src/datastore_mad/remotes/lvm/cp \
1163
                         src/datastore_mad/remotes/lvm/mkfs \
1164
                         src/datastore_mad/remotes/lvm/stat \
1165
                         src/datastore_mad/remotes/lvm/rm \
1166
                         src/datastore_mad/remotes/lvm/monitor \
1167
                         src/datastore_mad/remotes/lvm/clone \
1168
                         src/datastore_mad/remotes/lvm/snap_delete \
1169
                         src/datastore_mad/remotes/lvm/snap_revert \
1170
                         src/datastore_mad/remotes/lvm/snap_flatten \
1171
                         src/datastore_mad/remotes/lvm/lvm.conf"
1172

    
1173
DATASTORE_DRIVER_CEPH_SCRIPTS="src/datastore_mad/remotes/ceph/cp \
1174
                         src/datastore_mad/remotes/ceph/mkfs \
1175
                         src/datastore_mad/remotes/ceph/stat \
1176
                         src/datastore_mad/remotes/ceph/rm \
1177
                         src/datastore_mad/remotes/ceph/monitor \
1178
                         src/datastore_mad/remotes/ceph/clone \
1179
                         src/datastore_mad/remotes/ceph/snap_delete \
1180
                         src/datastore_mad/remotes/ceph/snap_revert \
1181
                         src/datastore_mad/remotes/ceph/snap_flatten \
1182
                         src/datastore_mad/remotes/ceph/ceph.conf"
1183

    
1184
DATASTORE_DRIVER_DEV_SCRIPTS="src/datastore_mad/remotes/dev/cp \
1185
                         src/datastore_mad/remotes/dev/mkfs \
1186
                         src/datastore_mad/remotes/dev/stat \
1187
                         src/datastore_mad/remotes/dev/rm \
1188
                         src/datastore_mad/remotes/dev/monitor \
1189
                         src/datastore_mad/remotes/dev/snap_delete \
1190
                         src/datastore_mad/remotes/dev/snap_revert \
1191
                         src/datastore_mad/remotes/dev/snap_flatten \
1192
                         src/datastore_mad/remotes/dev/clone"
1193

    
1194
#-------------------------------------------------------------------------------
1195
# Migration scripts for onedb command, to be installed under $LIB_LOCATION
1196
#-------------------------------------------------------------------------------
1197

    
1198

    
1199
ONEDB_FILES="src/onedb/fsck.rb \
1200
            src/onedb/import_slave.rb \
1201
            src/onedb/onedb.rb \
1202
            src/onedb/onedb_backend.rb"
1203

    
1204
ONEDB_SHARED_MIGRATOR_FILES="src/onedb/shared/2.0_to_2.9.80.rb \
1205
                             src/onedb/shared/2.9.80_to_2.9.85.rb \
1206
                             src/onedb/shared/2.9.85_to_2.9.90.rb \
1207
                             src/onedb/shared/2.9.90_to_3.0.0.rb \
1208
                             src/onedb/shared/3.0.0_to_3.1.0.rb \
1209
                             src/onedb/shared/3.1.0_to_3.1.80.rb \
1210
                             src/onedb/shared/3.1.80_to_3.2.0.rb \
1211
                             src/onedb/shared/3.2.0_to_3.2.1.rb \
1212
                             src/onedb/shared/3.2.1_to_3.3.0.rb \
1213
                             src/onedb/shared/3.3.0_to_3.3.80.rb \
1214
                             src/onedb/shared/3.3.80_to_3.4.0.rb \
1215
                             src/onedb/shared/3.4.0_to_3.4.1.rb \
1216
                             src/onedb/shared/3.4.1_to_3.5.80.rb \
1217
                             src/onedb/shared/3.5.80_to_3.6.0.rb \
1218
                             src/onedb/shared/3.6.0_to_3.7.80.rb \
1219
                             src/onedb/shared/3.7.80_to_3.8.0.rb \
1220
                             src/onedb/shared/3.8.0_to_3.8.1.rb \
1221
                             src/onedb/shared/3.8.1_to_3.8.2.rb \
1222
                             src/onedb/shared/3.8.2_to_3.8.3.rb \
1223
                             src/onedb/shared/3.8.3_to_3.8.4.rb \
1224
                             src/onedb/shared/3.8.4_to_3.8.5.rb \
1225
                             src/onedb/shared/3.8.5_to_3.9.80.rb \
1226
                             src/onedb/shared/3.9.80_to_3.9.90.rb \
1227
                             src/onedb/shared/3.9.90_to_4.0.0.rb \
1228
                             src/onedb/shared/4.0.0_to_4.0.1.rb \
1229
                             src/onedb/shared/4.0.1_to_4.1.80.rb \
1230
                             src/onedb/shared/4.1.80_to_4.2.0.rb \
1231
                             src/onedb/shared/4.2.0_to_4.3.80.rb \
1232
                             src/onedb/shared/4.3.80_to_4.3.85.rb \
1233
                             src/onedb/shared/4.3.85_to_4.3.90.rb \
1234
                             src/onedb/shared/4.3.90_to_4.4.0.rb \
1235
                             src/onedb/shared/4.4.0_to_4.4.1.rb \
1236
                             src/onedb/shared/4.4.1_to_4.5.80.rb\
1237
                             src/onedb/shared/4.5.80_to_4.6.0.rb \
1238
                             src/onedb/shared/4.6.0_to_4.11.80.rb"
1239

    
1240
ONEDB_LOCAL_MIGRATOR_FILES="src/onedb/local/4.5.80_to_4.7.80.rb \
1241
                            src/onedb/local/4.7.80_to_4.9.80.rb \
1242
                            src/onedb/local/4.9.80_to_4.10.3.rb \
1243
                            src/onedb/local/4.10.3_to_4.11.80.rb \
1244
                            src/onedb/local/4.11.80_to_4.13.80.rb \
1245
                            src/onedb/local/4.13.80_to_4.13.85.rb"
1246

    
1247
ONEDB_PATCH_FILES="src/onedb/patches/4.14_monitoring.rb"
1248

    
1249
#-------------------------------------------------------------------------------
1250
# Configuration files for OpenNebula, to be installed under $ETC_LOCATION
1251
#-------------------------------------------------------------------------------
1252

    
1253
ETC_FILES="share/etc/oned.conf \
1254
           share/etc/defaultrc \
1255
           src/scheduler/etc/sched.conf"
1256

    
1257
VMWARE_ETC_FILES="src/vmm_mad/remotes/vmware/vmwarerc"
1258

    
1259
EC2_ETC_FILES="src/vmm_mad/remotes/ec2/ec2_driver.conf \
1260
               src/vmm_mad/remotes/ec2/ec2_driver.default"
1261

    
1262
SL_ETC_FILES="src/vmm_mad/remotes/sl/sl_driver.conf \
1263
              src/vmm_mad/remotes/sl/sl_driver.default"
1264

    
1265
AZ_ETC_FILES="src/vmm_mad/remotes/az/az_driver.conf \
1266
              src/vmm_mad/remotes/az/az_driver.default"
1267

    
1268

    
1269
#-------------------------------------------------------------------------------
1270
# Virtualization drivers config. files, to be installed under $ETC_LOCATION
1271
#   - ssh, $ETC_LOCATION/vmm_exec
1272
#-------------------------------------------------------------------------------
1273

    
1274

    
1275
VMM_EXEC_ETC_FILES="src/vmm_mad/exec/vmm_execrc \
1276
                  src/vmm_mad/exec/vmm_exec_kvm.conf \
1277
                  src/vmm_mad/exec/vmm_exec_xen3.conf \
1278
                  src/vmm_mad/exec/vmm_exec_xen4.conf \
1279
                  src/vmm_mad/exec/vmm_exec_vmware.conf \
1280
                  src/vmm_mad/exec/vmm_exec_vcenter.conf"
1281

    
1282
#-------------------------------------------------------------------------------
1283
# Hook Manager driver config. files, to be installed under $ETC_LOCATION/hm
1284
#-------------------------------------------------------------------------------
1285

    
1286
HM_ETC_FILES="src/hm_mad/hmrc"
1287

    
1288
#-------------------------------------------------------------------------------
1289
# Auth Manager drivers config. files, to be installed under $ETC_LOCATION/auth
1290
#-------------------------------------------------------------------------------
1291

    
1292
AUTH_ETC_FILES="src/authm_mad/remotes/server_x509/server_x509_auth.conf \
1293
                src/authm_mad/remotes/ldap/ldap_auth.conf \
1294
                src/authm_mad/remotes/x509/x509_auth.conf"
1295

    
1296
#-------------------------------------------------------------------------------
1297
# Sample files, to be installed under $SHARE_LOCATION/examples
1298
#-------------------------------------------------------------------------------
1299

    
1300
EXAMPLE_SHARE_FILES="share/examples/vm.template \
1301
                     share/examples/private.net \
1302
                     share/examples/public.net"
1303

    
1304
#-------------------------------------------------------------------------------
1305
# Files required to interact with the websockify server
1306
#-------------------------------------------------------------------------------
1307

    
1308
WEBSOCKIFY_SHARE_FILES="share/websockify/websocketproxy.py \
1309
                        share/websockify/websocket.py \
1310
                        share/websockify/websockify"
1311

    
1312
#-------------------------------------------------------------------------------
1313
# HOOK scripts, to be installed under $VAR_LOCATION/remotes/hooks
1314
#-------------------------------------------------------------------------------
1315

    
1316
HOOK_FT_FILES="share/hooks/host_error.rb"
1317

    
1318
#-------------------------------------------------------------------------------
1319
# Installation scripts, to be installed under $SHARE_LOCATION
1320
#-------------------------------------------------------------------------------
1321

    
1322
INSTALL_GEMS_SHARE_FILE="share/install_gems/install_gems"
1323

    
1324
#-------------------------------------------------------------------------------
1325
# OCA Files
1326
#-------------------------------------------------------------------------------
1327
OCA_LIB_FILES="src/oca/ruby/opennebula.rb"
1328

    
1329
RUBY_OPENNEBULA_LIB_FILES="src/oca/ruby/opennebula/acl_pool.rb \
1330
                            src/oca/ruby/opennebula/acl.rb \
1331
                            src/oca/ruby/opennebula/client.rb \
1332
                            src/oca/ruby/opennebula/cluster_pool.rb \
1333
                            src/oca/ruby/opennebula/cluster.rb \
1334
                            src/oca/ruby/opennebula/datastore_pool.rb \
1335
                            src/oca/ruby/opennebula/datastore.rb \
1336
                            src/oca/ruby/opennebula/document_json.rb \
1337
                            src/oca/ruby/opennebula/document_pool_json.rb \
1338
                            src/oca/ruby/opennebula/document_pool.rb \
1339
                            src/oca/ruby/opennebula/document.rb \
1340
                            src/oca/ruby/opennebula/error.rb \
1341
                            src/oca/ruby/opennebula/group_pool.rb \
1342
                            src/oca/ruby/opennebula/group.rb \
1343
                            src/oca/ruby/opennebula/host_pool.rb \
1344
                            src/oca/ruby/opennebula/host.rb \
1345
                            src/oca/ruby/opennebula/image_pool.rb \
1346
                            src/oca/ruby/opennebula/image.rb \
1347
                            src/oca/ruby/opennebula/oneflow_client.rb \
1348
                            src/oca/ruby/opennebula/pool_element.rb \
1349
                            src/oca/ruby/opennebula/pool.rb \
1350
                            src/oca/ruby/opennebula/security_group_pool.rb \
1351
                            src/oca/ruby/opennebula/security_group.rb \
1352
                            src/oca/ruby/opennebula/system.rb \
1353
                            src/oca/ruby/opennebula/template_pool.rb \
1354
                            src/oca/ruby/opennebula/template.rb \
1355
                            src/oca/ruby/opennebula/user_pool.rb \
1356
                            src/oca/ruby/opennebula/user.rb \
1357
                            src/oca/ruby/opennebula/vdc_pool.rb \
1358
                            src/oca/ruby/opennebula/vdc.rb \
1359
                            src/oca/ruby/opennebula/virtual_machine_pool.rb \
1360
                            src/oca/ruby/opennebula/virtual_machine.rb \
1361
                            src/oca/ruby/opennebula/virtual_network_pool.rb \
1362
                            src/oca/ruby/opennebula/virtual_network.rb \
1363
                            src/oca/ruby/opennebula/xml_element.rb \
1364
                            src/oca/ruby/opennebula/xml_pool.rb \
1365
                            src/oca/ruby/opennebula/xml_utils.rb \
1366
                            src/oca/ruby/opennebula/zone_pool.rb \
1367
                            src/oca/ruby/opennebula/zone.rb"
1368

    
1369
#-------------------------------------------------------------------------------
1370
# Common Cloud Files
1371
#-------------------------------------------------------------------------------
1372

    
1373
COMMON_CLOUD_LIB_FILES="src/cloud/common/CloudServer.rb \
1374
                        src/cloud/common/CloudClient.rb \
1375
                        src/cloud/common/CloudAuth.rb"
1376

    
1377
COMMON_CLOUD_CLIENT_LIB_FILES="src/cloud/common/CloudClient.rb"
1378

    
1379
CLOUD_AUTH_LIB_FILES="src/cloud/common/CloudAuth/SunstoneCloudAuth.rb \
1380
                      src/cloud/common/CloudAuth/EC2CloudAuth.rb \
1381
                      src/cloud/common/CloudAuth/X509CloudAuth.rb \
1382
                      src/cloud/common/CloudAuth/OneGateCloudAuth.rb \
1383
                      src/cloud/common/CloudAuth/OpenNebulaCloudAuth.rb"
1384

    
1385
#-------------------------------------------------------------------------------
1386
# EC2 Query for OpenNebula
1387
#-------------------------------------------------------------------------------
1388

    
1389
ECO_LIB_FILES="src/cloud/ec2/lib/EC2QueryClient.rb \
1390
               src/cloud/ec2/lib/EC2QueryServer.rb \
1391
               src/cloud/ec2/lib/ImageEC2.rb \
1392
               src/cloud/ec2/lib/elastic_ip.rb \
1393
               src/cloud/ec2/lib/ebs.rb \
1394
               src/cloud/ec2/lib/tags.rb \
1395
               src/cloud/ec2/lib/instance.rb \
1396
               src/cloud/ec2/lib/keypair.rb \
1397
               src/cloud/ec2/lib/net_ssh_replacement.rb \
1398
               src/cloud/ec2/lib/econe_application.rb \
1399
               src/cloud/ec2/lib/econe-server.rb"
1400

    
1401
ECO_LIB_CLIENT_FILES="src/cloud/ec2/lib/EC2QueryClient.rb"
1402

    
1403
ECO_LIB_VIEW_FILES="src/cloud/ec2/lib/views/describe_images.erb \
1404
                    src/cloud/ec2/lib/views/describe_instances.erb \
1405
                    src/cloud/ec2/lib/views/describe_regions.erb \
1406
                    src/cloud/ec2/lib/views/describe_availability_zones.erb \
1407
                    src/cloud/ec2/lib/views/create_tags.erb \
1408
                    src/cloud/ec2/lib/views/delete_tags.erb \
1409
                    src/cloud/ec2/lib/views/describe_tags.erb \
1410
                    src/cloud/ec2/lib/views/create_volume.erb \
1411
                    src/cloud/ec2/lib/views/create_snapshot.erb \
1412
                    src/cloud/ec2/lib/views/delete_snapshot.erb \
1413
                    src/cloud/ec2/lib/views/describe_snapshots.erb \
1414
                    src/cloud/ec2/lib/views/create_image.erb \
1415
                    src/cloud/ec2/lib/views/describe_volumes.erb \
1416
                    src/cloud/ec2/lib/views/attach_volume.erb \
1417
                    src/cloud/ec2/lib/views/detach_volume.erb \
1418
                    src/cloud/ec2/lib/views/delete_volume.erb \
1419
                    src/cloud/ec2/lib/views/register_image.erb \
1420
                    src/cloud/ec2/lib/views/run_instances.erb \
1421
                    src/cloud/ec2/lib/views/allocate_address.erb \
1422
                    src/cloud/ec2/lib/views/associate_address.erb \
1423
                    src/cloud/ec2/lib/views/disassociate_address.erb \
1424
                    src/cloud/ec2/lib/views/describe_addresses.erb \
1425
                    src/cloud/ec2/lib/views/release_address.erb \
1426
                    src/cloud/ec2/lib/views/create_keypair.erb \
1427
                    src/cloud/ec2/lib/views/delete_keypair.erb \
1428
                    src/cloud/ec2/lib/views/describe_keypairs.erb \
1429
                    src/cloud/ec2/lib/views/terminate_instances.erb \
1430
                    src/cloud/ec2/lib/views/stop_instances.erb \
1431
                    src/cloud/ec2/lib/views/reboot_instances.erb \
1432
                    src/cloud/ec2/lib/views/start_instances.erb"
1433

    
1434
ECO_BIN_FILES="src/cloud/ec2/bin/econe-server \
1435
               src/cloud/ec2/bin/econe-describe-images \
1436
               src/cloud/ec2/bin/econe-describe-volumes \
1437
               src/cloud/ec2/bin/econe-describe-instances \
1438
               src/cloud/ec2/bin/econe-describe-keypairs \
1439
               src/cloud/ec2/bin/econe-register \
1440
               src/cloud/ec2/bin/econe-attach-volume \
1441
               src/cloud/ec2/bin/econe-detach-volume \
1442
               src/cloud/ec2/bin/econe-delete-volume \
1443
               src/cloud/ec2/bin/econe-delete-keypair \
1444
               src/cloud/ec2/bin/econe-create-volume \
1445
               src/cloud/ec2/bin/econe-create-keypair \
1446
               src/cloud/ec2/bin/econe-run-instances \
1447
               src/cloud/ec2/bin/econe-terminate-instances \
1448
               src/cloud/ec2/bin/econe-start-instances \
1449
               src/cloud/ec2/bin/econe-stop-instances \
1450
               src/cloud/ec2/bin/econe-reboot-instances \
1451
               src/cloud/ec2/bin/econe-describe-addresses \
1452
               src/cloud/ec2/bin/econe-allocate-address \
1453
               src/cloud/ec2/bin/econe-release-address \
1454
               src/cloud/ec2/bin/econe-associate-address \
1455
               src/cloud/ec2/bin/econe-disassociate-address \
1456
               src/cloud/ec2/bin/econe-upload"
1457

    
1458
ECO_BIN_CLIENT_FILES="src/cloud/ec2/bin/econe-describe-images \
1459
               src/cloud/ec2/bin/econe-describe-instances \
1460
               src/cloud/ec2/bin/econe-describe-volumes \
1461
               src/cloud/ec2/bin/econe-register \
1462
               src/cloud/ec2/bin/econe-attach-volume \
1463
               src/cloud/ec2/bin/econe-detach-volume \
1464
               src/cloud/ec2/bin/econe-delete-volume \
1465
               src/cloud/ec2/bin/econe-create-volume \
1466
               src/cloud/ec2/bin/econe-run-instances \
1467
               src/cloud/ec2/bin/econe-terminate-instances \
1468
               src/cloud/ec2/bin/econe-start-instances \
1469
               src/cloud/ec2/bin/econe-stop-instances \
1470
               src/cloud/ec2/bin/econe-reboot-instances \
1471
               src/cloud/ec2/bin/econe-describe-addresses \
1472
               src/cloud/ec2/bin/econe-allocate-address \
1473
               src/cloud/ec2/bin/econe-release-address \
1474
               src/cloud/ec2/bin/econe-associate-address \
1475
               src/cloud/ec2/bin/econe-disassociate-address \
1476
               src/cloud/ec2/bin/econe-upload"
1477

    
1478
ECO_ETC_FILES="src/cloud/ec2/etc/econe.conf"
1479

    
1480
ECO_ETC_TEMPLATE_FILES="src/cloud/ec2/etc/templates/m1.small.erb"
1481

    
1482
#-------------------------------------------------------------------------------
1483
# Marketplace Client
1484
#-------------------------------------------------------------------------------
1485

    
1486
MARKET_LIB_FILES="src/cloud/marketplace/lib/marketplace_client.rb"
1487

    
1488
MARKET_LIB_CLIENT_FILES="src/cloud/marketplace/lib/marketplace_client.rb"
1489

    
1490
MARKET_BIN_FILES="src/cloud/marketplace/bin/onemarket"
1491

    
1492
MARKET_BIN_CLIENT_FILES="src/cloud/marketplace/bin/onemarket"
1493

    
1494

    
1495
#-----------------------------------------------------------------------------
1496
# CLI files
1497
#-----------------------------------------------------------------------------
1498

    
1499
CLI_LIB_FILES="src/cli/cli_helper.rb \
1500
               src/cli/command_parser.rb \
1501
               src/cli/one_helper.rb"
1502

    
1503
ONE_CLI_LIB_FILES="src/cli/one_helper/onegroup_helper.rb \
1504
                   src/cli/one_helper/onehost_helper.rb \
1505
                   src/cli/one_helper/oneimage_helper.rb \
1506
                   src/cli/one_helper/onetemplate_helper.rb \
1507
                   src/cli/one_helper/onequota_helper.rb \
1508
                   src/cli/one_helper/oneuser_helper.rb \
1509
                   src/cli/one_helper/onevm_helper.rb \
1510
                   src/cli/one_helper/onevnet_helper.rb \
1511
                   src/cli/one_helper/oneacl_helper.rb \
1512
                   src/cli/one_helper/onedatastore_helper.rb \
1513
                   src/cli/one_helper/onecluster_helper.rb \
1514
                   src/cli/one_helper/onezone_helper.rb \
1515
                   src/cli/one_helper/onevdc_helper.rb \
1516
                   src/cli/one_helper/oneacct_helper.rb \
1517
                   src/cli/one_helper/onesecgroup_helper.rb"
1518

    
1519
CLI_BIN_FILES="src/cli/onevm \
1520
               src/cli/onehost \
1521
               src/cli/onevnet \
1522
               src/cli/oneuser \
1523
               src/cli/oneimage \
1524
               src/cli/onetemplate \
1525
               src/cli/onegroup \
1526
               src/cli/oneacl \
1527
               src/cli/onedatastore \
1528
               src/cli/onecluster \
1529
               src/cli/onezone \
1530
               src/cli/oneflow \
1531
               src/cli/oneflow-template \
1532
               src/cli/oneacct \
1533
               src/cli/onesecgroup \
1534
               src/cli/oneshowback \
1535
               src/cli/onevdc"
1536

    
1537
CLI_CONF_FILES="src/cli/etc/onegroup.yaml \
1538
                src/cli/etc/onehost.yaml \
1539
                src/cli/etc/oneimage.yaml \
1540
                src/cli/etc/onetemplate.yaml \
1541
                src/cli/etc/oneuser.yaml \
1542
                src/cli/etc/onevm.yaml \
1543
                src/cli/etc/onevnet.yaml \
1544
                src/cli/etc/oneacl.yaml \
1545
                src/cli/etc/onedatastore.yaml \
1546
                src/cli/etc/onecluster.yaml \
1547
                src/cli/etc/onezone.yaml \
1548
                src/cli/etc/oneacct.yaml \
1549
                src/cli/etc/onesecgroup.yaml \
1550
                src/cli/etc/oneshowback.yaml \
1551
                src/cli/etc/onevdc.yaml"
1552

    
1553
#-----------------------------------------------------------------------------
1554
# Sunstone files
1555
#-----------------------------------------------------------------------------
1556

    
1557
SUNSTONE_FILES="src/sunstone/sunstone-server.rb \
1558
                src/sunstone/config.ru"
1559

    
1560
SUNSTONE_BIN_FILES="src/sunstone/bin/sunstone-server \
1561
                    src/sunstone/bin/novnc-server"
1562

    
1563
SUNSTONE_ETC_FILES="src/sunstone/etc/sunstone-server.conf \
1564
                    src/sunstone/etc/sunstone-views.yaml"
1565

    
1566
SUNSTONE_ETC_VIEW_FILES="src/sunstone/etc/sunstone-views/admin.yaml \
1567
                    src/sunstone/etc/sunstone-views/user.yaml \
1568
                    src/sunstone/etc/sunstone-views/cloud.yaml \
1569
                    src/sunstone/etc/sunstone-views/cloud_vcenter.yaml \
1570
                    src/sunstone/etc/sunstone-views/groupadmin.yaml \
1571
                    src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml \
1572
                    src/sunstone/etc/sunstone-views/admin_vcenter.yaml"
1573

    
1574
SUNSTONE_MODELS_FILES="src/sunstone/models/OpenNebulaJSON.rb \
1575
                       src/sunstone/models/SunstoneServer.rb \
1576
                       src/sunstone/models/SunstoneMarketplace.rb \
1577
                       src/sunstone/models/SunstoneViews.rb"
1578

    
1579
SUNSTONE_MODELS_JSON_FILES="src/sunstone/models/OpenNebulaJSON/HostJSON.rb \
1580
                    src/sunstone/models/OpenNebulaJSON/ImageJSON.rb \
1581
                    src/sunstone/models/OpenNebulaJSON/GroupJSON.rb \
1582
                    src/sunstone/models/OpenNebulaJSON/JSONUtils.rb \
1583
                    src/sunstone/models/OpenNebulaJSON/PoolJSON.rb \
1584
                    src/sunstone/models/OpenNebulaJSON/UserJSON.rb \
1585
                    src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb \
1586
                    src/sunstone/models/OpenNebulaJSON/TemplateJSON.rb \
1587
                    src/sunstone/models/OpenNebulaJSON/AclJSON.rb \
1588
                    src/sunstone/models/OpenNebulaJSON/ClusterJSON.rb \
1589
                    src/sunstone/models/OpenNebulaJSON/DatastoreJSON.rb \
1590
                    src/sunstone/models/OpenNebulaJSON/VirtualNetworkJSON.rb \
1591
                    src/sunstone/models/OpenNebulaJSON/ZoneJSON.rb \
1592
                    src/sunstone/models/OpenNebulaJSON/SecurityGroupJSON.rb \
1593
                    src/sunstone/models/OpenNebulaJSON/VdcJSON.rb"
1594

    
1595
SUNSTONE_VIEWS_FILES="src/sunstone/views/index.erb \
1596
                      src/sunstone/views/login.erb \
1597
                      src/sunstone/views/vnc.erb \
1598
                      src/sunstone/views/spice.erb \
1599
                      src/sunstone/views/_login_standard.erb \
1600
                      src/sunstone/views/_login_x509.erb"
1601

    
1602
SUNSTONE_PUBLIC_JS_FILES="src/sunstone/public/dist/login.js \
1603
                        src/sunstone/public/dist/login.js.map \
1604
                        src/sunstone/public/dist/main.js \
1605
                        src/sunstone/public/dist/main.js.map"
1606

    
1607
SUNSTONE_PUBLIC_JS_CONSOLE_FILES="src/sunstone/public/dist/console/vnc.js \
1608
                        src/sunstone/public/dist/console/vnc.js.map \
1609
                        src/sunstone/public/dist/console/spice.js \
1610
                        src/sunstone/public/dist/console/spice.js.map"
1611

    
1612
SUNSTONE_PUBLIC_DEV_DIR="src/sunstone/public"
1613

    
1614
SUNSTONE_ROUTES_FILES="src/sunstone/routes/oneflow.rb \
1615
  src/sunstone/routes/vcenter.rb \
1616
  src/sunstone/routes/support.rb"
1617

    
1618

    
1619
SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/app.min.css \
1620
                src/sunstone/public/css/opensans.woff \
1621
                src/sunstone/public/css/novnc-custom.css \
1622
                src/sunstone/public/css/spice-custom.css \
1623
                src/sunstone/public/css/login.css"
1624

    
1625
SUNSTONE_PUBLIC_FONT_AWSOME="src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.eot \
1626
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff2 \
1627
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff \
1628
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.ttf \
1629
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.svg"
1630

    
1631
SUNSTONE_PUBLIC_VENDOR_CRYPTOJS="\
1632
src/sunstone/public/vendor/crypto-js/NOTICE \
1633
src/sunstone/public/vendor/crypto-js/sha1-min.js \
1634
src/sunstone/public/vendor/crypto-js/core-min.js \
1635
src/sunstone/public/vendor/crypto-js/enc-base64-min.js \
1636
src/sunstone/public/vendor/crypto-js/NEW-BSD-LICENSE.txt"
1637

    
1638
SUNSTONE_PUBLIC_IMAGES_FILES="src/sunstone/public/images/ajax-loader.gif \
1639
                        src/sunstone/public/images/favicon.ico \
1640
                        src/sunstone/public/images/login_over.png \
1641
                        src/sunstone/public/images/login.png \
1642
                        src/sunstone/public/images/advanced_layout.png \
1643
                        src/sunstone/public/images/cloud_layout.png \
1644
                        src/sunstone/public/images/vcenter_layout.png \
1645
                        src/sunstone/public/images/opennebula-sunstone-big.png \
1646
                        src/sunstone/public/images/opennebula-sunstone-small.png \
1647
                        src/sunstone/public/images/opennebula-sunstone-v4.0.png \
1648
                        src/sunstone/public/images/opennebula-sunstone-v4.0-small.png \
1649
                        src/sunstone/public/images/one_small_logo.png \
1650
                        src/sunstone/public/images/panel.png \
1651
                        src/sunstone/public/images/panel_short.png \
1652
                        src/sunstone/public/images/pbar.gif \
1653
                        src/sunstone/public/images/Refresh-icon.png \
1654
                        src/sunstone/public/images/red_bullet.png \
1655
                        src/sunstone/public/images/yellow_bullet.png \
1656
                        src/sunstone/public/images/green_bullet.png \
1657
                        src/sunstone/public/images/vnc_off.png \
1658
                        src/sunstone/public/images/vnc_on.png \
1659
                        src/sunstone/public/images/network_icon.png \
1660
                        src/sunstone/public/images/system_icon.png \
1661
                        src/sunstone/public/images/server_icon.png  \
1662
                        src/sunstone/public/images/sort_asc.png \
1663
                        src/sunstone/public/images/sort_asc_disabled.png \
1664
                        src/sunstone/public/images/sort_both.png \
1665
                        src/sunstone/public/images/sort_desc.png \
1666
                        src/sunstone/public/images/sort_desc_disabled.png\
1667
"
1668

    
1669
SUNSTONE_PUBLIC_LOGOS_FILES="src/sunstone/public/images/logos/arch.png \
1670
                        src/sunstone/public/images/logos/centos.png \
1671
                        src/sunstone/public/images/logos/debian.png \
1672
                        src/sunstone/public/images/logos/fedora.png \
1673
                        src/sunstone/public/images/logos/linux.png \
1674
                        src/sunstone/public/images/logos/redhat.png \
1675
                        src/sunstone/public/images/logos/ubuntu.png \
1676
                        src/sunstone/public/images/logos/windowsxp.png \
1677
                        src/sunstone/public/images/logos/windows8.png \
1678
"
1679

    
1680
SUNSTONE_PUBLIC_LOCALE_CA="\
1681
src/sunstone/public/locale/languages/ca.js \
1682
src/sunstone/public/locale/languages/ca_datatable.txt"
1683

    
1684
SUNSTONE_PUBLIC_LOCALE_CS_CZ="\
1685
src/sunstone/public/locale/languages/cs_CZ.js \
1686
src/sunstone/public/locale/languages/cs_datatable.txt"
1687

    
1688
SUNSTONE_PUBLIC_LOCALE_DE="\
1689
src/sunstone/public/locale/languages/de.js \
1690
src/sunstone/public/locale/languages/de_datatable.txt"
1691

    
1692
SUNSTONE_PUBLIC_LOCALE_DA="\
1693
src/sunstone/public/locale/languages/da.js \
1694
src/sunstone/public/locale/languages/da_datatable.txt"
1695

    
1696
SUNSTONE_PUBLIC_LOCALE_EL_GR="\
1697
src/sunstone/public/locale/languages/el_GR.js \
1698
src/sunstone/public/locale/languages/el_datatable.txt"
1699

    
1700
SUNSTONE_PUBLIC_LOCALE_EN_US="\
1701
src/sunstone/public/locale/languages/en_US.js \
1702
src/sunstone/public/locale/languages/en_datatable.txt"
1703

    
1704
SUNSTONE_PUBLIC_LOCALE_ES_ES="\
1705
src/sunstone/public/locale/languages/es_ES.js \
1706
src/sunstone/public/locale/languages/es_datatable.txt"
1707

    
1708
SUNSTONE_PUBLIC_LOCALE_FA_IR="\
1709
src/sunstone/public/locale/languages/fa_IR.js \
1710
src/sunstone/public/locale/languages/fa_datatable.txt"
1711

    
1712
SUNSTONE_PUBLIC_LOCALE_FR_FR="\
1713
src/sunstone/public/locale/languages/fr_FR.js \
1714
src/sunstone/public/locale/languages/fr_datatable.txt"
1715

    
1716
SUNSTONE_PUBLIC_LOCALE_IT_IT="\
1717
src/sunstone/public/locale/languages/it_IT.js \
1718
src/sunstone/public/locale/languages/it_datatable.txt"
1719

    
1720
SUNSTONE_PUBLIC_LOCALE_JA="\
1721
src/sunstone/public/locale/languages/ja.js \
1722
src/sunstone/public/locale/languages/ja_datatable.txt"
1723

    
1724
SUNSTONE_PUBLIC_LOCALE_LT_LT="\
1725
src/sunstone/public/locale/languages/lt_LT.js \
1726
src/sunstone/public/locale/languages/lt_datatable.txt"
1727

    
1728
SUNSTONE_PUBLIC_LOCALE_NL_NL="\
1729
src/sunstone/public/locale/languages/nl_NL.js \
1730
src/sunstone/public/locale/languages/nl_datatable.txt"
1731

    
1732
SUNSTONE_PUBLIC_LOCALE_PL="\
1733
src/sunstone/public/locale/languages/pl.js \
1734
src/sunstone/public/locale/languages/pl_datatable.txt"
1735

    
1736
SUNSTONE_PUBLIC_LOCALE_PT_PT="\
1737
src/sunstone/public/locale/languages/pt_PT.js \
1738
src/sunstone/public/locale/languages/pt_datatable.txt"
1739

    
1740
SUNSTONE_PUBLIC_LOCALE_PT_BR="\
1741
src/sunstone/public/locale/languages/pt_BR.js"
1742

    
1743
SUNSTONE_PUBLIC_LOCALE_RU_RU="\
1744
src/sunstone/public/locale/languages/ru_RU.js \
1745
src/sunstone/public/locale/languages/ru_datatable.txt"
1746

    
1747
SUNSTONE_PUBLIC_LOCALE_SK_SK="\
1748
src/sunstone/public/locale/languages/sk_SK.js \
1749
src/sunstone/public/locale/languages/sk_datatable.txt"
1750

    
1751
SUNSTONE_PUBLIC_LOCALE_ZH_CN="\
1752
src/sunstone/public/locale/languages/zh_CN.js \
1753
src/sunstone/public/locale/languages/zh_datatable.txt"
1754

    
1755
SUNSTONE_PUBLIC_LOCALE_ZH_TW="\
1756
src/sunstone/public/locale/languages/zh_TW.js"
1757

    
1758
#-----------------------------------------------------------------------------
1759
# OneGate files
1760
#-----------------------------------------------------------------------------
1761

    
1762
ONEGATE_FILES="src/onegate/onegate-server.rb \
1763
                src/onegate/config.ru"
1764

    
1765
ONEGATE_BIN_FILES="src/onegate/bin/onegate-server"
1766

    
1767
ONEGATE_ETC_FILES="src/onegate/etc/onegate-server.conf"
1768

    
1769
#-----------------------------------------------------------------------------
1770
# OneFlow files
1771
#-----------------------------------------------------------------------------
1772

    
1773

    
1774
ONEFLOW_FILES="src/flow/oneflow-server.rb \
1775
                src/flow/config.ru"
1776

    
1777
ONEFLOW_BIN_FILES="src/flow/bin/oneflow-server"
1778

    
1779
ONEFLOW_ETC_FILES="src/flow/etc/oneflow-server.conf"
1780

    
1781
ONEFLOW_LIB_FILES="src/flow/lib/grammar.rb \
1782
                    src/flow/lib/grammar.treetop \
1783
                    src/flow/lib/LifeCycleManager.rb \
1784
                    src/flow/lib/log.rb \
1785
                    src/flow/lib/models.rb \
1786
                    src/flow/lib/strategy.rb \
1787
                    src/flow/lib/validator.rb"
1788

    
1789
ONEFLOW_LIB_STRATEGY_FILES="src/flow/lib/strategy/straight.rb"
1790

    
1791
ONEFLOW_LIB_MODELS_FILES="src/flow/lib/models/role.rb \
1792
                          src/flow/lib/models/service_pool.rb \
1793
                          src/flow/lib/models/service.rb \
1794
                          src/flow/lib/models/service_template_pool.rb \
1795
                          src/flow/lib/models/service_template.rb"
1796

    
1797

    
1798
#-----------------------------------------------------------------------------
1799
# MAN files
1800
#-----------------------------------------------------------------------------
1801

    
1802
MAN_FILES="share/man/oneacct.1.gz \
1803
        share/man/oneshowback.1.gz \
1804
        share/man/oneacl.1.gz \
1805
        share/man/onehost.1.gz \
1806
        share/man/oneimage.1.gz \
1807
        share/man/oneuser.1.gz \
1808
        share/man/onevm.1.gz \
1809
        share/man/onevnet.1.gz \
1810
        share/man/onetemplate.1.gz \
1811
        share/man/onegroup.1.gz \
1812
        share/man/onedb.1.gz \
1813
        share/man/onedatastore.1.gz \
1814
        share/man/onecluster.1.gz \
1815
        share/man/onezone.1.gz \
1816
        share/man/onevcenter.1.gz \
1817
        share/man/oneflow.1.gz \
1818
        share/man/oneflow-template.1.gz \
1819
        share/man/onesecgroup.1.gz \
1820
        share/man/onevdc.1.gz \
1821
        share/man/econe-allocate-address.1.gz \
1822
        share/man/econe-associate-address.1.gz \
1823
        share/man/econe-attach-volume.1.gz \
1824
        share/man/econe-create-keypair.1.gz \
1825
        share/man/econe-create-volume.1.gz \
1826
        share/man/econe-delete-keypair.1.gz \
1827
        share/man/econe-delete-volume.1.gz \
1828
        share/man/econe-describe-addresses.1.gz \
1829
        share/man/econe-describe-images.1.gz \
1830
        share/man/econe-describe-instances.1.gz \
1831
        share/man/econe-describe-keypairs.1.gz \
1832
        share/man/econe-describe-volumes.1.gz \
1833
        share/man/econe-detach-volume.1.gz \
1834
        share/man/econe-disassociate-address.1.gz \
1835
        share/man/econe-reboot-instances.1.gz \
1836
        share/man/econe-register.1.gz \
1837
        share/man/econe-release-address.1.gz \
1838
        share/man/econe-run-instances.1.gz \
1839
        share/man/econe-start-instances.1.gz \
1840
        share/man/econe-stop-instances.1.gz \
1841
        share/man/econe-terminate-instances.1.gz \
1842
        share/man/econe-upload.1.gz"
1843

    
1844
#-----------------------------------------------------------------------------
1845
# Docs Files
1846
#-----------------------------------------------------------------------------
1847

    
1848
DOCS_FILES="LICENSE NOTICE README.md"
1849

    
1850
#-----------------------------------------------------------------------------
1851
# Ruby VENDOR files
1852
#-----------------------------------------------------------------------------
1853

    
1854
RBVMOMI_VENDOR_RUBY_FILES="share/vendor/ruby/gems/rbvmomi/LICENSE \
1855
share/vendor/ruby/gems/rbvmomi/README.rdoc \
1856
share/vendor/ruby/gems/rbvmomi/VERSION \
1857
share/vendor/ruby/gems/rbvmomi/vmodl.db"
1858

    
1859
RBVMOMI_VENDOR_RUBY_LIB_FILES="share/vendor/ruby/gems/rbvmomi/lib/rbvmomi.rb"
1860

    
1861
RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_FILES="share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/basic_types.rb \
1862
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/connection.rb \
1863
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/deserialization.rb \
1864
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/fault.rb \
1865
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/pbm.rb \
1866
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/trivial_soap.rb
1867
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/trollop.rb \
1868
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/type_loader.rb \
1869
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim.rb"
1870

    
1871
RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_UTILS_FILES="share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/utils/admission_control.rb \
1872
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/utils/deploy.rb \
1873
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/utils/leases.rb \
1874
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/utils/perfdump.rb"
1875

    
1876
RBVMOMI_VENDOR_RUBY_LIB_RBVMOMI_VIM_FILES="share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ComputeResource.rb \
1877
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/Datacenter.rb \
1878
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/Datastore.rb \
1879
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/DynamicTypeMgrAllTypeInfo.rb \
1880
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/DynamicTypeMgrDataTypeInfo.rb \
1881
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/DynamicTypeMgrManagedTypeInfo.rb \
1882
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/Folder.rb \
1883
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/HostSystem.rb \
1884
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ManagedEntity.rb \
1885
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ManagedObject.rb \
1886
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ObjectContent.rb \
1887
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ObjectUpdate.rb \
1888
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/OvfManager.rb \
1889
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/PerfCounterInfo.rb \
1890
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/PerformanceManager.rb \
1891
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/PropertyCollector.rb \
1892
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ReflectManagedMethodExecuter.rb \
1893
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ResourcePool.rb \
1894
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/ServiceInstance.rb \
1895
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/Task.rb \
1896
share/vendor/ruby/gems/rbvmomi/lib/rbvmomi/vim/VirtualMachine.rb"
1897

    
1898
#-----------------------------------------------------------------------------
1899
#-----------------------------------------------------------------------------
1900
# INSTALL.SH SCRIPT
1901
#-----------------------------------------------------------------------------
1902
#-----------------------------------------------------------------------------
1903

    
1904
# --- Create OpenNebula directories ---
1905

    
1906
if [ "$UNINSTALL" = "no" ] ; then
1907
    for d in $MAKE_DIRS; do
1908
        mkdir -p $DESTDIR$d
1909
    done
1910
fi
1911

    
1912
# --- Install/Uninstall files ---
1913

    
1914
do_file() {
1915
    if [ "$UNINSTALL" = "yes" ]; then
1916
        rm $DESTDIR$2/`basename $1`
1917
    else
1918
        if [ "$LINK" = "yes" ]; then
1919
            ln -s $SRC_DIR/$1 $DESTDIR$2
1920
        else
1921
            cp -RL $SRC_DIR/$1 $DESTDIR$2
1922
        fi
1923
    fi
1924
}
1925

    
1926

    
1927
if [ "$CLIENT" = "yes" ]; then
1928
    INSTALL_SET=${INSTALL_CLIENT_FILES[@]}
1929
elif [ "$ONEGATE" = "yes" ]; then
1930
    INSTALL_SET="${INSTALL_ONEGATE_FILES[@]}"
1931
elif [ "$SUNSTONE" = "yes" ]; then
1932
  if [ "$SUNSTONE_DEV" = "no" ]; then
1933
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1934
                 ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}
1935
                 ${INSTALL_SUNSTONE_FILES[@]}"
1936
  else
1937
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1938
                 ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}
1939
                 ${INSTALL_SUNSTONE_FILES[@]}"
1940
  fi
1941
elif [ "$ONEFLOW" = "yes" ]; then
1942
    INSTALL_SET="${INSTALL_ONEFLOW_FILES[@]}"
1943
elif [ "$SUNSTONE_DEV" = "no" ]; then
1944
    INSTALL_SET="${INSTALL_FILES[@]} \
1945
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}\
1946
                 ${INSTALL_ONEGATE_FILES[@]} \
1947
                 ${INSTALL_ONEFLOW_FILES[@]}"
1948
else
1949
    INSTALL_SET="${INSTALL_FILES[@]} \
1950
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}\
1951
                 ${INSTALL_ONEGATE_FILES[@]} \
1952
                 ${INSTALL_ONEFLOW_FILES[@]}"
1953
fi
1954

    
1955
for i in ${INSTALL_SET[@]}; do
1956
    SRC=$`echo $i | cut -d: -f1`
1957
    DST=`echo $i | cut -d: -f2`
1958

    
1959
    eval SRC_FILES=$SRC
1960

    
1961
    for f in $SRC_FILES; do
1962
        do_file $f $DST
1963
    done
1964
done
1965

    
1966
if [ "$INSTALL_ETC" = "yes" ] ; then
1967
    if [ "$SUNSTONE" = "yes" ]; then
1968
        INSTALL_ETC_SET="${INSTALL_SUNSTONE_ETC_FILES[@]}"
1969
    elif [ "$ONEGATE" = "yes" ]; then
1970
        INSTALL_ETC_SET="${INSTALL_ONEGATE_ETC_FILES[@]}"
1971
    elif [ "$ONEFLOW" = "yes" ]; then
1972
        INSTALL_ETC_SET="${INSTALL_ONEFLOW_ETC_FILES[@]}"
1973
    else
1974
        INSTALL_ETC_SET="${INSTALL_ETC_FILES[@]} \
1975
                         ${INSTALL_SUNSTONE_ETC_FILES[@]} \
1976
                         ${INSTALL_ONEGATE_ETC_FILES[@]} \
1977
                         ${INSTALL_ONEFLOW_ETC_FILES[@]}"
1978
    fi
1979

    
1980
    for i in ${INSTALL_ETC_SET[@]}; do
1981
        SRC=$`echo $i | cut -d: -f1`
1982
        DST=`echo $i | cut -d: -f2`
1983

    
1984
        eval SRC_FILES=$SRC
1985

    
1986
        OLD_LINK=$LINK
1987
        LINK="no"
1988

    
1989
        for f in $SRC_FILES; do
1990
            do_file $f $DST
1991
        done
1992

    
1993
        LINK=$OLD_LINK
1994
   done
1995
fi
1996

    
1997
# --- Set ownership or remove OpenNebula directories ---
1998

    
1999
if [ "$UNINSTALL" = "no" ] ; then
2000
    for d in $CHOWN_DIRS; do
2001
        chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d
2002
    done
2003
else
2004
    for d in `echo $DELETE_DIRS | awk '{for (i=NF;i>=1;i--) printf $i" "}'`; do
2005
        rmdir $d
2006
    done
2007
fi