Statistics
| Branch: | Tag: | Revision:

one / install.sh @ 36906272

History | View | Annotate | Download (86.7 KB)

1
#!/bin/bash
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                #
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
            $SHARE_LOCATION/esx-fw-vnc"
217

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

    
226
LIB_DIRS="$LIB_LOCATION/ruby \
227
          $LIB_LOCATION/ruby/opennebula \
228
          $LIB_LOCATION/ruby/cloud/ \
229
          $LIB_LOCATION/ruby/cloud/econe \
230
          $LIB_LOCATION/ruby/cloud/econe/views \
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/mads \
238
          $LIB_LOCATION/sh \
239
          $LIB_LOCATION/ruby/cli \
240
          $LIB_LOCATION/ruby/cli/one_helper \
241
          $LIB_LOCATION/ruby/vcenter_driver"
242

    
243
VAR_DIRS="$VAR_LOCATION/remotes \
244
          $VAR_LOCATION/remotes/im \
245
          $VAR_LOCATION/remotes/im/kvm.d \
246
          $VAR_LOCATION/remotes/im/kvm-probes.d \
247
          $VAR_LOCATION/remotes/im/vcenter.d \
248
          $VAR_LOCATION/remotes/im/ec2.d \
249
          $VAR_LOCATION/remotes/im/az.d \
250
          $VAR_LOCATION/remotes/vmm \
251
          $VAR_LOCATION/remotes/vmm/lib \
252
          $VAR_LOCATION/remotes/vmm/kvm \
253
          $VAR_LOCATION/remotes/vmm/vcenter \
254
          $VAR_LOCATION/remotes/vmm/ec2 \
255
          $VAR_LOCATION/remotes/vmm/az \
256
          $VAR_LOCATION/remotes/vnm \
257
          $VAR_LOCATION/remotes/vnm/802.1Q \
258
          $VAR_LOCATION/remotes/vnm/vxlan \
259
          $VAR_LOCATION/remotes/vnm/dummy \
260
          $VAR_LOCATION/remotes/vnm/ebtables \
261
          $VAR_LOCATION/remotes/vnm/fw \
262
          $VAR_LOCATION/remotes/vnm/ovswitch \
263
          $VAR_LOCATION/remotes/vnm/vcenter \
264
          $VAR_LOCATION/remotes/tm/ \
265
          $VAR_LOCATION/remotes/tm/dummy \
266
          $VAR_LOCATION/remotes/tm/shared \
267
          $VAR_LOCATION/remotes/tm/fs_lvm \
268
          $VAR_LOCATION/remotes/tm/qcow2 \
269
          $VAR_LOCATION/remotes/tm/ssh \
270
          $VAR_LOCATION/remotes/tm/ceph \
271
          $VAR_LOCATION/remotes/tm/dev \
272
          $VAR_LOCATION/remotes/tm/vcenter \
273
          $VAR_LOCATION/remotes/tm/iscsi_libvirt \
274
          $VAR_LOCATION/remotes/hooks \
275
          $VAR_LOCATION/remotes/hooks/ft \
276
          $VAR_LOCATION/remotes/hooks/vcenter \
277
          $VAR_LOCATION/remotes/hooks/raft \
278
          $VAR_LOCATION/remotes/datastore \
279
          $VAR_LOCATION/remotes/datastore/dummy \
280
          $VAR_LOCATION/remotes/datastore/fs \
281
          $VAR_LOCATION/remotes/datastore/ceph \
282
          $VAR_LOCATION/remotes/datastore/dev \
283
          $VAR_LOCATION/remotes/datastore/vcenter \
284
          $VAR_LOCATION/remotes/market \
285
          $VAR_LOCATION/remotes/market/http \
286
          $VAR_LOCATION/remotes/market/one \
287
          $VAR_LOCATION/remotes/market/s3 \
288
          $VAR_LOCATION/remotes/datastore/iscsi_libvirt \
289
          $VAR_LOCATION/remotes/auth \
290
          $VAR_LOCATION/remotes/auth/plain \
291
          $VAR_LOCATION/remotes/auth/ssh \
292
          $VAR_LOCATION/remotes/auth/x509 \
293
          $VAR_LOCATION/remotes/auth/ldap \
294
          $VAR_LOCATION/remotes/auth/server_x509 \
295
          $VAR_LOCATION/remotes/auth/server_cipher \
296
          $VAR_LOCATION/remotes/auth/dummy \
297
          $VAR_LOCATION/remotes/ipam/dummy"
298

    
299
SUNSTONE_DIRS="$SUNSTONE_LOCATION/routes \
300
               $SUNSTONE_LOCATION/models \
301
               $SUNSTONE_LOCATION/models/OpenNebulaJSON \
302
               $SUNSTONE_LOCATION/views"
303

    
304
SUNSTONE_MINIFIED_DIRS="SUNSTONE_LOCATION/public \
305
               $SUNSTONE_LOCATION/public/dist \
306
               $SUNSTONE_LOCATION/public/dist/console \
307
               $SUNSTONE_LOCATION/public/css \
308
               $SUNSTONE_LOCATION/public/css/opensans \
309
               $SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts \
310
               $SUNSTONE_LOCATION/public/locale/languages \
311
               $SUNSTONE_LOCATION/public/images \
312
               $SUNSTONE_LOCATION/public/images/logos"
313

    
314
ONEFLOW_DIRS="$ONEFLOW_LOCATION/lib \
315
              $ONEFLOW_LOCATION/lib/strategy \
316
              $ONEFLOW_LOCATION/lib/models"
317

    
318
LIB_ECO_CLIENT_DIRS="$LIB_LOCATION/ruby \
319
                 $LIB_LOCATION/ruby/opennebula \
320
                 $LIB_LOCATION/ruby/cloud/ \
321
                 $LIB_LOCATION/ruby/cloud/econe"
322

    
323
LIB_OCA_CLIENT_DIRS="$LIB_LOCATION/ruby \
324
                 $LIB_LOCATION/ruby/opennebula"
325

    
326
LIB_CLI_CLIENT_DIRS="$LIB_LOCATION/ruby/cli \
327
                     $LIB_LOCATION/ruby/cli/one_helper"
328

    
329
CONF_CLI_DIRS="$ETC_LOCATION/cli"
330

    
331
if [ "$CLIENT" = "yes" ]; then
332
    MAKE_DIRS="$MAKE_DIRS $LIB_ECO_CLIENT_DIRS \
333
               $LIB_OCA_CLIENT_DIRS $LIB_CLI_CLIENT_DIRS $CONF_CLI_DIRS \
334
               $ETC_LOCATION"
335
elif [ "$ONEGATE" = "yes" ]; then
336
    MAKE_DIRS="$MAKE_DIRS $LIB_OCA_CLIENT_DIRS"
337
elif [ "$SUNSTONE" = "yes" ]; then
338
  if [ "$SUNSTONE_DEV" = "no" ]; then
339
    MAKE_DIRS="$MAKE_DIRS $SUNSTONE_DIRS $SUNSTONE_MINIFIED_DIRS $LIB_OCA_CLIENT_DIRS"
340
  else
341
    MAKE_DIRS="$MAKE_DIRS $SUNSTONE_DIRS $LIB_OCA_CLIENT_DIRS"
342
  fi
343
elif [ "$ONEFLOW" = "yes" ]; then
344
    MAKE_DIRS="$MAKE_DIRS $ONEFLOW_DIRS $LIB_OCA_CLIENT_DIRS"
345
elif [ "$SUNSTONE_DEV" = "no" ]; then
346
    MAKE_DIRS="$MAKE_DIRS $SHARE_DIRS $ETC_DIRS $LIB_DIRS $VAR_DIRS \
347
                $SUNSTONE_DIRS $SUNSTONE_MINIFIED_DIRS $ONEFLOW_DIRS"
348
else
349
    MAKE_DIRS="$MAKE_DIRS $SHARE_DIRS $ETC_DIRS $LIB_DIRS $VAR_DIRS \
350
                $SUNSTONE_DIRS $ONEFLOW_DIRS"
351
fi
352

    
353
#-------------------------------------------------------------------------------
354
#-------------------------------------------------------------------------------
355
# FILE DEFINITION, WHAT IS GOING TO BE INSTALLED AND WHERE
356
#-------------------------------------------------------------------------------
357
#-------------------------------------------------------------------------------
358
INSTALL_FILES=(
359
    BIN_FILES:$BIN_LOCATION
360
    INCLUDE_FILES:$INCLUDE_LOCATION
361
    LIB_FILES:$LIB_LOCATION
362
    RUBY_LIB_FILES:$LIB_LOCATION/ruby
363
    RUBY_AUTH_LIB_FILES:$LIB_LOCATION/ruby/opennebula
364
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
365
    MAD_RUBY_LIB_FILES:$LIB_LOCATION/ruby
366
    MAD_RUBY_LIB_FILES:$VAR_LOCATION/remotes
367
    MAD_SH_LIB_FILES:$LIB_LOCATION/sh
368
    MAD_SH_LIB_FILES:$VAR_LOCATION/remotes
369
    ONEDB_FILES:$LIB_LOCATION/ruby/onedb
370
    ONEDB_SHARED_MIGRATOR_FILES:$LIB_LOCATION/ruby/onedb/shared
371
    ONEDB_LOCAL_MIGRATOR_FILES:$LIB_LOCATION/ruby/onedb/local
372
    ONEDB_PATCH_FILES:$LIB_LOCATION/ruby/onedb/patches
373
    MADS_LIB_FILES:$LIB_LOCATION/mads
374
    IM_PROBES_FILES:$VAR_LOCATION/remotes/im
375
    IM_PROBES_KVM_FILES:$VAR_LOCATION/remotes/im/kvm.d
376
    IM_PROBES_KVM_PROBES_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d
377
    IM_PROBES_VCENTER_FILES:$VAR_LOCATION/remotes/im/vcenter.d
378
    IM_PROBES_EC2_FILES:$VAR_LOCATION/remotes/im/ec2.d
379
    IM_PROBES_AZ_FILES:$VAR_LOCATION/remotes/im/az.d
380
    IM_PROBES_VERSION:$VAR_LOCATION/remotes
381
    AUTH_SSH_FILES:$VAR_LOCATION/remotes/auth/ssh
382
    AUTH_X509_FILES:$VAR_LOCATION/remotes/auth/x509
383
    AUTH_LDAP_FILES:$VAR_LOCATION/remotes/auth/ldap
384
    AUTH_SERVER_X509_FILES:$VAR_LOCATION/remotes/auth/server_x509
385
    AUTH_SERVER_CIPHER_FILES:$VAR_LOCATION/remotes/auth/server_cipher
386
    AUTH_DUMMY_FILES:$VAR_LOCATION/remotes/auth/dummy
387
    AUTH_PLAIN_FILES:$VAR_LOCATION/remotes/auth/plain
388
    VMM_EXEC_LIB_FILES:$VAR_LOCATION/remotes/vmm/lib
389
    VMM_EXEC_LIB_VCENTER_FILES:$LIB_LOCATION/ruby/vcenter_driver
390
    VMM_EXEC_KVM_SCRIPTS:$VAR_LOCATION/remotes/vmm/kvm
391
    VMM_EXEC_VCENTER_SCRIPTS:$VAR_LOCATION/remotes/vmm/vcenter
392
    VMM_EXEC_EC2_SCRIPTS:$VAR_LOCATION/remotes/vmm/ec2
393
    VMM_EXEC_AZ_SCRIPTS:$VAR_LOCATION/remotes/vmm/az
394
    TM_FILES:$VAR_LOCATION/remotes/tm
395
    TM_SHARED_FILES:$VAR_LOCATION/remotes/tm/shared
396
    TM_FS_LVM_FILES:$VAR_LOCATION/remotes/tm/fs_lvm
397
    TM_QCOW2_FILES:$VAR_LOCATION/remotes/tm/qcow2
398
    TM_SSH_FILES:$VAR_LOCATION/remotes/tm/ssh
399
    TM_CEPH_FILES:$VAR_LOCATION/remotes/tm/ceph
400
    TM_DEV_FILES:$VAR_LOCATION/remotes/tm/dev
401
    TM_ISCSI_FILES:$VAR_LOCATION/remotes/tm/iscsi_libvirt
402
    TM_DUMMY_FILES:$VAR_LOCATION/remotes/tm/dummy
403
    TM_VCENTER_FILES:$VAR_LOCATION/remotes/tm/vcenter
404
    DATASTORE_DRIVER_COMMON_SCRIPTS:$VAR_LOCATION/remotes/datastore/
405
    DATASTORE_DRIVER_DUMMY_SCRIPTS:$VAR_LOCATION/remotes/datastore/dummy
406
    DATASTORE_DRIVER_FS_SCRIPTS:$VAR_LOCATION/remotes/datastore/fs
407
    DATASTORE_DRIVER_CEPH_SCRIPTS:$VAR_LOCATION/remotes/datastore/ceph
408
    DATASTORE_DRIVER_DEV_SCRIPTS:$VAR_LOCATION/remotes/datastore/dev
409
    DATASTORE_DRIVER_VCENTER_SCRIPTS:$VAR_LOCATION/remotes/datastore/vcenter
410
    DATASTORE_DRIVER_ISCSI_SCRIPTS:$VAR_LOCATION/remotes/datastore/iscsi_libvirt
411
    MARKETPLACE_DRIVER_HTTP_SCRIPTS:$VAR_LOCATION/remotes/market/http
412
    MARKETPLACE_DRIVER_ONE_SCRIPTS:$VAR_LOCATION/remotes/market/one
413
    MARKETPLACE_DRIVER_S3_SCRIPTS:$VAR_LOCATION/remotes/market/s3
414
    IPAM_DRIVER_DUMMY_SCRIPTS:$VAR_LOCATION/remotes/ipam/dummy
415
    NETWORK_FILES:$VAR_LOCATION/remotes/vnm
416
    NETWORK_8021Q_FILES:$VAR_LOCATION/remotes/vnm/802.1Q
417
    NETWORK_VXLAN_FILES:$VAR_LOCATION/remotes/vnm/vxlan
418
    NETWORK_DUMMY_FILES:$VAR_LOCATION/remotes/vnm/dummy
419
    NETWORK_EBTABLES_FILES:$VAR_LOCATION/remotes/vnm/ebtables
420
    NETWORK_FW_FILES:$VAR_LOCATION/remotes/vnm/fw
421
    NETWORK_OVSWITCH_FILES:$VAR_LOCATION/remotes/vnm/ovswitch
422
    NETWORK_VCENTER_FILES:$VAR_LOCATION/remotes/vnm/vcenter
423
    EXAMPLE_SHARE_FILES:$SHARE_LOCATION/examples
424
    WEBSOCKIFY_SHARE_FILES:$SHARE_LOCATION/websockify
425
    ESX_FW_VNC_SHARE_FILES:$SHARE_LOCATION/esx-fw-vnc
426
    INSTALL_GEMS_SHARE_FILES:$SHARE_LOCATION
427
    ONETOKEN_SHARE_FILE:$SHARE_LOCATION
428
    FOLLOWER_CLEANUP_SHARE_FILE:$SHARE_LOCATION
429
    HOOK_FT_FILES:$VAR_LOCATION/remotes/hooks/ft
430
    HOOK_VCENTER_FILES:$VAR_LOCATION/remotes/hooks/vcenter
431
    HOOK_RAFT_FILES:$VAR_LOCATION/remotes/hooks/raft
432
    COMMON_CLOUD_LIB_FILES:$LIB_LOCATION/ruby/cloud
433
    CLOUD_AUTH_LIB_FILES:$LIB_LOCATION/ruby/cloud/CloudAuth
434
    ECO_LIB_FILES:$LIB_LOCATION/ruby/cloud/econe
435
    ECO_LIB_VIEW_FILES:$LIB_LOCATION/ruby/cloud/econe/views
436
    ECO_BIN_FILES:$BIN_LOCATION
437
    MAN_FILES:$MAN_LOCATION
438
    DOCS_FILES:$DOCS_LOCATION
439
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
440
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
441
    VENDOR_DIRS:$LIB_LOCATION/ruby/vendors
442
)
443

    
444
INSTALL_CLIENT_FILES=(
445
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
446
    ECO_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/econe
447
    ECO_BIN_CLIENT_FILES:$BIN_LOCATION
448
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
449
    CLI_BIN_FILES:$BIN_LOCATION
450
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
451
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
452
    CLI_CONF_FILES:$ETC_LOCATION/cli
453
    OCA_LIB_FILES:$LIB_LOCATION/ruby
454
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
455
    RUBY_AUTH_LIB_FILES:$LIB_LOCATION/ruby/opennebula
456
)
457

    
458
INSTALL_SUNSTONE_RUBY_FILES=(
459
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
460
    OCA_LIB_FILES:$LIB_LOCATION/ruby
461
)
462

    
463
INSTALL_SUNSTONE_FILES=(
464
    SUNSTONE_FILES:$SUNSTONE_LOCATION
465
    SUNSTONE_BIN_FILES:$BIN_LOCATION
466
    SUNSTONE_MODELS_FILES:$SUNSTONE_LOCATION/models
467
    SUNSTONE_MODELS_JSON_FILES:$SUNSTONE_LOCATION/models/OpenNebulaJSON
468
    SUNSTONE_VIEWS_FILES:$SUNSTONE_LOCATION/views
469
    SUNSTONE_ROUTES_FILES:$SUNSTONE_LOCATION/routes
470
)
471

    
472
INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES=(
473
  SUNSTONE_PUBLIC_JS_FILES:$SUNSTONE_LOCATION/public/dist
474
  SUNSTONE_PUBLIC_JS_CONSOLE_FILES:$SUNSTONE_LOCATION/public/dist/console
475
  SUNSTONE_PUBLIC_FONT_AWSOME:$SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts
476
  SUNSTONE_PUBLIC_CSS_FILES:$SUNSTONE_LOCATION/public/css
477
  SUNSTONE_PUBLIC_IMAGES_FILES:$SUNSTONE_LOCATION/public/images
478
  SUNSTONE_PUBLIC_LOGOS_FILES:$SUNSTONE_LOCATION/public/images/logos
479
  SUNSTONE_PUBLIC_LOCALE_CA:$SUNSTONE_LOCATION/public/locale/languages
480
  SUNSTONE_PUBLIC_LOCALE_CS_CZ:$SUNSTONE_LOCATION/public/locale/languages
481
  SUNSTONE_PUBLIC_LOCALE_DE:$SUNSTONE_LOCATION/public/locale/languages
482
  SUNSTONE_PUBLIC_LOCALE_DA:$SUNSTONE_LOCATION/public/locale/languages
483
  SUNSTONE_PUBLIC_LOCALE_EL_GR:$SUNSTONE_LOCATION/public/locale/languages
484
  SUNSTONE_PUBLIC_LOCALE_EN_US:$SUNSTONE_LOCATION/public/locale/languages
485
  SUNSTONE_PUBLIC_LOCALE_ES_ES:$SUNSTONE_LOCATION/public/locale/languages
486
  SUNSTONE_PUBLIC_LOCALE_FA_IR:$SUNSTONE_LOCATION/public/locale/languages
487
  SUNSTONE_PUBLIC_LOCALE_FR_FR:$SUNSTONE_LOCATION/public/locale/languages
488
  SUNSTONE_PUBLIC_LOCALE_IT_IT:$SUNSTONE_LOCATION/public/locale/languages
489
  SUNSTONE_PUBLIC_LOCALE_JA:$SUNSTONE_LOCATION/public/locale/languages
490
  SUNSTONE_PUBLIC_LOCALE_LT_LT:$SUNSTONE_LOCATION/public/locale/languages
491
  SUNSTONE_PUBLIC_LOCALE_NL_NL:$SUNSTONE_LOCATION/public/locale/languages
492
  SUNSTONE_PUBLIC_LOCALE_PL:$SUNSTONE_LOCATION/public/locale/languages
493
  SUNSTONE_PUBLIC_LOCALE_PT_PT:$SUNSTONE_LOCATION/public/locale/languages
494
  SUNSTONE_PUBLIC_LOCALE_PT_BR:$SUNSTONE_LOCATION/public/locale/languages
495
  SUNSTONE_PUBLIC_LOCALE_RU_RU:$SUNSTONE_LOCATION/public/locale/languages
496
  SUNSTONE_PUBLIC_LOCALE_SK_SK:$SUNSTONE_LOCATION/public/locale/languages
497
  SUNSTONE_PUBLIC_LOCALE_ZH_CN:$SUNSTONE_LOCATION/public/locale/languages
498
)
499

    
500
INSTALL_SUNSTONE_PUBLIC_DEV_DIR=(
501
  SUNSTONE_PUBLIC_DEV_DIR:$SUNSTONE_LOCATION
502
)
503

    
504
INSTALL_SUNSTONE_ETC_FILES=(
505
    SUNSTONE_ETC_FILES:$ETC_LOCATION
506
    SUNSTONE_ETC_VIEW_FILES:$ETC_LOCATION/sunstone-views
507
)
508

    
509
INSTALL_ONEGATE_FILES=(
510
    ONEGATE_FILES:$ONEGATE_LOCATION
511
    ONEGATE_BIN_FILES:$BIN_LOCATION
512
)
513

    
514
INSTALL_ONEGATE_ETC_FILES=(
515
    ONEGATE_ETC_FILES:$ETC_LOCATION
516
)
517

    
518
INSTALL_ONEFLOW_FILES=(
519
    ONEFLOW_FILES:$ONEFLOW_LOCATION
520
    ONEFLOW_BIN_FILES:$BIN_LOCATION
521
    ONEFLOW_LIB_FILES:$ONEFLOW_LOCATION/lib
522
    ONEFLOW_LIB_STRATEGY_FILES:$ONEFLOW_LOCATION/lib/strategy
523
    ONEFLOW_LIB_MODELS_FILES:$ONEFLOW_LOCATION/lib/models
524
)
525

    
526
INSTALL_ONEFLOW_ETC_FILES=(
527
    ONEFLOW_ETC_FILES:$ETC_LOCATION
528
)
529

    
530
INSTALL_ETC_FILES=(
531
    ETC_FILES:$ETC_LOCATION
532
    EC2_ETC_FILES:$ETC_LOCATION
533
    VCENTER_ETC_FILES:$ETC_LOCATION
534
    AZ_ETC_FILES:$ETC_LOCATION
535
    VMM_EXEC_ETC_FILES:$ETC_LOCATION/vmm_exec
536
    HM_ETC_FILES:$ETC_LOCATION/hm
537
    AUTH_ETC_FILES:$ETC_LOCATION/auth
538
    ECO_ETC_FILES:$ETC_LOCATION
539
    ECO_ETC_TEMPLATE_FILES:$ETC_LOCATION/ec2query_templates
540
    CLI_CONF_FILES:$ETC_LOCATION/cli
541
)
542

    
543
#-------------------------------------------------------------------------------
544
# Binary files, to be installed under $BIN_LOCATION
545
#-------------------------------------------------------------------------------
546

    
547
BIN_FILES="src/nebula/oned \
548
           src/scheduler/src/sched/mm_sched \
549
           src/cli/onevm \
550
           src/cli/oneacct \
551
           src/cli/oneshowback \
552
           src/cli/onehost \
553
           src/cli/onevnet \
554
           src/cli/oneuser \
555
           src/cli/oneimage \
556
           src/cli/onegroup \
557
           src/cli/onetemplate \
558
           src/cli/oneacl \
559
           src/cli/onedatastore \
560
           src/cli/onecluster \
561
           src/cli/onezone \
562
           src/cli/oneflow \
563
           src/cli/oneflow-template \
564
           src/cli/onesecgroup \
565
           src/cli/onevmgroup \
566
           src/cli/onevdc \
567
           src/cli/onevrouter \
568
           src/cli/onemarket \
569
           src/cli/onemarketapp \
570
           src/cli/onevcenter \
571
           src/onedb/onedb \
572
           src/mad/utils/tty_expect \
573
           share/scripts/one"
574

    
575
#-------------------------------------------------------------------------------
576
# C/C++ OpenNebula API Library & Development files
577
# Include files, to be installed under $INCLUDE_LOCATION
578
# Library files, to be installed under $LIB_LOCATION
579
#-------------------------------------------------------------------------------
580

    
581
INCLUDE_FILES=""
582
LIB_FILES=""
583

    
584
#-------------------------------------------------------------------------------
585
# Ruby library files, to be installed under $LIB_LOCATION/ruby
586
#-------------------------------------------------------------------------------
587

    
588
RUBY_LIB_FILES="src/mad/ruby/ActionManager.rb \
589
                src/mad/ruby/CommandManager.rb \
590
                src/mad/ruby/OpenNebulaDriver.rb \
591
                src/mad/ruby/VirtualMachineDriver.rb \
592
                src/mad/ruby/DriverExecHelper.rb \
593
                src/mad/ruby/ssh_stream.rb \
594
                src/vnm_mad/one_vnm.rb \
595
                src/oca/ruby/deprecated/OpenNebula.rb \
596
                src/oca/ruby/opennebula.rb \
597
                src/sunstone/OpenNebulaVNC.rb \
598
                src/vmm_mad/remotes/vcenter/vcenter_driver.rb \
599
                src/vmm_mad/remotes/az/az_driver.rb \
600
                src/vmm_mad/remotes/ec2/ec2_driver.rb"
601

    
602
#-------------------------------------------------------------------------------
603
# Ruby auth library files, to be installed under $LIB_LOCATION/ruby/opennebula
604
#-------------------------------------------------------------------------------
605

    
606
RUBY_AUTH_LIB_FILES="src/authm_mad/remotes/ssh/ssh_auth.rb \
607
                src/authm_mad/remotes/server_x509/server_x509_auth.rb \
608
                src/authm_mad/remotes/server_cipher/server_cipher_auth.rb \
609
                src/authm_mad/remotes/ldap/ldap_auth.rb \
610
                src/authm_mad/remotes/x509/x509_auth.rb"
611

    
612
#-----------------------------------------------------------------------------
613
# MAD Script library files, to be installed under $LIB_LOCATION/<script lang>
614
# and remotes directory
615
#-----------------------------------------------------------------------------
616

    
617
MAD_SH_LIB_FILES="src/mad/sh/scripts_common.sh"
618
MAD_RUBY_LIB_FILES="src/mad/ruby/scripts_common.rb"
619

    
620
#-------------------------------------------------------------------------------
621
# Driver executable files, to be installed under $LIB_LOCATION/mads
622
#-------------------------------------------------------------------------------
623

    
624
MADS_LIB_FILES="src/mad/sh/madcommon.sh \
625
              src/vmm_mad/exec/one_vmm_exec.rb \
626
              src/vmm_mad/exec/one_vmm_exec \
627
              src/vmm_mad/exec/one_vmm_sh \
628
              src/vmm_mad/exec/one_vmm_ssh \
629
              src/vmm_mad/dummy/one_vmm_dummy.rb \
630
              src/vmm_mad/dummy/one_vmm_dummy \
631
              src/im_mad/im_exec/one_im_exec.rb \
632
              src/im_mad/im_exec/one_im_exec \
633
              src/im_mad/im_exec/one_im_ssh \
634
              src/im_mad/im_exec/one_im_sh \
635
              src/im_mad/dummy/one_im_dummy.rb \
636
              src/im_mad/dummy/one_im_dummy \
637
              src/im_mad/collectd/collectd \
638
              src/tm_mad/one_tm \
639
              src/tm_mad/one_tm.rb \
640
              src/hm_mad/one_hm.rb \
641
              src/hm_mad/one_hm \
642
              src/authm_mad/one_auth_mad.rb \
643
              src/authm_mad/one_auth_mad \
644
              src/datastore_mad/one_datastore.rb \
645
              src/datastore_mad/one_datastore \
646
              src/market_mad/one_market.rb \
647
              src/market_mad/one_market \
648
              src/ipamm_mad/one_ipam \
649
              src/ipamm_mad/one_ipam.rb"
650

    
651
#-------------------------------------------------------------------------------
652
# VMM Lib files, used by some VMM Drivers, to be installed in
653
# $REMOTES_LOCATION/vmm/lib
654
#-------------------------------------------------------------------------------
655

    
656
VMM_EXEC_LIB_FILES="src/vmm_mad/remotes/lib/poll_common.rb"
657

    
658
#-------------------------------------------------------------------------------
659
# VMM Lib vcenter files, used by the vCenter Driver to be installed in
660
# $REMOTES_LOCATION/vmm/lib/vcenter
661
#-------------------------------------------------------------------------------
662

    
663
VMM_EXEC_LIB_VCENTER_FILES="src/vmm_mad/remotes/lib/vcenter_driver/datastore.rb
664
                    src/vmm_mad/remotes/lib/vcenter_driver/vi_client.rb \
665
                    src/vmm_mad/remotes/lib/vcenter_driver/importer.rb \
666
                    src/vmm_mad/remotes/lib/vcenter_driver/file_helper.rb \
667
                    src/vmm_mad/remotes/lib/vcenter_driver/host.rb \
668
                    src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb \
669
                    src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb \
670
                    src/vmm_mad/remotes/lib/vcenter_driver/memoize.rb \
671
                    src/vmm_mad/remotes/lib/vcenter_driver/datacenter.rb \
672
                    src/vmm_mad/remotes/lib/vcenter_driver/network.rb"
673

    
674
#-------------------------------------------------------------------------------
675
# VMM SH Driver KVM scripts, to be installed under $REMOTES_LOCATION/vmm/kvm
676
#-------------------------------------------------------------------------------
677

    
678
VMM_EXEC_KVM_SCRIPTS="src/vmm_mad/remotes/kvm/cancel \
679
                    src/vmm_mad/remotes/kvm/deploy \
680
                    src/vmm_mad/remotes/kvm/kvmrc \
681
                    src/vmm_mad/remotes/kvm/migrate \
682
                    src/vmm_mad/remotes/kvm/migrate_local \
683
                    src/vmm_mad/remotes/kvm/restore \
684
                    src/vmm_mad/remotes/kvm/restore.ceph \
685
                    src/vmm_mad/remotes/kvm/reboot \
686
                    src/vmm_mad/remotes/kvm/reset \
687
                    src/vmm_mad/remotes/kvm/save \
688
                    src/vmm_mad/remotes/kvm/save.ceph \
689
                    src/vmm_mad/remotes/kvm/poll \
690
                    src/vmm_mad/remotes/kvm/attach_disk \
691
                    src/vmm_mad/remotes/kvm/detach_disk \
692
                    src/vmm_mad/remotes/kvm/attach_nic \
693
                    src/vmm_mad/remotes/kvm/detach_nic \
694
                    src/vmm_mad/remotes/kvm/snapshot_create \
695
                    src/vmm_mad/remotes/kvm/snapshot_revert \
696
                    src/vmm_mad/remotes/kvm/snapshot_delete \
697
                    src/vmm_mad/remotes/kvm/shutdown \
698
                    src/vmm_mad/remotes/kvm/reconfigure \
699
                    src/vmm_mad/remotes/kvm/prereconfigure \
700
                    src/vmm_mad/remotes/kvm/resize_disk"
701

    
702
#-------------------------------------------------------------------------------
703
# VMM Driver vCenter scripts, installed under $REMOTES_LOCATION/vmm/vcenter
704
#-------------------------------------------------------------------------------
705

    
706
VMM_EXEC_VCENTER_SCRIPTS="src/vmm_mad/remotes/vcenter/cancel \
707
                         src/vmm_mad/remotes/vcenter/attach_disk \
708
                         src/vmm_mad/remotes/vcenter/detach_disk \
709
                         src/vmm_mad/remotes/vcenter/attach_nic \
710
                         src/vmm_mad/remotes/vcenter/detach_nic \
711
                         src/vmm_mad/remotes/vcenter/snapshot_create \
712
                         src/vmm_mad/remotes/vcenter/snapshot_revert \
713
                         src/vmm_mad/remotes/vcenter/snapshot_delete \
714
                         src/vmm_mad/remotes/vcenter/deploy \
715
                         src/vmm_mad/remotes/vcenter/migrate \
716
                         src/vmm_mad/remotes/vcenter/restore \
717
                         src/vmm_mad/remotes/vcenter/reboot \
718
                         src/vmm_mad/remotes/vcenter/reset \
719
                         src/vmm_mad/remotes/vcenter/save \
720
                         src/vmm_mad/remotes/vcenter/poll \
721
                         src/vmm_mad/remotes/vcenter/shutdown \
722
                         src/vmm_mad/remotes/vcenter/reconfigure \
723
                         src/vmm_mad/remotes/vcenter/preconfigure \
724
                         src/vmm_mad/remotes/vcenter/prereconfigure"
725

    
726
#------------------------------------------------------------------------------
727
# VMM Driver EC2 scripts, to be installed under $REMOTES_LOCATION/vmm/ec2
728
#------------------------------------------------------------------------------
729

    
730
VMM_EXEC_EC2_SCRIPTS="src/vmm_mad/remotes/ec2/cancel \
731
                      src/vmm_mad/remotes/ec2/attach_disk \
732
                      src/vmm_mad/remotes/ec2/detach_disk \
733
                      src/vmm_mad/remotes/ec2/attach_nic \
734
                      src/vmm_mad/remotes/ec2/detach_nic \
735
                      src/vmm_mad/remotes/ec2/snapshot_create \
736
                      src/vmm_mad/remotes/ec2/snapshot_revert \
737
                      src/vmm_mad/remotes/ec2/snapshot_delete \
738
                      src/vmm_mad/remotes/ec2/deploy \
739
                      src/vmm_mad/remotes/ec2/migrate \
740
                      src/vmm_mad/remotes/ec2/restore \
741
                      src/vmm_mad/remotes/ec2/reboot \
742
                      src/vmm_mad/remotes/ec2/reset \
743
                      src/vmm_mad/remotes/ec2/save \
744
                      src/vmm_mad/remotes/ec2/poll \
745
                      src/vmm_mad/remotes/ec2/shutdown \
746
                      src/vmm_mad/remotes/ec2/reconfigure \
747
                      src/vmm_mad/remotes/ec2/prereconfigure \
748
                      src/vmm_mad/remotes/ec2/resize_disk"
749

    
750
#------------------------------------------------------------------------------
751
# VMM Driver Azure scripts, to be installed under $REMOTES_LOCATION/vmm/az
752
#------------------------------------------------------------------------------
753

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

    
774
#-------------------------------------------------------------------------------
775
# Information Manager Probes, to be installed under $REMOTES_LOCATION/im
776
#-------------------------------------------------------------------------------
777

    
778
IM_PROBES_FILES="src/im_mad/remotes/run_probes \
779
                 src/im_mad/remotes/stop_probes"
780

    
781
IM_PROBES_KVM_FILES="src/im_mad/remotes/kvm.d/collectd-client_control.sh \
782
                     src/im_mad/remotes/kvm.d/collectd-client.rb"
783

    
784
IM_PROBES_KVM_PROBES_FILES="src/im_mad/remotes/kvm-probes.d/kvm.rb \
785
                     src/im_mad/remotes/kvm-probes.d/architecture.sh \
786
                     src/im_mad/remotes/kvm-probes.d/cpu.sh \
787
                     src/im_mad/remotes/kvm-probes.d/poll.sh \
788
                     src/im_mad/remotes/kvm-probes.d/name.sh \
789
                     src/im_mad/remotes/kvm-probes.d/pci.rb \
790
                     src/im_mad/remotes/common.d/monitor_ds.sh \
791
                     src/im_mad/remotes/common.d/version.sh \
792
                     src/im_mad/remotes/common.d/collectd-client-shepherd.sh"
793

    
794
IM_PROBES_VCENTER_FILES="src/im_mad/remotes/vcenter.d/poll"
795

    
796
IM_PROBES_EC2_FILES="src/im_mad/remotes/ec2.d/poll"
797

    
798
IM_PROBES_AZ_FILES="src/im_mad/remotes/az.d/poll"
799

    
800
IM_PROBES_VERSION="src/im_mad/remotes/VERSION"
801

    
802
#-------------------------------------------------------------------------------
803
# Auth Manager drivers to be installed under $REMOTES_LOCATION/auth
804
#-------------------------------------------------------------------------------
805

    
806
AUTH_SERVER_CIPHER_FILES="src/authm_mad/remotes/server_cipher/authenticate"
807

    
808
AUTH_SERVER_X509_FILES="src/authm_mad/remotes/server_x509/authenticate"
809

    
810
AUTH_X509_FILES="src/authm_mad/remotes/x509/authenticate"
811

    
812
AUTH_LDAP_FILES="src/authm_mad/remotes/ldap/authenticate"
813

    
814
AUTH_SSH_FILES="src/authm_mad/remotes/ssh/authenticate"
815

    
816
AUTH_DUMMY_FILES="src/authm_mad/remotes/dummy/authenticate"
817

    
818
AUTH_PLAIN_FILES="src/authm_mad/remotes/plain/authenticate"
819

    
820
#-------------------------------------------------------------------------------
821
# Virtual Network Manager drivers to be installed under $REMOTES_LOCATION/vnm
822
#-------------------------------------------------------------------------------
823

    
824
NETWORK_FILES="src/vnm_mad/remotes/lib/vnm_driver.rb \
825
               src/vnm_mad/remotes/lib/vnmmad.rb \
826
               src/vnm_mad/remotes/OpenNebulaNetwork.conf \
827
               src/vnm_mad/remotes/lib/sg_driver.rb \
828
               src/vnm_mad/remotes/lib/address.rb \
829
               src/vnm_mad/remotes/lib/command.rb \
830
               src/vnm_mad/remotes/lib/vm.rb \
831
               src/vnm_mad/remotes/lib/vlan.rb \
832
               src/vnm_mad/remotes/lib/security_groups.rb \
833
               src/vnm_mad/remotes/lib/security_groups_iptables.rb \
834
               src/vnm_mad/remotes/lib/nic.rb"
835

    
836
NETWORK_8021Q_FILES="src/vnm_mad/remotes/802.1Q/clean \
837
                    src/vnm_mad/remotes/802.1Q/post \
838
                    src/vnm_mad/remotes/802.1Q/pre \
839
                    src/vnm_mad/remotes/802.1Q/update_sg \
840
                    src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb"
841

    
842
NETWORK_VXLAN_FILES="src/vnm_mad/remotes/vxlan/clean \
843
                    src/vnm_mad/remotes/vxlan/post \
844
                    src/vnm_mad/remotes/vxlan/pre \
845
                    src/vnm_mad/remotes/vxlan/update_sg \
846
                    src/vnm_mad/remotes/vxlan/vxlan_driver.rb"
847

    
848

    
849
NETWORK_DUMMY_FILES="src/vnm_mad/remotes/dummy/clean \
850
                    src/vnm_mad/remotes/dummy/post \
851
                    src/vnm_mad/remotes/dummy/update_sg \
852
                    src/vnm_mad/remotes/dummy/pre"
853

    
854
NETWORK_EBTABLES_FILES="src/vnm_mad/remotes/ebtables/clean \
855
                    src/vnm_mad/remotes/ebtables/post \
856
                    src/vnm_mad/remotes/ebtables/pre \
857
                    src/vnm_mad/remotes/ebtables/update_sg \
858
                    src/vnm_mad/remotes/ebtables/Ebtables.rb"
859

    
860
NETWORK_FW_FILES="src/vnm_mad/remotes/fw/post \
861
                          src/vnm_mad/remotes/fw/pre \
862
                          src/vnm_mad/remotes/fw/update_sg \
863
                          src/vnm_mad/remotes/fw/clean"
864

    
865
NETWORK_OVSWITCH_FILES="src/vnm_mad/remotes/ovswitch/clean \
866
                    src/vnm_mad/remotes/ovswitch/post \
867
                    src/vnm_mad/remotes/ovswitch/pre \
868
                    src/vnm_mad/remotes/ovswitch/update_sg \
869
                    src/vnm_mad/remotes/ovswitch/OpenvSwitch.rb"
870

    
871
NETWORK_VCENTER_FILES="src/vnm_mad/remotes/vcenter/pre \
872
                       src/vnm_mad/remotes/vcenter/post \
873
                       src/vnm_mad/remotes/vcenter/clean"
874

    
875
#-------------------------------------------------------------------------------
876
# IPAM drivers to be installed under $REMOTES_LOCATION/ipam
877
#-------------------------------------------------------------------------------
878
IPAM_DRIVER_DUMMY_SCRIPTS="src/ipamm_mad/remotes/dummy/register_address_range \
879
               src/ipamm_mad/remotes/dummy/allocate_address \
880
               src/ipamm_mad/remotes/dummy/get_address \
881
               src/ipamm_mad/remotes/dummy/free_address"
882

    
883
#-------------------------------------------------------------------------------
884
# Transfer Manager commands, to be installed under $LIB_LOCATION/tm_commands
885
#   - SHARED TM, $VAR_LOCATION/tm/shared
886
#   - FS_LVM TM, $VAR_LOCATION/tm/fs_lvm
887
#   - QCOW2 TM, $VAR_LOCATION/tm/qcow2
888
#   - SSH TM, $VAR_LOCATION/tm/ssh
889
#   - DUMMY TM, $VAR_LOCATION/tm/dummy
890
#   - CEPH TM, $VAR_LOCATION/tm/ceph
891
#   - DEV TM, $VAR_LOCATION/tm/dev
892
#   - ISCSI TM, $VAR_LOCATION/tm/iscsi_libvirt
893
#-------------------------------------------------------------------------------
894

    
895
TM_FILES="src/tm_mad/tm_common.sh"
896

    
897
TM_SHARED_FILES="src/tm_mad/shared/clone \
898
                 src/tm_mad/shared/delete \
899
                 src/tm_mad/shared/ln \
900
                 src/tm_mad/shared/mkswap \
901
                 src/tm_mad/shared/mkimage \
902
                 src/tm_mad/shared/mv \
903
                 src/tm_mad/shared/context \
904
                 src/tm_mad/shared/premigrate \
905
                 src/tm_mad/shared/postmigrate \
906
                 src/tm_mad/shared/failmigrate \
907
                 src/tm_mad/shared/mvds \
908
                 src/tm_mad/shared/snap_create \
909
                 src/tm_mad/shared/snap_create_live \
910
                 src/tm_mad/shared/snap_delete \
911
                 src/tm_mad/shared/snap_revert \
912
                 src/tm_mad/shared/monitor \
913
                 src/tm_mad/shared/cpds \
914
                 src/tm_mad/shared/resize"
915

    
916
TM_FS_LVM_FILES="src/tm_mad/fs_lvm/clone \
917
                 src/tm_mad/fs_lvm/context \
918
                 src/tm_mad/fs_lvm/ln \
919
                 src/tm_mad/fs_lvm/monitor \
920
                 src/tm_mad/fs_lvm/mkswap \
921
                 src/tm_mad/fs_lvm/mkimage \
922
                 src/tm_mad/fs_lvm/mv \
923
                 src/tm_mad/fs_lvm/mvds \
924
                 src/tm_mad/fs_lvm/cpds \
925
                 src/tm_mad/fs_lvm/premigrate \
926
                 src/tm_mad/fs_lvm/postmigrate \
927
                 src/tm_mad/fs_lvm/snap_create \
928
                 src/tm_mad/fs_lvm/snap_create_live \
929
                 src/tm_mad/fs_lvm/snap_delete \
930
                 src/tm_mad/fs_lvm/snap_revert \
931
                 src/tm_mad/fs_lvm/failmigrate \
932
                 src/tm_mad/fs_lvm/delete \
933
                 src/tm_mad/fs_lvm/resize"
934

    
935
TM_QCOW2_FILES="src/tm_mad/qcow2/clone \
936
                 src/tm_mad/qcow2/delete \
937
                 src/tm_mad/qcow2/ln \
938
                 src/tm_mad/qcow2/monitor \
939
                 src/tm_mad/qcow2/mkswap \
940
                 src/tm_mad/qcow2/mkimage \
941
                 src/tm_mad/qcow2/mv \
942
                 src/tm_mad/qcow2/context \
943
                 src/tm_mad/qcow2/premigrate \
944
                 src/tm_mad/qcow2/postmigrate \
945
                 src/tm_mad/qcow2/failmigrate \
946
                 src/tm_mad/qcow2/mvds \
947
                 src/tm_mad/qcow2/snap_create \
948
                 src/tm_mad/qcow2/snap_create_live \
949
                 src/tm_mad/qcow2/snap_delete \
950
                 src/tm_mad/qcow2/snap_revert \
951
                 src/tm_mad/qcow2/cpds \
952
                 src/tm_mad/qcow2/resize"
953

    
954
TM_SSH_FILES="src/tm_mad/ssh/clone \
955
              src/tm_mad/ssh/delete \
956
              src/tm_mad/ssh/ln \
957
              src/tm_mad/ssh/mkswap \
958
              src/tm_mad/ssh/mkimage \
959
              src/tm_mad/ssh/mv \
960
              src/tm_mad/ssh/context \
961
              src/tm_mad/ssh/premigrate \
962
              src/tm_mad/ssh/postmigrate \
963
              src/tm_mad/ssh/failmigrate \
964
              src/tm_mad/ssh/mvds \
965
              src/tm_mad/ssh/snap_create \
966
              src/tm_mad/ssh/snap_create_live \
967
              src/tm_mad/ssh/snap_delete \
968
              src/tm_mad/ssh/snap_revert \
969
              src/tm_mad/ssh/monitor \
970
              src/tm_mad/ssh/monitor_ds \
971
              src/tm_mad/ssh/cpds \
972
              src/tm_mad/ssh/resize"
973

    
974
TM_DUMMY_FILES="src/tm_mad/dummy/clone \
975
              src/tm_mad/dummy/delete \
976
              src/tm_mad/dummy/ln \
977
              src/tm_mad/dummy/mkswap \
978
              src/tm_mad/dummy/mkimage \
979
              src/tm_mad/dummy/mv \
980
              src/tm_mad/dummy/context \
981
              src/tm_mad/dummy/premigrate \
982
              src/tm_mad/dummy/postmigrate \
983
              src/tm_mad/dummy/failmigrate \
984
              src/tm_mad/dummy/mvds \
985
              src/tm_mad/dummy/snap_create \
986
              src/tm_mad/dummy/snap_create_live \
987
              src/tm_mad/dummy/snap_delete \
988
              src/tm_mad/dummy/snap_revert \
989
              src/tm_mad/dummy/monitor \
990
              src/tm_mad/dummy/cpds \
991
              src/tm_mad/dummy/resize"
992

    
993
TM_CEPH_FILES="src/tm_mad/ceph/clone \
994
                 src/tm_mad/ceph/ln \
995
                 src/tm_mad/ceph/mv \
996
                 src/tm_mad/ceph/mvds \
997
                 src/tm_mad/ceph/cpds \
998
                 src/tm_mad/ceph/premigrate \
999
                 src/tm_mad/ceph/postmigrate \
1000
                 src/tm_mad/ceph/snap_create \
1001
                 src/tm_mad/ceph/snap_create_live \
1002
                 src/tm_mad/ceph/snap_delete \
1003
                 src/tm_mad/ceph/snap_revert \
1004
                 src/tm_mad/ceph/failmigrate \
1005
                 src/tm_mad/ceph/delete \
1006
                 src/tm_mad/ceph/context \
1007
                 src/tm_mad/ceph/mkimage \
1008
                 src/tm_mad/ceph/monitor \
1009
                 src/tm_mad/ceph/mkswap \
1010
                 src/tm_mad/ceph/resize"
1011

    
1012
TM_DEV_FILES="src/tm_mad/dev/clone \
1013
                 src/tm_mad/dev/ln \
1014
                 src/tm_mad/dev/mv \
1015
                 src/tm_mad/dev/mvds \
1016
                 src/tm_mad/dev/cpds \
1017
                 src/tm_mad/dev/premigrate \
1018
                 src/tm_mad/dev/postmigrate \
1019
                 src/tm_mad/dev/snap_create \
1020
                 src/tm_mad/dev/snap_create_live \
1021
                 src/tm_mad/dev/snap_delete \
1022
                 src/tm_mad/dev/snap_revert \
1023
                 src/tm_mad/dev/failmigrate \
1024
                 src/tm_mad/dev/delete \
1025
                 src/tm_mad/dev/resize"
1026

    
1027
TM_VCENTER_FILES="src/tm_mad/vcenter/clone \
1028
                 src/tm_mad/vcenter/ln \
1029
                 src/tm_mad/vcenter/mv \
1030
                 src/tm_mad/vcenter/mvds \
1031
                 src/tm_mad/vcenter/cpds \
1032
                 src/tm_mad/vcenter/premigrate \
1033
                 src/tm_mad/vcenter/postmigrate \
1034
                 src/tm_mad/vcenter/resize \
1035
                 src/tm_mad/vcenter/snap_create \
1036
                 src/tm_mad/vcenter/snap_create_live \
1037
                 src/tm_mad/vcenter/snap_delete \
1038
                 src/tm_mad/vcenter/snap_revert \
1039
                 src/tm_mad/vcenter/failmigrate \
1040
                 src/tm_mad/vcenter/context \
1041
                 src/tm_mad/vcenter/monitor \
1042
                 src/tm_mad/vcenter/mkimage \
1043
                 src/tm_mad/vcenter/mkswap \
1044
                 src/tm_mad/vcenter/delete"
1045

    
1046
TM_ISCSI_FILES="src/tm_mad/iscsi_libvirt/clone \
1047
                 src/tm_mad/iscsi_libvirt/ln \
1048
                 src/tm_mad/iscsi_libvirt/mv \
1049
                 src/tm_mad/iscsi_libvirt/mvds \
1050
                 src/tm_mad/iscsi_libvirt/cpds \
1051
                 src/tm_mad/iscsi_libvirt/premigrate \
1052
                 src/tm_mad/iscsi_libvirt/postmigrate \
1053
                 src/tm_mad/iscsi_libvirt/snap_create \
1054
                 src/tm_mad/iscsi_libvirt/snap_create_live \
1055
                 src/tm_mad/iscsi_libvirt/snap_delete \
1056
                 src/tm_mad/iscsi_libvirt/snap_revert \
1057
                 src/tm_mad/iscsi_libvirt/failmigrate \
1058
                 src/tm_mad/iscsi_libvirt/delete \
1059
                 src/tm_mad/iscsi_libvirt/resize"
1060

    
1061
#-------------------------------------------------------------------------------
1062
# Datastore drivers, to be installed under $REMOTES_LOCATION/datastore
1063
#   - Dummy Image Repository, $REMOTES_LOCATION/datastore/dummy
1064
#   - FS based Image Repository, $REMOTES_LOCATION/datastore/fs
1065
#-------------------------------------------------------------------------------
1066

    
1067
DATASTORE_DRIVER_COMMON_SCRIPTS="src/datastore_mad/remotes/xpath.rb \
1068
                             src/datastore_mad/remotes/downloader.sh \
1069
                             src/datastore_mad/remotes/vcenter_uploader.rb \
1070
                             src/datastore_mad/remotes/vcenter_downloader.rb \
1071
                             src/datastore_mad/remotes/url.rb \
1072
                             src/datastore_mad/remotes/libfs.sh"
1073

    
1074
DATASTORE_DRIVER_DUMMY_SCRIPTS="src/datastore_mad/remotes/dummy/cp \
1075
                         src/datastore_mad/remotes/dummy/mkfs \
1076
                         src/datastore_mad/remotes/dummy/stat \
1077
                         src/datastore_mad/remotes/dummy/clone \
1078
                         src/datastore_mad/remotes/dummy/monitor \
1079
                         src/datastore_mad/remotes/dummy/snap_delete \
1080
                         src/datastore_mad/remotes/dummy/snap_revert \
1081
                         src/datastore_mad/remotes/dummy/snap_flatten \
1082
                         src/datastore_mad/remotes/dummy/rm \
1083
                         src/datastore_mad/remotes/dummy/export"
1084

    
1085
DATASTORE_DRIVER_FS_SCRIPTS="src/datastore_mad/remotes/fs/cp \
1086
                         src/datastore_mad/remotes/fs/mkfs \
1087
                         src/datastore_mad/remotes/fs/stat \
1088
                         src/datastore_mad/remotes/fs/clone \
1089
                         src/datastore_mad/remotes/fs/monitor \
1090
                         src/datastore_mad/remotes/fs/snap_delete \
1091
                         src/datastore_mad/remotes/fs/snap_revert \
1092
                         src/datastore_mad/remotes/fs/snap_flatten \
1093
                         src/datastore_mad/remotes/fs/rm \
1094
                         src/datastore_mad/remotes/fs/export"
1095

    
1096
DATASTORE_DRIVER_CEPH_SCRIPTS="src/datastore_mad/remotes/ceph/cp \
1097
                         src/datastore_mad/remotes/ceph/mkfs \
1098
                         src/datastore_mad/remotes/ceph/stat \
1099
                         src/datastore_mad/remotes/ceph/rm \
1100
                         src/datastore_mad/remotes/ceph/monitor \
1101
                         src/datastore_mad/remotes/ceph/clone \
1102
                         src/datastore_mad/remotes/ceph/snap_delete \
1103
                         src/datastore_mad/remotes/ceph/snap_revert \
1104
                         src/datastore_mad/remotes/ceph/snap_flatten \
1105
                         src/datastore_mad/remotes/ceph/ceph.conf \
1106
                         src/datastore_mad/remotes/ceph/ceph_utils.sh \
1107
                         src/datastore_mad/remotes/ceph/export"
1108

    
1109
DATASTORE_DRIVER_DEV_SCRIPTS="src/datastore_mad/remotes/dev/cp \
1110
                         src/datastore_mad/remotes/dev/mkfs \
1111
                         src/datastore_mad/remotes/dev/stat \
1112
                         src/datastore_mad/remotes/dev/rm \
1113
                         src/datastore_mad/remotes/dev/monitor \
1114
                         src/datastore_mad/remotes/dev/snap_delete \
1115
                         src/datastore_mad/remotes/dev/snap_revert \
1116
                         src/datastore_mad/remotes/dev/snap_flatten \
1117
                         src/datastore_mad/remotes/dev/clone"
1118

    
1119
DATASTORE_DRIVER_VCENTER_SCRIPTS="src/datastore_mad/remotes/vcenter/cp \
1120
                         src/datastore_mad/remotes/vcenter/mkfs \
1121
                         src/datastore_mad/remotes/vcenter/stat \
1122
                         src/datastore_mad/remotes/vcenter/rm \
1123
                         src/datastore_mad/remotes/vcenter/monitor \
1124
                         src/datastore_mad/remotes/vcenter/snap_delete \
1125
                         src/datastore_mad/remotes/vcenter/snap_revert \
1126
                         src/datastore_mad/remotes/vcenter/snap_flatten \
1127
                         src/datastore_mad/remotes/vcenter/clone \
1128
                         src/datastore_mad/remotes/vcenter/export"
1129

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

    
1140
#-------------------------------------------------------------------------------
1141
# Marketplace drivers, to be installed under $REMOTES_LOCATION/market
1142
#   - HTTP based marketplace, $REMOTES_LOCATION/market/http
1143
#   - OpenNebula public marketplace, $REMOTES_LOCATION/market/one
1144
#   - S3-obeject based marketplace, $REMOTES_LOCATION/market/s3
1145
#-------------------------------------------------------------------------------
1146

    
1147
MARKETPLACE_DRIVER_HTTP_SCRIPTS="src/market_mad/remotes/http/import \
1148
            src/market_mad/remotes/http/delete \
1149
            src/market_mad/remotes/http/monitor"
1150

    
1151
MARKETPLACE_DRIVER_ONE_SCRIPTS="src/market_mad/remotes/one/import \
1152
            src/market_mad/remotes/one/delete \
1153
            src/market_mad/remotes/one/monitor"
1154

    
1155
MARKETPLACE_DRIVER_S3_SCRIPTS="src/market_mad/remotes/s3/import \
1156
            src/market_mad/remotes/s3/delete \
1157
            src/market_mad/remotes/s3/monitor \
1158
            src/market_mad/remotes/s3/S3.rb"
1159

    
1160
#-------------------------------------------------------------------------------
1161
# Migration scripts for onedb command, to be installed under $LIB_LOCATION
1162
#-------------------------------------------------------------------------------
1163

    
1164
ONEDB_FILES="src/onedb/fsck.rb \
1165
            src/onedb/import_slave.rb \
1166
            src/onedb/onedb.rb \
1167
            src/onedb/onedb_backend.rb \
1168
            src/onedb/vcenter_one54.rb \
1169
            src/onedb/sqlite2mysql.rb \
1170
            src/onedb/database_schema.rb \
1171
            src/onedb/fsck \
1172
            src/onedb/onedb_live.rb"
1173

    
1174
ONEDB_SHARED_MIGRATOR_FILES="src/onedb/shared/2.0_to_2.9.80.rb \
1175
                             src/onedb/shared/2.9.80_to_2.9.85.rb \
1176
                             src/onedb/shared/2.9.85_to_2.9.90.rb \
1177
                             src/onedb/shared/2.9.90_to_3.0.0.rb \
1178
                             src/onedb/shared/3.0.0_to_3.1.0.rb \
1179
                             src/onedb/shared/3.1.0_to_3.1.80.rb \
1180
                             src/onedb/shared/3.1.80_to_3.2.0.rb \
1181
                             src/onedb/shared/3.2.0_to_3.2.1.rb \
1182
                             src/onedb/shared/3.2.1_to_3.3.0.rb \
1183
                             src/onedb/shared/3.3.0_to_3.3.80.rb \
1184
                             src/onedb/shared/3.3.80_to_3.4.0.rb \
1185
                             src/onedb/shared/3.4.0_to_3.4.1.rb \
1186
                             src/onedb/shared/3.4.1_to_3.5.80.rb \
1187
                             src/onedb/shared/3.5.80_to_3.6.0.rb \
1188
                             src/onedb/shared/3.6.0_to_3.7.80.rb \
1189
                             src/onedb/shared/3.7.80_to_3.8.0.rb \
1190
                             src/onedb/shared/3.8.0_to_3.8.1.rb \
1191
                             src/onedb/shared/3.8.1_to_3.8.2.rb \
1192
                             src/onedb/shared/3.8.2_to_3.8.3.rb \
1193
                             src/onedb/shared/3.8.3_to_3.8.4.rb \
1194
                             src/onedb/shared/3.8.4_to_3.8.5.rb \
1195
                             src/onedb/shared/3.8.5_to_3.9.80.rb \
1196
                             src/onedb/shared/3.9.80_to_3.9.90.rb \
1197
                             src/onedb/shared/3.9.90_to_4.0.0.rb \
1198
                             src/onedb/shared/4.0.0_to_4.0.1.rb \
1199
                             src/onedb/shared/4.0.1_to_4.1.80.rb \
1200
                             src/onedb/shared/4.1.80_to_4.2.0.rb \
1201
                             src/onedb/shared/4.2.0_to_4.3.80.rb \
1202
                             src/onedb/shared/4.3.80_to_4.3.85.rb \
1203
                             src/onedb/shared/4.3.85_to_4.3.90.rb \
1204
                             src/onedb/shared/4.3.90_to_4.4.0.rb \
1205
                             src/onedb/shared/4.4.0_to_4.4.1.rb \
1206
                             src/onedb/shared/4.4.1_to_4.5.80.rb\
1207
                             src/onedb/shared/4.5.80_to_4.6.0.rb \
1208
                             src/onedb/shared/4.6.0_to_4.11.80.rb \
1209
                             src/onedb/shared/4.11.80_to_4.90.0.rb \
1210
                             src/onedb/shared/4.90.0_to_5.2.0.rb \
1211
                             src/onedb/shared/5.2.0_to_5.3.80.rb"
1212

    
1213
ONEDB_LOCAL_MIGRATOR_FILES="src/onedb/local/4.5.80_to_4.7.80.rb \
1214
                            src/onedb/local/4.7.80_to_4.9.80.rb \
1215
                            src/onedb/local/4.9.80_to_4.10.3.rb \
1216
                            src/onedb/local/4.10.3_to_4.11.80.rb \
1217
                            src/onedb/local/4.11.80_to_4.13.80.rb \
1218
                            src/onedb/local/4.13.80_to_4.13.85.rb \
1219
                            src/onedb/local/4.13.85_to_4.90.0.rb \
1220
                            src/onedb/local/4.90.0_to_5.3.80.rb"
1221

    
1222
ONEDB_PATCH_FILES="src/onedb/patches/4.14_monitoring.rb \
1223
                   src/onedb/patches/history_times.rb"
1224

    
1225
#-------------------------------------------------------------------------------
1226
# Configuration files for OpenNebula, to be installed under $ETC_LOCATION
1227
#-------------------------------------------------------------------------------
1228

    
1229
ETC_FILES="share/etc/oned.conf \
1230
           share/etc/defaultrc \
1231
           src/tm_mad/tmrc \
1232
           src/scheduler/etc/sched.conf"
1233

    
1234
EC2_ETC_FILES="src/vmm_mad/remotes/ec2/ec2_driver.conf \
1235
               src/vmm_mad/remotes/ec2/ec2_driver.default"
1236

    
1237
AZ_ETC_FILES="src/vmm_mad/remotes/az/az_driver.conf \
1238
              src/vmm_mad/remotes/az/az_driver.default"
1239

    
1240
VCENTER_ETC_FILES="src/vmm_mad/remotes/lib/vcenter_driver/vcenter_driver.default"
1241

    
1242
#-------------------------------------------------------------------------------
1243
# Virtualization drivers config. files, to be installed under $ETC_LOCATION
1244
#   - ssh, $ETC_LOCATION/vmm_exec
1245
#-------------------------------------------------------------------------------
1246

    
1247
VMM_EXEC_ETC_FILES="src/vmm_mad/exec/vmm_execrc \
1248
                  src/vmm_mad/exec/vmm_exec_kvm.conf \
1249
                  src/vmm_mad/exec/vmm_exec_vcenter.conf"
1250

    
1251
#-------------------------------------------------------------------------------
1252
# Hook Manager driver config. files, to be installed under $ETC_LOCATION/hm
1253
#-------------------------------------------------------------------------------
1254

    
1255
HM_ETC_FILES="src/hm_mad/hmrc"
1256

    
1257
#-------------------------------------------------------------------------------
1258
# Auth Manager drivers config. files, to be installed under $ETC_LOCATION/auth
1259
#-------------------------------------------------------------------------------
1260

    
1261
AUTH_ETC_FILES="src/authm_mad/remotes/server_x509/server_x509_auth.conf \
1262
                src/authm_mad/remotes/ldap/ldap_auth.conf \
1263
                src/authm_mad/remotes/x509/x509_auth.conf"
1264

    
1265
#-------------------------------------------------------------------------------
1266
# Sample files, to be installed under $SHARE_LOCATION/examples
1267
#-------------------------------------------------------------------------------
1268

    
1269
EXAMPLE_SHARE_FILES="share/examples/vm.template \
1270
                     share/examples/private.net \
1271
                     share/examples/public.net"
1272

    
1273
#-------------------------------------------------------------------------------
1274
# Files required to interact with the websockify server
1275
#-------------------------------------------------------------------------------
1276

    
1277
WEBSOCKIFY_SHARE_FILES="share/websockify/websocketproxy.py \
1278
                        share/websockify/websocket.py \
1279
                        share/websockify/websockify"
1280

    
1281
#-------------------------------------------------------------------------------
1282
# Installation packages for ESX hosts to enable VNC ports
1283
#-------------------------------------------------------------------------------
1284

    
1285
ESX_FW_VNC_SHARE_FILES="share/esx-fw-vnc/fw-vnc.vib \
1286
                        share/esx-fw-vnc/fw-vnc.zip"
1287

    
1288
#-------------------------------------------------------------------------------
1289
# HOOK scripts, to be installed under $VAR_LOCATION/remotes/hooks/ft
1290
#-------------------------------------------------------------------------------
1291

    
1292
HOOK_FT_FILES="share/hooks/ft/host_error.rb \
1293
               share/hooks/ft/fence_host.sh"
1294

    
1295
#-------------------------------------------------------------------------------
1296
# HOOK scripts, to be installed under $VAR_LOCATION/remotes/hooks/vcenter
1297
#-------------------------------------------------------------------------------
1298

    
1299
HOOK_VCENTER_FILES="share/hooks/vcenter/create_vcenter_net.rb \
1300
                    share/hooks/vcenter/delete_vcenter_net.rb"
1301

    
1302
#-------------------------------------------------------------------------------
1303
# HOOK RAFT scripts, to be installed under $VAR_LOCATION/remotes/hooks/raft
1304
#-------------------------------------------------------------------------------
1305

    
1306
HOOK_RAFT_FILES="share/hooks/raft/vip.sh"
1307

    
1308
#-------------------------------------------------------------------------------
1309
# Installation scripts, to be installed under $SHARE_LOCATION
1310
#-------------------------------------------------------------------------------
1311

    
1312
INSTALL_GEMS_SHARE_FILES="share/install_gems/install_gems \
1313
                          share/install_gems/Gemfile"
1314

    
1315
ONETOKEN_SHARE_FILE="share/onetoken/onetoken.sh"
1316

    
1317
FOLLOWER_CLEANUP_SHARE_FILE="share/hooks/raft/follower_cleanup"
1318

    
1319
#-------------------------------------------------------------------------------
1320
# OCA Files
1321
#-------------------------------------------------------------------------------
1322
OCA_LIB_FILES="src/oca/ruby/opennebula.rb"
1323

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

    
1373
#-------------------------------------------------------------------------------
1374
# Common Cloud Files
1375
#-------------------------------------------------------------------------------
1376

    
1377
COMMON_CLOUD_LIB_FILES="src/cloud/common/CloudServer.rb \
1378
                        src/cloud/common/CloudClient.rb \
1379
                        src/cloud/common/CloudAuth.rb"
1380

    
1381
COMMON_CLOUD_CLIENT_LIB_FILES="src/cloud/common/CloudClient.rb"
1382

    
1383
CLOUD_AUTH_LIB_FILES="src/cloud/common/CloudAuth/SunstoneCloudAuth.rb \
1384
                      src/cloud/common/CloudAuth/EC2CloudAuth.rb \
1385
                      src/cloud/common/CloudAuth/X509CloudAuth.rb \
1386
                      src/cloud/common/CloudAuth/RemoteCloudAuth.rb \
1387
                      src/cloud/common/CloudAuth/OneGateCloudAuth.rb \
1388
                      src/cloud/common/CloudAuth/OpenNebulaCloudAuth.rb"
1389

    
1390
#-------------------------------------------------------------------------------
1391
# EC2 Query for OpenNebula
1392
#-------------------------------------------------------------------------------
1393

    
1394
ECO_LIB_FILES="src/cloud/ec2/lib/EC2QueryClient.rb \
1395
               src/cloud/ec2/lib/EC2QueryServer.rb \
1396
               src/cloud/ec2/lib/ImageEC2.rb \
1397
               src/cloud/ec2/lib/elastic_ip.rb \
1398
               src/cloud/ec2/lib/ebs.rb \
1399
               src/cloud/ec2/lib/tags.rb \
1400
               src/cloud/ec2/lib/instance.rb \
1401
               src/cloud/ec2/lib/keypair.rb \
1402
               src/cloud/ec2/lib/net_ssh_replacement.rb \
1403
               src/cloud/ec2/lib/econe_application.rb \
1404
               src/cloud/ec2/lib/econe-server.rb"
1405

    
1406
ECO_LIB_CLIENT_FILES="src/cloud/ec2/lib/EC2QueryClient.rb"
1407

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

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

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

    
1483
ECO_ETC_FILES="src/cloud/ec2/etc/econe.conf"
1484

    
1485
ECO_ETC_TEMPLATE_FILES="src/cloud/ec2/etc/templates/m1.small.erb"
1486

    
1487
#-----------------------------------------------------------------------------
1488
# CLI files
1489
#-----------------------------------------------------------------------------
1490

    
1491
CLI_LIB_FILES="src/cli/cli_helper.rb \
1492
               src/cli/command_parser.rb \
1493
               src/cli/one_helper.rb"
1494

    
1495
ONE_CLI_LIB_FILES="src/cli/one_helper/onegroup_helper.rb \
1496
                   src/cli/one_helper/onehost_helper.rb \
1497
                   src/cli/one_helper/oneimage_helper.rb \
1498
                   src/cli/one_helper/onetemplate_helper.rb \
1499
                   src/cli/one_helper/onequota_helper.rb \
1500
                   src/cli/one_helper/oneuser_helper.rb \
1501
                   src/cli/one_helper/onevm_helper.rb \
1502
                   src/cli/one_helper/onevnet_helper.rb \
1503
                   src/cli/one_helper/oneacl_helper.rb \
1504
                   src/cli/one_helper/onedatastore_helper.rb \
1505
                   src/cli/one_helper/onecluster_helper.rb \
1506
                   src/cli/one_helper/onezone_helper.rb \
1507
                   src/cli/one_helper/onevdc_helper.rb \
1508
                   src/cli/one_helper/oneacct_helper.rb \
1509
                   src/cli/one_helper/onesecgroup_helper.rb \
1510
                   src/cli/one_helper/onevmgroup_helper.rb \
1511
                   src/cli/one_helper/onevrouter_helper.rb \
1512
                   src/cli/one_helper/onemarketapp_helper.rb \
1513
                   src/cli/one_helper/onemarket_helper.rb"
1514

    
1515
CLI_BIN_FILES="src/cli/onevm \
1516
               src/cli/onehost \
1517
               src/cli/onevnet \
1518
               src/cli/oneuser \
1519
               src/cli/oneimage \
1520
               src/cli/onetemplate \
1521
               src/cli/onegroup \
1522
               src/cli/oneacl \
1523
               src/cli/onedatastore \
1524
               src/cli/onecluster \
1525
               src/cli/onezone \
1526
               src/cli/oneflow \
1527
               src/cli/oneflow-template \
1528
               src/cli/oneacct \
1529
               src/cli/onesecgroup \
1530
               src/cli/onevmgroup \
1531
               src/cli/oneshowback \
1532
               src/cli/onevdc \
1533
               src/cli/onevrouter \
1534
               src/cli/onemarketapp \
1535
               src/cli/onemarket"
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/onevmgroup.yaml \
1551
                src/cli/etc/oneshowback.yaml \
1552
                src/cli/etc/onevdc.yaml \
1553
                src/cli/etc/onevrouter.yaml \
1554
                src/cli/etc/onemarketapp.yaml \
1555
                src/cli/etc/onemarket.yaml"
1556

    
1557
#-----------------------------------------------------------------------------
1558
# Sunstone files
1559
#-----------------------------------------------------------------------------
1560

    
1561
SUNSTONE_FILES="src/sunstone/sunstone-server.rb \
1562
                src/sunstone/config.ru"
1563

    
1564
SUNSTONE_BIN_FILES="src/sunstone/bin/sunstone-server \
1565
                    src/sunstone/bin/novnc-server"
1566

    
1567
SUNSTONE_ETC_FILES="src/sunstone/etc/sunstone-server.conf \
1568
                    src/sunstone/etc/sunstone-views.yaml \
1569
                    src/sunstone/etc/sunstone-logos.yaml"
1570

    
1571
SUNSTONE_ETC_VIEW_FILES="src/sunstone/etc/sunstone-views/admin.yaml \
1572
                    src/sunstone/etc/sunstone-views/user.yaml \
1573
                    src/sunstone/etc/sunstone-views/cloud.yaml \
1574
                    src/sunstone/etc/sunstone-views/cloud_vcenter.yaml \
1575
                    src/sunstone/etc/sunstone-views/groupadmin.yaml \
1576
                    src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml \
1577
                    src/sunstone/etc/sunstone-views/admin_vcenter.yaml"
1578

    
1579
SUNSTONE_MODELS_FILES="src/sunstone/models/OpenNebulaJSON.rb \
1580
                       src/sunstone/models/SunstoneServer.rb \
1581
                       src/sunstone/models/SunstoneViews.rb"
1582

    
1583
SUNSTONE_MODELS_JSON_FILES="src/sunstone/models/OpenNebulaJSON/HostJSON.rb \
1584
                    src/sunstone/models/OpenNebulaJSON/ImageJSON.rb \
1585
                    src/sunstone/models/OpenNebulaJSON/GroupJSON.rb \
1586
                    src/sunstone/models/OpenNebulaJSON/JSONUtils.rb \
1587
                    src/sunstone/models/OpenNebulaJSON/PoolJSON.rb \
1588
                    src/sunstone/models/OpenNebulaJSON/UserJSON.rb \
1589
                    src/sunstone/models/OpenNebulaJSON/VMGroupJSON.rb \
1590
                    src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb \
1591
                    src/sunstone/models/OpenNebulaJSON/TemplateJSON.rb \
1592
                    src/sunstone/models/OpenNebulaJSON/AclJSON.rb \
1593
                    src/sunstone/models/OpenNebulaJSON/ClusterJSON.rb \
1594
                    src/sunstone/models/OpenNebulaJSON/DatastoreJSON.rb \
1595
                    src/sunstone/models/OpenNebulaJSON/VirtualNetworkJSON.rb \
1596
                    src/sunstone/models/OpenNebulaJSON/ZoneJSON.rb \
1597
                    src/sunstone/models/OpenNebulaJSON/SecurityGroupJSON.rb \
1598
                    src/sunstone/models/OpenNebulaJSON/VdcJSON.rb \
1599
                    src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb \
1600
                    src/sunstone/models/OpenNebulaJSON/MarketPlaceJSON.rb \
1601
                    src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb"
1602

    
1603
SUNSTONE_VIEWS_FILES="src/sunstone/views/index.erb \
1604
                      src/sunstone/views/login.erb \
1605
                      src/sunstone/views/vnc.erb \
1606
                      src/sunstone/views/spice.erb \
1607
                      src/sunstone/views/_login_standard.erb \
1608
                      src/sunstone/views/_login_x509.erb"
1609

    
1610
SUNSTONE_PUBLIC_JS_FILES="src/sunstone/public/dist/login.js \
1611
                        src/sunstone/public/dist/login.js.map \
1612
                        src/sunstone/public/dist/main.js \
1613
                        src/sunstone/public/dist/main.js.map"
1614

    
1615
SUNSTONE_PUBLIC_JS_CONSOLE_FILES="src/sunstone/public/dist/console/vnc.js \
1616
                        src/sunstone/public/dist/console/vnc.js.map \
1617
                        src/sunstone/public/dist/console/spice.js \
1618
                        src/sunstone/public/dist/console/spice.js.map"
1619

    
1620
SUNSTONE_PUBLIC_DEV_DIR="src/sunstone/public"
1621

    
1622
SUNSTONE_ROUTES_FILES="src/sunstone/routes/oneflow.rb \
1623
  src/sunstone/routes/vcenter.rb \
1624
  src/sunstone/routes/support.rb"
1625

    
1626

    
1627
SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/app.min.css \
1628
                src/sunstone/public/css/opensans/opensans.woff \
1629
                src/sunstone/public/css/novnc-custom.css \
1630
                src/sunstone/public/css/spice-custom.css \
1631
                src/sunstone/public/css/login.css"
1632

    
1633
SUNSTONE_PUBLIC_FONT_AWSOME="src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.eot \
1634
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff2 \
1635
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff \
1636
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.ttf \
1637
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.svg"
1638

    
1639
SUNSTONE_PUBLIC_IMAGES_FILES="src/sunstone/public/images/ajax-loader.gif \
1640
                        src/sunstone/public/images/favicon.ico \
1641
                        src/sunstone/public/images/login_over.png \
1642
                        src/sunstone/public/images/login.png \
1643
                        src/sunstone/public/images/advanced_layout.png \
1644
                        src/sunstone/public/images/cloud_layout.png \
1645
                        src/sunstone/public/images/vcenter_layout.png \
1646
                        src/sunstone/public/images/opennebula-5.0.png \
1647
                        src/sunstone/public/images/opennebula-sunstone-v4.0.png \
1648
                        src/sunstone/public/images/opennebula-sunstone-v4.14-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
"
1654

    
1655
SUNSTONE_PUBLIC_LOGOS_FILES="src/sunstone/public/images/logos/arch.png \
1656
                        src/sunstone/public/images/logos/centos.png \
1657
                        src/sunstone/public/images/logos/debian.png \
1658
                        src/sunstone/public/images/logos/fedora.png \
1659
                        src/sunstone/public/images/logos/linux.png \
1660
                        src/sunstone/public/images/logos/redhat.png \
1661
                        src/sunstone/public/images/logos/ubuntu.png \
1662
                        src/sunstone/public/images/logos/windowsxp.png \
1663
                        src/sunstone/public/images/logos/windows8.png \
1664
"
1665

    
1666
SUNSTONE_PUBLIC_LOCALE_CA="\
1667
src/sunstone/public/locale/languages/ca.js \
1668
src/sunstone/public/locale/languages/ca_datatable.txt"
1669

    
1670
SUNSTONE_PUBLIC_LOCALE_CS_CZ="\
1671
src/sunstone/public/locale/languages/cs_CZ.js \
1672
src/sunstone/public/locale/languages/cs_datatable.txt"
1673

    
1674
SUNSTONE_PUBLIC_LOCALE_DE="\
1675
src/sunstone/public/locale/languages/de.js \
1676
src/sunstone/public/locale/languages/de_datatable.txt"
1677

    
1678
SUNSTONE_PUBLIC_LOCALE_DA="\
1679
src/sunstone/public/locale/languages/da.js \
1680
src/sunstone/public/locale/languages/da_datatable.txt"
1681

    
1682
SUNSTONE_PUBLIC_LOCALE_EL_GR="\
1683
src/sunstone/public/locale/languages/el_GR.js \
1684
src/sunstone/public/locale/languages/el_datatable.txt"
1685

    
1686
SUNSTONE_PUBLIC_LOCALE_EN_US="\
1687
src/sunstone/public/locale/languages/en_US.js \
1688
src/sunstone/public/locale/languages/en_datatable.txt"
1689

    
1690
SUNSTONE_PUBLIC_LOCALE_ES_ES="\
1691
src/sunstone/public/locale/languages/es_ES.js \
1692
src/sunstone/public/locale/languages/es_datatable.txt"
1693

    
1694
SUNSTONE_PUBLIC_LOCALE_FA_IR="\
1695
src/sunstone/public/locale/languages/fa_IR.js \
1696
src/sunstone/public/locale/languages/fa_datatable.txt"
1697

    
1698
SUNSTONE_PUBLIC_LOCALE_FR_FR="\
1699
src/sunstone/public/locale/languages/fr_FR.js \
1700
src/sunstone/public/locale/languages/fr_datatable.txt"
1701

    
1702
SUNSTONE_PUBLIC_LOCALE_IT_IT="\
1703
src/sunstone/public/locale/languages/it_IT.js \
1704
src/sunstone/public/locale/languages/it_datatable.txt"
1705

    
1706
SUNSTONE_PUBLIC_LOCALE_JA="\
1707
src/sunstone/public/locale/languages/ja.js \
1708
src/sunstone/public/locale/languages/ja_datatable.txt"
1709

    
1710
SUNSTONE_PUBLIC_LOCALE_LT_LT="\
1711
src/sunstone/public/locale/languages/lt_LT.js \
1712
src/sunstone/public/locale/languages/lt_datatable.txt"
1713

    
1714
SUNSTONE_PUBLIC_LOCALE_NL_NL="\
1715
src/sunstone/public/locale/languages/nl_NL.js \
1716
src/sunstone/public/locale/languages/nl_datatable.txt"
1717

    
1718
SUNSTONE_PUBLIC_LOCALE_PL="\
1719
src/sunstone/public/locale/languages/pl.js \
1720
src/sunstone/public/locale/languages/pl_datatable.txt"
1721

    
1722
SUNSTONE_PUBLIC_LOCALE_PT_PT="\
1723
src/sunstone/public/locale/languages/pt_PT.js \
1724
src/sunstone/public/locale/languages/pt_datatable.txt"
1725

    
1726
SUNSTONE_PUBLIC_LOCALE_PT_BR="\
1727
src/sunstone/public/locale/languages/pt_BR.js"
1728

    
1729
SUNSTONE_PUBLIC_LOCALE_RU_RU="\
1730
src/sunstone/public/locale/languages/ru_RU.js \
1731
src/sunstone/public/locale/languages/ru_datatable.txt"
1732

    
1733
SUNSTONE_PUBLIC_LOCALE_SK_SK="\
1734
src/sunstone/public/locale/languages/sk_SK.js \
1735
src/sunstone/public/locale/languages/sk_datatable.txt"
1736

    
1737
SUNSTONE_PUBLIC_LOCALE_ZH_CN="\
1738
src/sunstone/public/locale/languages/zh_CN.js \
1739
src/sunstone/public/locale/languages/zh_datatable.txt"
1740

    
1741
#-----------------------------------------------------------------------------
1742
# OneGate files
1743
#-----------------------------------------------------------------------------
1744

    
1745
ONEGATE_FILES="src/onegate/onegate-server.rb \
1746
                src/onegate/config.ru"
1747

    
1748
ONEGATE_BIN_FILES="src/onegate/bin/onegate-server"
1749

    
1750
ONEGATE_ETC_FILES="src/onegate/etc/onegate-server.conf"
1751

    
1752
#-----------------------------------------------------------------------------
1753
# OneFlow files
1754
#-----------------------------------------------------------------------------
1755

    
1756

    
1757
ONEFLOW_FILES="src/flow/oneflow-server.rb \
1758
                src/flow/config.ru"
1759

    
1760
ONEFLOW_BIN_FILES="src/flow/bin/oneflow-server"
1761

    
1762
ONEFLOW_ETC_FILES="src/flow/etc/oneflow-server.conf"
1763

    
1764
ONEFLOW_LIB_FILES="src/flow/lib/grammar.rb \
1765
                    src/flow/lib/grammar.treetop \
1766
                    src/flow/lib/LifeCycleManager.rb \
1767
                    src/flow/lib/log.rb \
1768
                    src/flow/lib/models.rb \
1769
                    src/flow/lib/strategy.rb \
1770
                    src/flow/lib/validator.rb"
1771

    
1772
ONEFLOW_LIB_STRATEGY_FILES="src/flow/lib/strategy/straight.rb"
1773

    
1774
ONEFLOW_LIB_MODELS_FILES="src/flow/lib/models/role.rb \
1775
                          src/flow/lib/models/service_pool.rb \
1776
                          src/flow/lib/models/service.rb \
1777
                          src/flow/lib/models/service_template_pool.rb \
1778
                          src/flow/lib/models/service_template.rb"
1779

    
1780

    
1781
#-----------------------------------------------------------------------------
1782
# MAN files
1783
#-----------------------------------------------------------------------------
1784

    
1785
MAN_FILES="share/man/oneacct.1.gz \
1786
        share/man/oneshowback.1.gz \
1787
        share/man/oneacl.1.gz \
1788
        share/man/onehost.1.gz \
1789
        share/man/oneimage.1.gz \
1790
        share/man/oneuser.1.gz \
1791
        share/man/onevm.1.gz \
1792
        share/man/onevnet.1.gz \
1793
        share/man/onetemplate.1.gz \
1794
        share/man/onegroup.1.gz \
1795
        share/man/onedb.1.gz \
1796
        share/man/onedatastore.1.gz \
1797
        share/man/onecluster.1.gz \
1798
        share/man/onezone.1.gz \
1799
        share/man/onevcenter.1.gz \
1800
        share/man/oneflow.1.gz \
1801
        share/man/oneflow-template.1.gz \
1802
        share/man/onesecgroup.1.gz \
1803
        share/man/onevdc.1.gz \
1804
        share/man/onevrouter.1.gz \
1805
        share/man/onemarket.1.gz \
1806
        share/man/onemarketapp.1.gz \
1807
        share/man/onevmgroup.1.gz \
1808
        share/man/econe-allocate-address.1.gz \
1809
        share/man/econe-associate-address.1.gz \
1810
        share/man/econe-attach-volume.1.gz \
1811
        share/man/econe-create-keypair.1.gz \
1812
        share/man/econe-create-volume.1.gz \
1813
        share/man/econe-delete-keypair.1.gz \
1814
        share/man/econe-delete-volume.1.gz \
1815
        share/man/econe-describe-addresses.1.gz \
1816
        share/man/econe-describe-images.1.gz \
1817
        share/man/econe-describe-instances.1.gz \
1818
        share/man/econe-describe-keypairs.1.gz \
1819
        share/man/econe-describe-volumes.1.gz \
1820
        share/man/econe-detach-volume.1.gz \
1821
        share/man/econe-disassociate-address.1.gz \
1822
        share/man/econe-reboot-instances.1.gz \
1823
        share/man/econe-register.1.gz \
1824
        share/man/econe-release-address.1.gz \
1825
        share/man/econe-run-instances.1.gz \
1826
        share/man/econe-start-instances.1.gz \
1827
        share/man/econe-stop-instances.1.gz \
1828
        share/man/econe-terminate-instances.1.gz \
1829
        share/man/econe-upload.1.gz"
1830

    
1831
#-----------------------------------------------------------------------------
1832
# Docs Files
1833
#-----------------------------------------------------------------------------
1834

    
1835
DOCS_FILES="LICENSE NOTICE README.md"
1836

    
1837
#-----------------------------------------------------------------------------
1838
# Ruby VENDOR files
1839
#-----------------------------------------------------------------------------
1840

    
1841
VENDOR_DIRS="share/vendor/ruby/gems/rbvmomi"
1842

    
1843
#-----------------------------------------------------------------------------
1844
#-----------------------------------------------------------------------------
1845
# INSTALL.SH SCRIPT
1846
#-----------------------------------------------------------------------------
1847
#-----------------------------------------------------------------------------
1848

    
1849
# --- Create OpenNebula directories ---
1850

    
1851
if [ "$UNINSTALL" = "no" ] ; then
1852
    for d in $MAKE_DIRS; do
1853
        mkdir -p $DESTDIR$d
1854
    done
1855
fi
1856

    
1857
# --- Install/Uninstall files ---
1858

    
1859
do_file() {
1860
    if [ "$UNINSTALL" = "yes" ]; then
1861
        rm $DESTDIR$2/`basename $1`
1862
    else
1863
        if [ "$LINK" = "yes" ]; then
1864
            ln -s $SRC_DIR/$1 $DESTDIR$2
1865
        else
1866
            cp -RL $SRC_DIR/$1 $DESTDIR$2
1867
        fi
1868
    fi
1869
}
1870

    
1871

    
1872
if [ "$CLIENT" = "yes" ]; then
1873
    INSTALL_SET=${INSTALL_CLIENT_FILES[@]}
1874
elif [ "$ONEGATE" = "yes" ]; then
1875
    INSTALL_SET="${INSTALL_ONEGATE_FILES[@]}"
1876
elif [ "$SUNSTONE" = "yes" ]; then
1877
  if [ "$SUNSTONE_DEV" = "no" ]; then
1878
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1879
                 ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}
1880
                 ${INSTALL_SUNSTONE_FILES[@]}"
1881
  else
1882
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1883
                 ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}
1884
                 ${INSTALL_SUNSTONE_FILES[@]}"
1885
  fi
1886
elif [ "$ONEFLOW" = "yes" ]; then
1887
    INSTALL_SET="${INSTALL_ONEFLOW_FILES[@]}"
1888
elif [ "$SUNSTONE_DEV" = "no" ]; then
1889
    INSTALL_SET="${INSTALL_FILES[@]} \
1890
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}\
1891
                 ${INSTALL_ONEGATE_FILES[@]} \
1892
                 ${INSTALL_ONEFLOW_FILES[@]}"
1893
else
1894
    INSTALL_SET="${INSTALL_FILES[@]} \
1895
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}\
1896
                 ${INSTALL_ONEGATE_FILES[@]} \
1897
                 ${INSTALL_ONEFLOW_FILES[@]}"
1898
fi
1899

    
1900
for i in ${INSTALL_SET[@]}; do
1901
    SRC=$`echo $i | cut -d: -f1`
1902
    DST=`echo $i | cut -d: -f2`
1903

    
1904
    eval SRC_FILES=$SRC
1905

    
1906
    for f in $SRC_FILES; do
1907
        do_file $f $DST
1908
    done
1909
done
1910

    
1911
if [ "$INSTALL_ETC" = "yes" ] ; then
1912
    if [ "$SUNSTONE" = "yes" ]; then
1913
        INSTALL_ETC_SET="${INSTALL_SUNSTONE_ETC_FILES[@]}"
1914
    elif [ "$ONEGATE" = "yes" ]; then
1915
        INSTALL_ETC_SET="${INSTALL_ONEGATE_ETC_FILES[@]}"
1916
    elif [ "$ONEFLOW" = "yes" ]; then
1917
        INSTALL_ETC_SET="${INSTALL_ONEFLOW_ETC_FILES[@]}"
1918
    else
1919
        INSTALL_ETC_SET="${INSTALL_ETC_FILES[@]} \
1920
                         ${INSTALL_SUNSTONE_ETC_FILES[@]} \
1921
                         ${INSTALL_ONEGATE_ETC_FILES[@]} \
1922
                         ${INSTALL_ONEFLOW_ETC_FILES[@]}"
1923
    fi
1924

    
1925
    for i in ${INSTALL_ETC_SET[@]}; do
1926
        SRC=$`echo $i | cut -d: -f1`
1927
        DST=`echo $i | cut -d: -f2`
1928

    
1929
        eval SRC_FILES=$SRC
1930

    
1931
        OLD_LINK=$LINK
1932
        LINK="no"
1933

    
1934
        for f in $SRC_FILES; do
1935
            do_file $f $DST
1936
        done
1937

    
1938
        LINK=$OLD_LINK
1939
   done
1940
fi
1941

    
1942
# --- Set ownership or remove OpenNebula directories ---
1943

    
1944
if [ "$UNINSTALL" = "no" ] ; then
1945
    for d in $CHOWN_DIRS; do
1946
        chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d
1947
    done
1948
else
1949
    for d in `echo $DELETE_DIRS | awk '{for (i=NF;i>=1;i--) printf $i" "}'`; do
1950
        rmdir $d
1951
    done
1952
fi