Statistics
| Branch: | Tag: | Revision:

one / install.sh @ c2159551

History | View | Annotate | Download (82.3 KB)

1
#!/bin/bash
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2016, 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

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

    
225
LIB_DIRS="$LIB_LOCATION/ruby \
226
          $LIB_LOCATION/ruby/opennebula \
227
          $LIB_LOCATION/ruby/cloud/ \
228
          $LIB_LOCATION/ruby/cloud/econe \
229
          $LIB_LOCATION/ruby/cloud/econe/views \
230
          $LIB_LOCATION/ruby/cloud/CloudAuth \
231
          $LIB_LOCATION/ruby/onedb \
232
          $LIB_LOCATION/ruby/onedb/shared \
233
          $LIB_LOCATION/ruby/onedb/local \
234
          $LIB_LOCATION/ruby/onedb/patches \
235
          $LIB_LOCATION/ruby/vendors \
236
          $LIB_LOCATION/mads \
237
          $LIB_LOCATION/sh \
238
          $LIB_LOCATION/ruby/cli \
239
          $LIB_LOCATION/ruby/cli/one_helper"
240

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

    
294
SUNSTONE_DIRS="$SUNSTONE_LOCATION/routes \
295
               $SUNSTONE_LOCATION/models \
296
               $SUNSTONE_LOCATION/models/OpenNebulaJSON \
297
               $SUNSTONE_LOCATION/views"
298

    
299
SUNSTONE_MINIFIED_DIRS="SUNSTONE_LOCATION/public \
300
               $SUNSTONE_LOCATION/public/dist \
301
               $SUNSTONE_LOCATION/public/dist/console \
302
               $SUNSTONE_LOCATION/public/css \
303
               $SUNSTONE_LOCATION/public/css/opensans \
304
               $SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts \
305
               $SUNSTONE_LOCATION/public/locale/languages \
306
               $SUNSTONE_LOCATION/public/images \
307
               $SUNSTONE_LOCATION/public/images/logos"
308

    
309
ONEFLOW_DIRS="$ONEFLOW_LOCATION/lib \
310
              $ONEFLOW_LOCATION/lib/strategy \
311
              $ONEFLOW_LOCATION/lib/models"
312

    
313
LIB_ECO_CLIENT_DIRS="$LIB_LOCATION/ruby \
314
                 $LIB_LOCATION/ruby/opennebula \
315
                 $LIB_LOCATION/ruby/cloud/ \
316
                 $LIB_LOCATION/ruby/cloud/econe"
317

    
318
LIB_OCA_CLIENT_DIRS="$LIB_LOCATION/ruby \
319
                 $LIB_LOCATION/ruby/opennebula"
320

    
321
LIB_CLI_CLIENT_DIRS="$LIB_LOCATION/ruby/cli \
322
                     $LIB_LOCATION/ruby/cli/one_helper"
323

    
324
CONF_CLI_DIRS="$ETC_LOCATION/cli"
325

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

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

    
433
INSTALL_CLIENT_FILES=(
434
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
435
    ECO_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/econe
436
    ECO_BIN_CLIENT_FILES:$BIN_LOCATION
437
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
438
    CLI_BIN_FILES:$BIN_LOCATION
439
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
440
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
441
    CLI_CONF_FILES:$ETC_LOCATION/cli
442
    OCA_LIB_FILES:$LIB_LOCATION/ruby
443
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
444
    RUBY_AUTH_LIB_FILES:$LIB_LOCATION/ruby/opennebula
445
)
446

    
447
INSTALL_SUNSTONE_RUBY_FILES=(
448
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/opennebula
449
    OCA_LIB_FILES:$LIB_LOCATION/ruby
450
)
451

    
452
INSTALL_SUNSTONE_FILES=(
453
    SUNSTONE_FILES:$SUNSTONE_LOCATION
454
    SUNSTONE_BIN_FILES:$BIN_LOCATION
455
    SUNSTONE_MODELS_FILES:$SUNSTONE_LOCATION/models
456
    SUNSTONE_MODELS_JSON_FILES:$SUNSTONE_LOCATION/models/OpenNebulaJSON
457
    SUNSTONE_VIEWS_FILES:$SUNSTONE_LOCATION/views
458
    SUNSTONE_ROUTES_FILES:$SUNSTONE_LOCATION/routes
459
)
460

    
461
INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES=(
462
  SUNSTONE_PUBLIC_JS_FILES:$SUNSTONE_LOCATION/public/dist
463
  SUNSTONE_PUBLIC_JS_CONSOLE_FILES:$SUNSTONE_LOCATION/public/dist/console
464
  SUNSTONE_PUBLIC_FONT_AWSOME:$SUNSTONE_LOCATION/public/bower_components/fontawesome/fonts
465
  SUNSTONE_PUBLIC_CSS_FILES:$SUNSTONE_LOCATION/public/css
466
  SUNSTONE_PUBLIC_IMAGES_FILES:$SUNSTONE_LOCATION/public/images
467
  SUNSTONE_PUBLIC_LOGOS_FILES:$SUNSTONE_LOCATION/public/images/logos
468
  SUNSTONE_PUBLIC_LOCALE_CA:$SUNSTONE_LOCATION/public/locale/languages
469
  SUNSTONE_PUBLIC_LOCALE_CS_CZ:$SUNSTONE_LOCATION/public/locale/languages
470
  SUNSTONE_PUBLIC_LOCALE_DE:$SUNSTONE_LOCATION/public/locale/languages
471
  SUNSTONE_PUBLIC_LOCALE_DA:$SUNSTONE_LOCATION/public/locale/languages
472
  SUNSTONE_PUBLIC_LOCALE_EL_GR:$SUNSTONE_LOCATION/public/locale/languages
473
  SUNSTONE_PUBLIC_LOCALE_EN_US:$SUNSTONE_LOCATION/public/locale/languages
474
  SUNSTONE_PUBLIC_LOCALE_ES_ES:$SUNSTONE_LOCATION/public/locale/languages
475
  SUNSTONE_PUBLIC_LOCALE_FA_IR:$SUNSTONE_LOCATION/public/locale/languages
476
  SUNSTONE_PUBLIC_LOCALE_FR_FR:$SUNSTONE_LOCATION/public/locale/languages
477
  SUNSTONE_PUBLIC_LOCALE_IT_IT:$SUNSTONE_LOCATION/public/locale/languages
478
  SUNSTONE_PUBLIC_LOCALE_JA:$SUNSTONE_LOCATION/public/locale/languages
479
  SUNSTONE_PUBLIC_LOCALE_LT_LT:$SUNSTONE_LOCATION/public/locale/languages
480
  SUNSTONE_PUBLIC_LOCALE_NL_NL:$SUNSTONE_LOCATION/public/locale/languages
481
  SUNSTONE_PUBLIC_LOCALE_PL:$SUNSTONE_LOCATION/public/locale/languages
482
  SUNSTONE_PUBLIC_LOCALE_PT_PT:$SUNSTONE_LOCATION/public/locale/languages
483
  SUNSTONE_PUBLIC_LOCALE_PT_BR:$SUNSTONE_LOCATION/public/locale/languages
484
  SUNSTONE_PUBLIC_LOCALE_RU_RU:$SUNSTONE_LOCATION/public/locale/languages
485
  SUNSTONE_PUBLIC_LOCALE_SK_SK:$SUNSTONE_LOCATION/public/locale/languages
486
  SUNSTONE_PUBLIC_LOCALE_ZH_CN:$SUNSTONE_LOCATION/public/locale/languages
487
  SUNSTONE_PUBLIC_LOCALE_ZH_TW:$SUNSTONE_LOCATION/public/locale/languages
488
)
489

    
490
INSTALL_SUNSTONE_PUBLIC_DEV_DIR=(
491
  SUNSTONE_PUBLIC_DEV_DIR:$SUNSTONE_LOCATION
492
)
493

    
494
INSTALL_SUNSTONE_ETC_FILES=(
495
    SUNSTONE_ETC_FILES:$ETC_LOCATION
496
    SUNSTONE_ETC_VIEW_FILES:$ETC_LOCATION/sunstone-views
497
)
498

    
499
INSTALL_ONEGATE_FILES=(
500
    ONEGATE_FILES:$ONEGATE_LOCATION
501
    ONEGATE_BIN_FILES:$BIN_LOCATION
502
)
503

    
504
INSTALL_ONEGATE_ETC_FILES=(
505
    ONEGATE_ETC_FILES:$ETC_LOCATION
506
)
507

    
508
INSTALL_ONEFLOW_FILES=(
509
    ONEFLOW_FILES:$ONEFLOW_LOCATION
510
    ONEFLOW_BIN_FILES:$BIN_LOCATION
511
    ONEFLOW_LIB_FILES:$ONEFLOW_LOCATION/lib
512
    ONEFLOW_LIB_STRATEGY_FILES:$ONEFLOW_LOCATION/lib/strategy
513
    ONEFLOW_LIB_MODELS_FILES:$ONEFLOW_LOCATION/lib/models
514
)
515

    
516
INSTALL_ONEFLOW_ETC_FILES=(
517
    ONEFLOW_ETC_FILES:$ETC_LOCATION
518
)
519

    
520
INSTALL_ETC_FILES=(
521
    ETC_FILES:$ETC_LOCATION
522
    EC2_ETC_FILES:$ETC_LOCATION
523
    AZ_ETC_FILES:$ETC_LOCATION
524
    VMM_EXEC_ETC_FILES:$ETC_LOCATION/vmm_exec
525
    HM_ETC_FILES:$ETC_LOCATION/hm
526
    AUTH_ETC_FILES:$ETC_LOCATION/auth
527
    ECO_ETC_FILES:$ETC_LOCATION
528
    ECO_ETC_TEMPLATE_FILES:$ETC_LOCATION/ec2query_templates
529
    CLI_CONF_FILES:$ETC_LOCATION/cli
530
)
531

    
532
#-------------------------------------------------------------------------------
533
# Binary files, to be installed under $BIN_LOCATION
534
#-------------------------------------------------------------------------------
535

    
536
BIN_FILES="src/nebula/oned \
537
           src/scheduler/src/sched/mm_sched \
538
           src/cli/onevm \
539
           src/cli/oneacct \
540
           src/cli/oneshowback \
541
           src/cli/onehost \
542
           src/cli/onevnet \
543
           src/cli/oneuser \
544
           src/cli/oneimage \
545
           src/cli/onegroup \
546
           src/cli/onetemplate \
547
           src/cli/oneacl \
548
           src/cli/onedatastore \
549
           src/cli/onecluster \
550
           src/cli/onezone \
551
           src/cli/oneflow \
552
           src/cli/oneflow-template \
553
           src/cli/onesecgroup \
554
           src/cli/onevdc \
555
           src/cli/onevrouter \
556
           src/cli/onemarket \
557
           src/cli/onemarketapp \
558
           src/cli/onevcenter \
559
           src/onedb/onedb \
560
           src/mad/utils/tty_expect \
561
           share/scripts/one"
562

    
563
#-------------------------------------------------------------------------------
564
# C/C++ OpenNebula API Library & Development files
565
# Include files, to be installed under $INCLUDE_LOCATION
566
# Library files, to be installed under $LIB_LOCATION
567
#-------------------------------------------------------------------------------
568

    
569
INCLUDE_FILES=""
570
LIB_FILES=""
571

    
572
#-------------------------------------------------------------------------------
573
# Ruby library files, to be installed under $LIB_LOCATION/ruby
574
#-------------------------------------------------------------------------------
575

    
576
RUBY_LIB_FILES="src/mad/ruby/ActionManager.rb \
577
                src/mad/ruby/CommandManager.rb \
578
                src/mad/ruby/OpenNebulaDriver.rb \
579
                src/mad/ruby/VirtualMachineDriver.rb \
580
                src/mad/ruby/DriverExecHelper.rb \
581
                src/mad/ruby/ssh_stream.rb \
582
                src/vnm_mad/one_vnm.rb \
583
                src/oca/ruby/deprecated/OpenNebula.rb \
584
                src/oca/ruby/opennebula.rb \
585
                src/sunstone/OpenNebulaVNC.rb \
586
                src/vmm_mad/remotes/vcenter/vcenter_driver.rb \
587
                src/vmm_mad/remotes/az/az_driver.rb \
588
                src/vmm_mad/remotes/ec2/ec2_driver.rb"
589

    
590
#-------------------------------------------------------------------------------
591
# Ruby auth library files, to be installed under $LIB_LOCATION/ruby/opennebula
592
#-------------------------------------------------------------------------------
593

    
594
RUBY_AUTH_LIB_FILES="src/authm_mad/remotes/ssh/ssh_auth.rb \
595
                src/authm_mad/remotes/server_x509/server_x509_auth.rb \
596
                src/authm_mad/remotes/server_cipher/server_cipher_auth.rb \
597
                src/authm_mad/remotes/ldap/ldap_auth.rb \
598
                src/authm_mad/remotes/x509/x509_auth.rb"
599

    
600
#-----------------------------------------------------------------------------
601
# MAD Script library files, to be installed under $LIB_LOCATION/<script lang>
602
# and remotes directory
603
#-----------------------------------------------------------------------------
604

    
605
MAD_SH_LIB_FILES="src/mad/sh/scripts_common.sh"
606
MAD_RUBY_LIB_FILES="src/mad/ruby/scripts_common.rb"
607

    
608
#-------------------------------------------------------------------------------
609
# Driver executable files, to be installed under $LIB_LOCATION/mads
610
#-------------------------------------------------------------------------------
611

    
612
MADS_LIB_FILES="src/mad/sh/madcommon.sh \
613
              src/vmm_mad/exec/one_vmm_exec.rb \
614
              src/vmm_mad/exec/one_vmm_exec \
615
              src/vmm_mad/exec/one_vmm_sh \
616
              src/vmm_mad/exec/one_vmm_ssh \
617
              src/vmm_mad/dummy/one_vmm_dummy.rb \
618
              src/vmm_mad/dummy/one_vmm_dummy \
619
              src/im_mad/im_exec/one_im_exec.rb \
620
              src/im_mad/im_exec/one_im_exec \
621
              src/im_mad/im_exec/one_im_ssh \
622
              src/im_mad/im_exec/one_im_sh \
623
              src/im_mad/dummy/one_im_dummy.rb \
624
              src/im_mad/dummy/one_im_dummy \
625
              src/im_mad/collectd/collectd \
626
              src/tm_mad/one_tm \
627
              src/tm_mad/one_tm.rb \
628
              src/hm_mad/one_hm.rb \
629
              src/hm_mad/one_hm \
630
              src/authm_mad/one_auth_mad.rb \
631
              src/authm_mad/one_auth_mad \
632
              src/datastore_mad/one_datastore.rb \
633
              src/datastore_mad/one_datastore \
634
              src/market_mad/one_market.rb \
635
              src/market_mad/one_market \
636
              src/ipamm_mad/one_ipam \
637
              src/ipamm_mad/one_ipam.rb"
638

    
639
#-------------------------------------------------------------------------------
640
# VMM Lib files, used by some VMM Drivers, to be installed in
641
# $REMOTES_LOCATION/vmm/lib
642
#-------------------------------------------------------------------------------
643

    
644
VMM_EXEC_LIB_FILES="src/vmm_mad/remotes/lib/poll_common.rb"
645

    
646
#-------------------------------------------------------------------------------
647
# VMM SH Driver KVM scripts, to be installed under $REMOTES_LOCATION/vmm/kvm
648
#-------------------------------------------------------------------------------
649

    
650
VMM_EXEC_KVM_SCRIPTS="src/vmm_mad/remotes/kvm/cancel \
651
                    src/vmm_mad/remotes/kvm/deploy \
652
                    src/vmm_mad/remotes/kvm/kvmrc \
653
                    src/vmm_mad/remotes/kvm/migrate \
654
                    src/vmm_mad/remotes/kvm/migrate_local \
655
                    src/vmm_mad/remotes/kvm/restore \
656
                    src/vmm_mad/remotes/kvm/restore.ceph \
657
                    src/vmm_mad/remotes/kvm/reboot \
658
                    src/vmm_mad/remotes/kvm/reset \
659
                    src/vmm_mad/remotes/kvm/save \
660
                    src/vmm_mad/remotes/kvm/save.ceph \
661
                    src/vmm_mad/remotes/kvm/poll \
662
                    src/vmm_mad/remotes/kvm/attach_disk \
663
                    src/vmm_mad/remotes/kvm/detach_disk \
664
                    src/vmm_mad/remotes/kvm/attach_nic \
665
                    src/vmm_mad/remotes/kvm/detach_nic \
666
                    src/vmm_mad/remotes/kvm/snapshot_create \
667
                    src/vmm_mad/remotes/kvm/snapshot_revert \
668
                    src/vmm_mad/remotes/kvm/snapshot_delete \
669
                    src/vmm_mad/remotes/kvm/shutdown \
670
                    src/vmm_mad/remotes/kvm/reconfigure \
671
                    src/vmm_mad/remotes/kvm/prereconfigure"
672

    
673
#-------------------------------------------------------------------------------
674
# VMM Driver vCenter scripts, installed under $REMOTES_LOCATION/vmm/vcenter
675
#-------------------------------------------------------------------------------
676

    
677
VMM_EXEC_VCENTER_SCRIPTS="src/vmm_mad/remotes/vcenter/cancel \
678
                         src/vmm_mad/remotes/vcenter/attach_disk \
679
                         src/vmm_mad/remotes/vcenter/detach_disk \
680
                         src/vmm_mad/remotes/vcenter/attach_nic \
681
                         src/vmm_mad/remotes/vcenter/detach_nic \
682
                         src/vmm_mad/remotes/vcenter/snapshot_create \
683
                         src/vmm_mad/remotes/vcenter/snapshot_revert \
684
                         src/vmm_mad/remotes/vcenter/snapshot_delete \
685
                         src/vmm_mad/remotes/vcenter/deploy \
686
                         src/vmm_mad/remotes/vcenter/migrate \
687
                         src/vmm_mad/remotes/vcenter/restore \
688
                         src/vmm_mad/remotes/vcenter/reboot \
689
                         src/vmm_mad/remotes/vcenter/reset \
690
                         src/vmm_mad/remotes/vcenter/save \
691
                         src/vmm_mad/remotes/vcenter/poll \
692
                         src/vmm_mad/remotes/vcenter/shutdown \
693
                         src/vmm_mad/remotes/vcenter/reconfigure \
694
                         src/vmm_mad/remotes/vcenter/prereconfigure"
695

    
696
#------------------------------------------------------------------------------
697
# VMM Driver EC2 scripts, to be installed under $REMOTES_LOCATION/vmm/ec2
698
#------------------------------------------------------------------------------
699

    
700
VMM_EXEC_EC2_SCRIPTS="src/vmm_mad/remotes/ec2/cancel \
701
                      src/vmm_mad/remotes/ec2/attach_disk \
702
                      src/vmm_mad/remotes/ec2/detach_disk \
703
                      src/vmm_mad/remotes/ec2/attach_nic \
704
                      src/vmm_mad/remotes/ec2/detach_nic \
705
                      src/vmm_mad/remotes/ec2/snapshot_create \
706
                      src/vmm_mad/remotes/ec2/snapshot_revert \
707
                      src/vmm_mad/remotes/ec2/snapshot_delete \
708
                      src/vmm_mad/remotes/ec2/deploy \
709
                      src/vmm_mad/remotes/ec2/migrate \
710
                      src/vmm_mad/remotes/ec2/restore \
711
                      src/vmm_mad/remotes/ec2/reboot \
712
                      src/vmm_mad/remotes/ec2/reset \
713
                      src/vmm_mad/remotes/ec2/save \
714
                      src/vmm_mad/remotes/ec2/poll \
715
                      src/vmm_mad/remotes/ec2/shutdown \
716
                      src/vmm_mad/remotes/ec2/reconfigure \
717
                      src/vmm_mad/remotes/ec2/prereconfigure"
718

    
719
#------------------------------------------------------------------------------
720
# VMM Driver Azure scripts, to be installed under $REMOTES_LOCATION/vmm/az
721
#------------------------------------------------------------------------------
722

    
723
VMM_EXEC_AZ_SCRIPTS="src/vmm_mad/remotes/az/cancel \
724
                     src/vmm_mad/remotes/az/attach_disk \
725
                     src/vmm_mad/remotes/az/detach_disk \
726
                     src/vmm_mad/remotes/az/attach_nic \
727
                     src/vmm_mad/remotes/az/detach_nic \
728
                     src/vmm_mad/remotes/az/snapshot_create \
729
                     src/vmm_mad/remotes/az/snapshot_revert \
730
                     src/vmm_mad/remotes/az/snapshot_delete \
731
                     src/vmm_mad/remotes/az/deploy \
732
                     src/vmm_mad/remotes/az/migrate \
733
                     src/vmm_mad/remotes/az/restore \
734
                     src/vmm_mad/remotes/az/reboot \
735
                     src/vmm_mad/remotes/az/reset \
736
                     src/vmm_mad/remotes/az/save \
737
                     src/vmm_mad/remotes/az/poll \
738
                     src/vmm_mad/remotes/az/shutdown \
739
                     src/vmm_mad/remotes/az/reconfigure \
740
                     src/vmm_mad/remotes/az/prereconfigure"
741

    
742
#-------------------------------------------------------------------------------
743
# Information Manager Probes, to be installed under $REMOTES_LOCATION/im
744
#-------------------------------------------------------------------------------
745

    
746
IM_PROBES_FILES="src/im_mad/remotes/run_probes \
747
                 src/im_mad/remotes/stop_probes"
748

    
749
IM_PROBES_KVM_FILES="src/im_mad/remotes/kvm.d/collectd-client_control.sh \
750
                     src/im_mad/remotes/kvm.d/collectd-client.rb"
751

    
752
IM_PROBES_KVM_PROBES_FILES="src/im_mad/remotes/kvm-probes.d/kvm.rb \
753
                     src/im_mad/remotes/kvm-probes.d/architecture.sh \
754
                     src/im_mad/remotes/kvm-probes.d/cpu.sh \
755
                     src/im_mad/remotes/kvm-probes.d/poll.sh \
756
                     src/im_mad/remotes/kvm-probes.d/name.sh \
757
                     src/im_mad/remotes/kvm-probes.d/pci.rb \
758
                     src/im_mad/remotes/common.d/monitor_ds.sh \
759
                     src/im_mad/remotes/common.d/version.sh \
760
                     src/im_mad/remotes/common.d/collectd-client-shepherd.sh"
761

    
762
IM_PROBES_VCENTER_FILES="src/im_mad/remotes/vcenter.d/vcenter.rb"
763

    
764
IM_PROBES_EC2_FILES="src/im_mad/remotes/ec2.d/poll"
765

    
766
IM_PROBES_AZ_FILES="src/im_mad/remotes/az.d/poll"
767

    
768
IM_PROBES_VERSION="src/im_mad/remotes/VERSION"
769

    
770
#-------------------------------------------------------------------------------
771
# Auth Manager drivers to be installed under $REMOTES_LOCATION/auth
772
#-------------------------------------------------------------------------------
773

    
774
AUTH_SERVER_CIPHER_FILES="src/authm_mad/remotes/server_cipher/authenticate"
775

    
776
AUTH_SERVER_X509_FILES="src/authm_mad/remotes/server_x509/authenticate"
777

    
778
AUTH_X509_FILES="src/authm_mad/remotes/x509/authenticate"
779

    
780
AUTH_LDAP_FILES="src/authm_mad/remotes/ldap/authenticate"
781

    
782
AUTH_SSH_FILES="src/authm_mad/remotes/ssh/authenticate"
783

    
784
AUTH_DUMMY_FILES="src/authm_mad/remotes/dummy/authenticate"
785

    
786
AUTH_PLAIN_FILES="src/authm_mad/remotes/plain/authenticate"
787

    
788
#-------------------------------------------------------------------------------
789
# Virtual Network Manager drivers to be installed under $REMOTES_LOCATION/vnm
790
#-------------------------------------------------------------------------------
791

    
792
NETWORK_FILES="src/vnm_mad/remotes/lib/vnm_driver.rb \
793
               src/vnm_mad/remotes/lib/vnmmad.rb \
794
               src/vnm_mad/remotes/OpenNebulaNetwork.conf \
795
               src/vnm_mad/remotes/lib/sg_driver.rb \
796
               src/vnm_mad/remotes/lib/address.rb \
797
               src/vnm_mad/remotes/lib/command.rb \
798
               src/vnm_mad/remotes/lib/vm.rb \
799
               src/vnm_mad/remotes/lib/vlan.rb \
800
               src/vnm_mad/remotes/lib/security_groups.rb \
801
               src/vnm_mad/remotes/lib/security_groups_iptables.rb \
802
               src/vnm_mad/remotes/lib/nic.rb"
803

    
804
NETWORK_8021Q_FILES="src/vnm_mad/remotes/802.1Q/clean \
805
                    src/vnm_mad/remotes/802.1Q/post \
806
                    src/vnm_mad/remotes/802.1Q/pre \
807
                    src/vnm_mad/remotes/802.1Q/update_sg \
808
                    src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb"
809

    
810
NETWORK_VXLAN_FILES="src/vnm_mad/remotes/vxlan/clean \
811
                    src/vnm_mad/remotes/vxlan/post \
812
                    src/vnm_mad/remotes/vxlan/pre \
813
                    src/vnm_mad/remotes/vxlan/update_sg \
814
                    src/vnm_mad/remotes/vxlan/vxlan_driver.rb"
815

    
816

    
817
NETWORK_DUMMY_FILES="src/vnm_mad/remotes/dummy/clean \
818
                    src/vnm_mad/remotes/dummy/post \
819
                    src/vnm_mad/remotes/dummy/update_sg \
820
                    src/vnm_mad/remotes/dummy/pre"
821

    
822
NETWORK_EBTABLES_FILES="src/vnm_mad/remotes/ebtables/clean \
823
                    src/vnm_mad/remotes/ebtables/post \
824
                    src/vnm_mad/remotes/ebtables/pre \
825
                    src/vnm_mad/remotes/ebtables/update_sg \
826
                    src/vnm_mad/remotes/ebtables/Ebtables.rb"
827

    
828
NETWORK_FW_FILES="src/vnm_mad/remotes/fw/post \
829
                          src/vnm_mad/remotes/fw/pre \
830
                          src/vnm_mad/remotes/fw/update_sg \
831
                          src/vnm_mad/remotes/fw/clean"
832

    
833
NETWORK_OVSWITCH_FILES="src/vnm_mad/remotes/ovswitch/clean \
834
                    src/vnm_mad/remotes/ovswitch/post \
835
                    src/vnm_mad/remotes/ovswitch/pre \
836
                    src/vnm_mad/remotes/ovswitch/update_sg \
837
                    src/vnm_mad/remotes/ovswitch/OpenvSwitch.rb"
838

    
839
#-------------------------------------------------------------------------------
840
# IPAM drivers to be installed under $REMOTES_LOCATION/ipam
841
#-------------------------------------------------------------------------------
842
IPAM_DRIVER_DUMMY_SCRIPTS="src/ipamm_mad/remotes/dummy/register_address_range \
843
               src/ipamm_mad/remotes/dummy/allocate_address \
844
               src/ipamm_mad/remotes/dummy/get_address \
845
               src/ipamm_mad/remotes/dummy/free_address"
846

    
847
#-------------------------------------------------------------------------------
848
# Transfer Manager commands, to be installed under $LIB_LOCATION/tm_commands
849
#   - SHARED TM, $VAR_LOCATION/tm/shared
850
#   - FS_LVM TM, $VAR_LOCATION/tm/fs_lvm
851
#   - QCOW2 TM, $VAR_LOCATION/tm/qcow2
852
#   - SSH TM, $VAR_LOCATION/tm/ssh
853
#   - DUMMY TM, $VAR_LOCATION/tm/dummy
854
#   - CEPH TM, $VAR_LOCATION/tm/ceph
855
#   - DEV TM, $VAR_LOCATION/tm/dev
856
#   - ISCSI TM, $VAR_LOCATION/tm/iscsi_libvirt
857
#-------------------------------------------------------------------------------
858

    
859
TM_FILES="src/tm_mad/tm_common.sh"
860

    
861
TM_SHARED_FILES="src/tm_mad/shared/clone \
862
                 src/tm_mad/shared/delete \
863
                 src/tm_mad/shared/ln \
864
                 src/tm_mad/shared/mkswap \
865
                 src/tm_mad/shared/mkimage \
866
                 src/tm_mad/shared/mv \
867
                 src/tm_mad/shared/context \
868
                 src/tm_mad/shared/premigrate \
869
                 src/tm_mad/shared/postmigrate \
870
                 src/tm_mad/shared/failmigrate \
871
                 src/tm_mad/shared/mvds \
872
                 src/tm_mad/shared/snap_create \
873
                 src/tm_mad/shared/snap_create_live \
874
                 src/tm_mad/shared/snap_delete \
875
                 src/tm_mad/shared/snap_revert \
876
                 src/tm_mad/shared/monitor \
877
                 src/tm_mad/shared/cpds"
878

    
879
TM_FS_LVM_FILES="src/tm_mad/fs_lvm/clone \
880
                 src/tm_mad/fs_lvm/context \
881
                 src/tm_mad/fs_lvm/ln \
882
                 src/tm_mad/fs_lvm/monitor \
883
                 src/tm_mad/fs_lvm/mkswap \
884
                 src/tm_mad/fs_lvm/mkimage \
885
                 src/tm_mad/fs_lvm/mv \
886
                 src/tm_mad/fs_lvm/mvds \
887
                 src/tm_mad/fs_lvm/cpds \
888
                 src/tm_mad/fs_lvm/premigrate \
889
                 src/tm_mad/fs_lvm/postmigrate \
890
                 src/tm_mad/fs_lvm/snap_create \
891
                 src/tm_mad/fs_lvm/snap_create_live \
892
                 src/tm_mad/fs_lvm/snap_delete \
893
                 src/tm_mad/fs_lvm/snap_revert \
894
                 src/tm_mad/fs_lvm/failmigrate \
895
                 src/tm_mad/fs_lvm/delete"
896

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

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

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

    
952
TM_CEPH_FILES="src/tm_mad/ceph/clone \
953
                 src/tm_mad/ceph/ln \
954
                 src/tm_mad/ceph/mv \
955
                 src/tm_mad/ceph/mvds \
956
                 src/tm_mad/ceph/cpds \
957
                 src/tm_mad/ceph/premigrate \
958
                 src/tm_mad/ceph/postmigrate \
959
                 src/tm_mad/ceph/snap_create \
960
                 src/tm_mad/ceph/snap_create_live \
961
                 src/tm_mad/ceph/snap_delete \
962
                 src/tm_mad/ceph/snap_revert \
963
                 src/tm_mad/ceph/failmigrate \
964
                 src/tm_mad/ceph/delete \
965
                 src/tm_mad/ceph/context \
966
                 src/tm_mad/ceph/mkimage \
967
                 src/tm_mad/ceph/monitor \
968
                 src/tm_mad/ceph/mkswap"
969

    
970
TM_DEV_FILES="src/tm_mad/dev/clone \
971
                 src/tm_mad/dev/ln \
972
                 src/tm_mad/dev/mv \
973
                 src/tm_mad/dev/mvds \
974
                 src/tm_mad/dev/cpds \
975
                 src/tm_mad/dev/premigrate \
976
                 src/tm_mad/dev/postmigrate \
977
                 src/tm_mad/dev/snap_create \
978
                 src/tm_mad/dev/snap_create_live \
979
                 src/tm_mad/dev/snap_delete \
980
                 src/tm_mad/dev/snap_revert \
981
                 src/tm_mad/dev/failmigrate \
982
                 src/tm_mad/dev/delete"
983

    
984
TM_VCENTER_FILES="src/tm_mad/vcenter/clone \
985
                 src/tm_mad/vcenter/ln \
986
                 src/tm_mad/vcenter/mv \
987
                 src/tm_mad/vcenter/mvds \
988
                 src/tm_mad/vcenter/cpds \
989
                 src/tm_mad/vcenter/premigrate \
990
                 src/tm_mad/vcenter/postmigrate \
991
                 src/tm_mad/vcenter/snap_create \
992
                 src/tm_mad/vcenter/snap_create_live \
993
                 src/tm_mad/vcenter/snap_delete \
994
                 src/tm_mad/vcenter/snap_revert \
995
                 src/tm_mad/vcenter/failmigrate \
996
                 src/tm_mad/vcenter/delete"
997

    
998
TM_ISCSI_FILES="src/tm_mad/iscsi_libvirt/clone \
999
                 src/tm_mad/iscsi_libvirt/ln \
1000
                 src/tm_mad/iscsi_libvirt/mv \
1001
                 src/tm_mad/iscsi_libvirt/mvds \
1002
                 src/tm_mad/iscsi_libvirt/cpds \
1003
                 src/tm_mad/iscsi_libvirt/premigrate \
1004
                 src/tm_mad/iscsi_libvirt/postmigrate \
1005
                 src/tm_mad/iscsi_libvirt/snap_create \
1006
                 src/tm_mad/iscsi_libvirt/snap_create_live \
1007
                 src/tm_mad/iscsi_libvirt/snap_delete \
1008
                 src/tm_mad/iscsi_libvirt/snap_revert \
1009
                 src/tm_mad/iscsi_libvirt/failmigrate \
1010
                 src/tm_mad/iscsi_libvirt/delete"
1011

    
1012
#-------------------------------------------------------------------------------
1013
# Datastore drivers, to be installed under $REMOTES_LOCATION/datastore
1014
#   - Dummy Image Repository, $REMOTES_LOCATION/datastore/dummy
1015
#   - FS based Image Repository, $REMOTES_LOCATION/datastore/fs
1016
#-------------------------------------------------------------------------------
1017

    
1018
DATASTORE_DRIVER_COMMON_SCRIPTS="src/datastore_mad/remotes/xpath.rb \
1019
                             src/datastore_mad/remotes/downloader.sh \
1020
                             src/datastore_mad/remotes/vcenter_uploader.rb \
1021
                             src/datastore_mad/remotes/vcenter_downloader.rb \
1022
                             src/datastore_mad/remotes/url.rb \
1023
                             src/datastore_mad/remotes/libfs.sh"
1024

    
1025
DATASTORE_DRIVER_DUMMY_SCRIPTS="src/datastore_mad/remotes/dummy/cp \
1026
                         src/datastore_mad/remotes/dummy/mkfs \
1027
                         src/datastore_mad/remotes/dummy/stat \
1028
                         src/datastore_mad/remotes/dummy/clone \
1029
                         src/datastore_mad/remotes/dummy/monitor \
1030
                         src/datastore_mad/remotes/dummy/snap_delete \
1031
                         src/datastore_mad/remotes/dummy/snap_revert \
1032
                         src/datastore_mad/remotes/dummy/snap_flatten \
1033
                         src/datastore_mad/remotes/dummy/rm \
1034
                         src/datastore_mad/remotes/dummy/export"
1035

    
1036
DATASTORE_DRIVER_FS_SCRIPTS="src/datastore_mad/remotes/fs/cp \
1037
                         src/datastore_mad/remotes/fs/mkfs \
1038
                         src/datastore_mad/remotes/fs/stat \
1039
                         src/datastore_mad/remotes/fs/clone \
1040
                         src/datastore_mad/remotes/fs/monitor \
1041
                         src/datastore_mad/remotes/fs/snap_delete \
1042
                         src/datastore_mad/remotes/fs/snap_revert \
1043
                         src/datastore_mad/remotes/fs/snap_flatten \
1044
                         src/datastore_mad/remotes/fs/rm \
1045
                         src/datastore_mad/remotes/fs/export"
1046

    
1047
DATASTORE_DRIVER_CEPH_SCRIPTS="src/datastore_mad/remotes/ceph/cp \
1048
                         src/datastore_mad/remotes/ceph/mkfs \
1049
                         src/datastore_mad/remotes/ceph/stat \
1050
                         src/datastore_mad/remotes/ceph/rm \
1051
                         src/datastore_mad/remotes/ceph/monitor \
1052
                         src/datastore_mad/remotes/ceph/clone \
1053
                         src/datastore_mad/remotes/ceph/snap_delete \
1054
                         src/datastore_mad/remotes/ceph/snap_revert \
1055
                         src/datastore_mad/remotes/ceph/snap_flatten \
1056
                         src/datastore_mad/remotes/ceph/ceph.conf \
1057
                         src/datastore_mad/remotes/ceph/ceph_utils.sh \
1058
                         src/datastore_mad/remotes/ceph/export"
1059

    
1060
DATASTORE_DRIVER_DEV_SCRIPTS="src/datastore_mad/remotes/dev/cp \
1061
                         src/datastore_mad/remotes/dev/mkfs \
1062
                         src/datastore_mad/remotes/dev/stat \
1063
                         src/datastore_mad/remotes/dev/rm \
1064
                         src/datastore_mad/remotes/dev/monitor \
1065
                         src/datastore_mad/remotes/dev/snap_delete \
1066
                         src/datastore_mad/remotes/dev/snap_revert \
1067
                         src/datastore_mad/remotes/dev/snap_flatten \
1068
                         src/datastore_mad/remotes/dev/clone"
1069

    
1070
DATASTORE_DRIVER_VCENTER_SCRIPTS="src/datastore_mad/remotes/vcenter/cp \
1071
                         src/datastore_mad/remotes/vcenter/mkfs \
1072
                         src/datastore_mad/remotes/vcenter/stat \
1073
                         src/datastore_mad/remotes/vcenter/rm \
1074
                         src/datastore_mad/remotes/vcenter/monitor \
1075
                         src/datastore_mad/remotes/vcenter/snap_delete \
1076
                         src/datastore_mad/remotes/vcenter/snap_revert \
1077
                         src/datastore_mad/remotes/vcenter/snap_flatten \
1078
                         src/datastore_mad/remotes/vcenter/clone \
1079
                         src/datastore_mad/remotes/vcenter/export"
1080

    
1081
DATASTORE_DRIVER_ISCSI_SCRIPTS="src/datastore_mad/remotes/iscsi_libvirt/cp \
1082
                         src/datastore_mad/remotes/iscsi_libvirt/mkfs \
1083
                         src/datastore_mad/remotes/iscsi_libvirt/stat \
1084
                         src/datastore_mad/remotes/iscsi_libvirt/rm \
1085
                         src/datastore_mad/remotes/iscsi_libvirt/monitor \
1086
                         src/datastore_mad/remotes/iscsi_libvirt/snap_delete \
1087
                         src/datastore_mad/remotes/iscsi_libvirt/snap_revert \
1088
                         src/datastore_mad/remotes/iscsi_libvirt/snap_flatten \
1089
                         src/datastore_mad/remotes/iscsi_libvirt/clone"
1090

    
1091
#-------------------------------------------------------------------------------
1092
# Marketplace drivers, to be installed under $REMOTES_LOCATION/market
1093
#   - HTTP based marketplace, $REMOTES_LOCATION/market/http
1094
#   - OpenNebula public marketplace, $REMOTES_LOCATION/market/one
1095
#   - S3-obeject based marketplace, $REMOTES_LOCATION/market/s3
1096
#-------------------------------------------------------------------------------
1097

    
1098
MARKETPLACE_DRIVER_HTTP_SCRIPTS="src/market_mad/remotes/http/import \
1099
            src/market_mad/remotes/http/delete \
1100
            src/market_mad/remotes/http/monitor"
1101

    
1102
MARKETPLACE_DRIVER_ONE_SCRIPTS="src/market_mad/remotes/one/import \
1103
            src/market_mad/remotes/one/delete \
1104
            src/market_mad/remotes/one/monitor"
1105

    
1106
MARKETPLACE_DRIVER_S3_SCRIPTS="src/market_mad/remotes/s3/import \
1107
            src/market_mad/remotes/s3/delete \
1108
            src/market_mad/remotes/s3/monitor \
1109
            src/market_mad/remotes/s3/S3.rb"
1110

    
1111
#-------------------------------------------------------------------------------
1112
# Migration scripts for onedb command, to be installed under $LIB_LOCATION
1113
#-------------------------------------------------------------------------------
1114

    
1115
ONEDB_FILES="src/onedb/fsck.rb \
1116
            src/onedb/import_slave.rb \
1117
            src/onedb/onedb.rb \
1118
            src/onedb/onedb_backend.rb \
1119
            src/onedb/sqlite2mysql.rb"
1120

    
1121
ONEDB_SHARED_MIGRATOR_FILES="src/onedb/shared/2.0_to_2.9.80.rb \
1122
                             src/onedb/shared/2.9.80_to_2.9.85.rb \
1123
                             src/onedb/shared/2.9.85_to_2.9.90.rb \
1124
                             src/onedb/shared/2.9.90_to_3.0.0.rb \
1125
                             src/onedb/shared/3.0.0_to_3.1.0.rb \
1126
                             src/onedb/shared/3.1.0_to_3.1.80.rb \
1127
                             src/onedb/shared/3.1.80_to_3.2.0.rb \
1128
                             src/onedb/shared/3.2.0_to_3.2.1.rb \
1129
                             src/onedb/shared/3.2.1_to_3.3.0.rb \
1130
                             src/onedb/shared/3.3.0_to_3.3.80.rb \
1131
                             src/onedb/shared/3.3.80_to_3.4.0.rb \
1132
                             src/onedb/shared/3.4.0_to_3.4.1.rb \
1133
                             src/onedb/shared/3.4.1_to_3.5.80.rb \
1134
                             src/onedb/shared/3.5.80_to_3.6.0.rb \
1135
                             src/onedb/shared/3.6.0_to_3.7.80.rb \
1136
                             src/onedb/shared/3.7.80_to_3.8.0.rb \
1137
                             src/onedb/shared/3.8.0_to_3.8.1.rb \
1138
                             src/onedb/shared/3.8.1_to_3.8.2.rb \
1139
                             src/onedb/shared/3.8.2_to_3.8.3.rb \
1140
                             src/onedb/shared/3.8.3_to_3.8.4.rb \
1141
                             src/onedb/shared/3.8.4_to_3.8.5.rb \
1142
                             src/onedb/shared/3.8.5_to_3.9.80.rb \
1143
                             src/onedb/shared/3.9.80_to_3.9.90.rb \
1144
                             src/onedb/shared/3.9.90_to_4.0.0.rb \
1145
                             src/onedb/shared/4.0.0_to_4.0.1.rb \
1146
                             src/onedb/shared/4.0.1_to_4.1.80.rb \
1147
                             src/onedb/shared/4.1.80_to_4.2.0.rb \
1148
                             src/onedb/shared/4.2.0_to_4.3.80.rb \
1149
                             src/onedb/shared/4.3.80_to_4.3.85.rb \
1150
                             src/onedb/shared/4.3.85_to_4.3.90.rb \
1151
                             src/onedb/shared/4.3.90_to_4.4.0.rb \
1152
                             src/onedb/shared/4.4.0_to_4.4.1.rb \
1153
                             src/onedb/shared/4.4.1_to_4.5.80.rb\
1154
                             src/onedb/shared/4.5.80_to_4.6.0.rb \
1155
                             src/onedb/shared/4.6.0_to_4.11.80.rb \
1156
                             src/onedb/shared/4.11.80_to_4.90.0.rb"
1157

    
1158
ONEDB_LOCAL_MIGRATOR_FILES="src/onedb/local/4.5.80_to_4.7.80.rb \
1159
                            src/onedb/local/4.7.80_to_4.9.80.rb \
1160
                            src/onedb/local/4.9.80_to_4.10.3.rb \
1161
                            src/onedb/local/4.10.3_to_4.11.80.rb \
1162
                            src/onedb/local/4.11.80_to_4.13.80.rb \
1163
                            src/onedb/local/4.13.80_to_4.13.85.rb \
1164
                            src/onedb/local/4.13.85_to_4.90.0.rb"
1165

    
1166
ONEDB_PATCH_FILES="src/onedb/patches/4.14_monitoring.rb \
1167
                   src/onedb/patches/history_times.rb"
1168

    
1169
#-------------------------------------------------------------------------------
1170
# Configuration files for OpenNebula, to be installed under $ETC_LOCATION
1171
#-------------------------------------------------------------------------------
1172

    
1173
ETC_FILES="share/etc/oned.conf \
1174
           share/etc/defaultrc \
1175
           src/tm_mad/tmrc \
1176
           src/scheduler/etc/sched.conf"
1177

    
1178
EC2_ETC_FILES="src/vmm_mad/remotes/ec2/ec2_driver.conf \
1179
               src/vmm_mad/remotes/ec2/ec2_driver.default"
1180

    
1181
AZ_ETC_FILES="src/vmm_mad/remotes/az/az_driver.conf \
1182
              src/vmm_mad/remotes/az/az_driver.default"
1183

    
1184
#-------------------------------------------------------------------------------
1185
# Virtualization drivers config. files, to be installed under $ETC_LOCATION
1186
#   - ssh, $ETC_LOCATION/vmm_exec
1187
#-------------------------------------------------------------------------------
1188

    
1189
VMM_EXEC_ETC_FILES="src/vmm_mad/exec/vmm_execrc \
1190
                  src/vmm_mad/exec/vmm_exec_kvm.conf \
1191
                  src/vmm_mad/exec/vmm_exec_vcenter.conf"
1192

    
1193
#-------------------------------------------------------------------------------
1194
# Hook Manager driver config. files, to be installed under $ETC_LOCATION/hm
1195
#-------------------------------------------------------------------------------
1196

    
1197
HM_ETC_FILES="src/hm_mad/hmrc"
1198

    
1199
#-------------------------------------------------------------------------------
1200
# Auth Manager drivers config. files, to be installed under $ETC_LOCATION/auth
1201
#-------------------------------------------------------------------------------
1202

    
1203
AUTH_ETC_FILES="src/authm_mad/remotes/server_x509/server_x509_auth.conf \
1204
                src/authm_mad/remotes/ldap/ldap_auth.conf \
1205
                src/authm_mad/remotes/x509/x509_auth.conf"
1206

    
1207
#-------------------------------------------------------------------------------
1208
# Sample files, to be installed under $SHARE_LOCATION/examples
1209
#-------------------------------------------------------------------------------
1210

    
1211
EXAMPLE_SHARE_FILES="share/examples/vm.template \
1212
                     share/examples/private.net \
1213
                     share/examples/public.net"
1214

    
1215
#-------------------------------------------------------------------------------
1216
# Files required to interact with the websockify server
1217
#-------------------------------------------------------------------------------
1218

    
1219
WEBSOCKIFY_SHARE_FILES="share/websockify/websocketproxy.py \
1220
                        share/websockify/websocket.py \
1221
                        share/websockify/websockify"
1222

    
1223
#-------------------------------------------------------------------------------
1224
# HOOK scripts, to be installed under $VAR_LOCATION/remotes/hooks
1225
#-------------------------------------------------------------------------------
1226

    
1227
HOOK_FT_FILES="share/hooks/host_error.rb \
1228
               share/hooks/fence_host.sh"
1229

    
1230
#-------------------------------------------------------------------------------
1231
# Installation scripts, to be installed under $SHARE_LOCATION
1232
#-------------------------------------------------------------------------------
1233

    
1234
INSTALL_GEMS_SHARE_FILE="share/install_gems/install_gems"
1235
ONETOKEN_SHARE_FILE="share/onetoken/onetoken.sh"
1236

    
1237
#-------------------------------------------------------------------------------
1238
# OCA Files
1239
#-------------------------------------------------------------------------------
1240
OCA_LIB_FILES="src/oca/ruby/opennebula.rb"
1241

    
1242
RUBY_OPENNEBULA_LIB_FILES="src/oca/ruby/opennebula/acl_pool.rb \
1243
                            src/oca/ruby/opennebula/acl.rb \
1244
                            src/oca/ruby/opennebula/client.rb \
1245
                            src/oca/ruby/opennebula/cluster_pool.rb \
1246
                            src/oca/ruby/opennebula/cluster.rb \
1247
                            src/oca/ruby/opennebula/datastore_pool.rb \
1248
                            src/oca/ruby/opennebula/datastore.rb \
1249
                            src/oca/ruby/opennebula/document_json.rb \
1250
                            src/oca/ruby/opennebula/document_pool_json.rb \
1251
                            src/oca/ruby/opennebula/document_pool.rb \
1252
                            src/oca/ruby/opennebula/document.rb \
1253
                            src/oca/ruby/opennebula/error.rb \
1254
                            src/oca/ruby/opennebula/group_pool.rb \
1255
                            src/oca/ruby/opennebula/group.rb \
1256
                            src/oca/ruby/opennebula/host_pool.rb \
1257
                            src/oca/ruby/opennebula/host.rb \
1258
                            src/oca/ruby/opennebula/image_pool.rb \
1259
                            src/oca/ruby/opennebula/image.rb \
1260
                            src/oca/ruby/opennebula/oneflow_client.rb \
1261
                            src/oca/ruby/opennebula/pool_element.rb \
1262
                            src/oca/ruby/opennebula/pool.rb \
1263
                            src/oca/ruby/opennebula/security_group_pool.rb \
1264
                            src/oca/ruby/opennebula/security_group.rb \
1265
                            src/oca/ruby/opennebula/system.rb \
1266
                            src/oca/ruby/opennebula/template_pool.rb \
1267
                            src/oca/ruby/opennebula/template.rb \
1268
                            src/oca/ruby/opennebula/user_pool.rb \
1269
                            src/oca/ruby/opennebula/user.rb \
1270
                            src/oca/ruby/opennebula/vdc_pool.rb \
1271
                            src/oca/ruby/opennebula/vdc.rb \
1272
                            src/oca/ruby/opennebula/virtual_machine_pool.rb \
1273
                            src/oca/ruby/opennebula/virtual_machine.rb \
1274
                            src/oca/ruby/opennebula/virtual_network_pool.rb \
1275
                            src/oca/ruby/opennebula/virtual_network.rb \
1276
                            src/oca/ruby/opennebula/xml_element.rb \
1277
                            src/oca/ruby/opennebula/xml_pool.rb \
1278
                            src/oca/ruby/opennebula/xml_utils.rb \
1279
                            src/oca/ruby/opennebula/zone_pool.rb \
1280
                            src/oca/ruby/opennebula/zone.rb \
1281
                            src/oca/ruby/opennebula/virtual_router_pool.rb \
1282
                            src/oca/ruby/opennebula/virtual_router.rb \
1283
                            src/oca/ruby/opennebula/marketplace_pool.rb \
1284
                            src/oca/ruby/opennebula/marketplace.rb \
1285
                            src/oca/ruby/opennebula/marketplaceapp_pool.rb \
1286
                            src/oca/ruby/opennebula/marketplaceapp.rb"
1287

    
1288
#-------------------------------------------------------------------------------
1289
# Common Cloud Files
1290
#-------------------------------------------------------------------------------
1291

    
1292
COMMON_CLOUD_LIB_FILES="src/cloud/common/CloudServer.rb \
1293
                        src/cloud/common/CloudClient.rb \
1294
                        src/cloud/common/CloudAuth.rb"
1295

    
1296
COMMON_CLOUD_CLIENT_LIB_FILES="src/cloud/common/CloudClient.rb"
1297

    
1298
CLOUD_AUTH_LIB_FILES="src/cloud/common/CloudAuth/SunstoneCloudAuth.rb \
1299
                      src/cloud/common/CloudAuth/EC2CloudAuth.rb \
1300
                      src/cloud/common/CloudAuth/X509CloudAuth.rb \
1301
                      src/cloud/common/CloudAuth/RemoteCloudAuth.rb \
1302
                      src/cloud/common/CloudAuth/OneGateCloudAuth.rb \
1303
                      src/cloud/common/CloudAuth/OpenNebulaCloudAuth.rb"
1304

    
1305
#-------------------------------------------------------------------------------
1306
# EC2 Query for OpenNebula
1307
#-------------------------------------------------------------------------------
1308

    
1309
ECO_LIB_FILES="src/cloud/ec2/lib/EC2QueryClient.rb \
1310
               src/cloud/ec2/lib/EC2QueryServer.rb \
1311
               src/cloud/ec2/lib/ImageEC2.rb \
1312
               src/cloud/ec2/lib/elastic_ip.rb \
1313
               src/cloud/ec2/lib/ebs.rb \
1314
               src/cloud/ec2/lib/tags.rb \
1315
               src/cloud/ec2/lib/instance.rb \
1316
               src/cloud/ec2/lib/keypair.rb \
1317
               src/cloud/ec2/lib/net_ssh_replacement.rb \
1318
               src/cloud/ec2/lib/econe_application.rb \
1319
               src/cloud/ec2/lib/econe-server.rb"
1320

    
1321
ECO_LIB_CLIENT_FILES="src/cloud/ec2/lib/EC2QueryClient.rb"
1322

    
1323
ECO_LIB_VIEW_FILES="src/cloud/ec2/lib/views/describe_images.erb \
1324
                    src/cloud/ec2/lib/views/describe_instances.erb \
1325
                    src/cloud/ec2/lib/views/describe_regions.erb \
1326
                    src/cloud/ec2/lib/views/describe_availability_zones.erb \
1327
                    src/cloud/ec2/lib/views/create_tags.erb \
1328
                    src/cloud/ec2/lib/views/delete_tags.erb \
1329
                    src/cloud/ec2/lib/views/describe_tags.erb \
1330
                    src/cloud/ec2/lib/views/create_volume.erb \
1331
                    src/cloud/ec2/lib/views/create_snapshot.erb \
1332
                    src/cloud/ec2/lib/views/delete_snapshot.erb \
1333
                    src/cloud/ec2/lib/views/describe_snapshots.erb \
1334
                    src/cloud/ec2/lib/views/create_image.erb \
1335
                    src/cloud/ec2/lib/views/describe_volumes.erb \
1336
                    src/cloud/ec2/lib/views/attach_volume.erb \
1337
                    src/cloud/ec2/lib/views/detach_volume.erb \
1338
                    src/cloud/ec2/lib/views/delete_volume.erb \
1339
                    src/cloud/ec2/lib/views/register_image.erb \
1340
                    src/cloud/ec2/lib/views/run_instances.erb \
1341
                    src/cloud/ec2/lib/views/allocate_address.erb \
1342
                    src/cloud/ec2/lib/views/associate_address.erb \
1343
                    src/cloud/ec2/lib/views/disassociate_address.erb \
1344
                    src/cloud/ec2/lib/views/describe_addresses.erb \
1345
                    src/cloud/ec2/lib/views/release_address.erb \
1346
                    src/cloud/ec2/lib/views/create_keypair.erb \
1347
                    src/cloud/ec2/lib/views/delete_keypair.erb \
1348
                    src/cloud/ec2/lib/views/describe_keypairs.erb \
1349
                    src/cloud/ec2/lib/views/terminate_instances.erb \
1350
                    src/cloud/ec2/lib/views/stop_instances.erb \
1351
                    src/cloud/ec2/lib/views/reboot_instances.erb \
1352
                    src/cloud/ec2/lib/views/start_instances.erb"
1353

    
1354
ECO_BIN_FILES="src/cloud/ec2/bin/econe-server \
1355
               src/cloud/ec2/bin/econe-describe-images \
1356
               src/cloud/ec2/bin/econe-describe-volumes \
1357
               src/cloud/ec2/bin/econe-describe-instances \
1358
               src/cloud/ec2/bin/econe-describe-keypairs \
1359
               src/cloud/ec2/bin/econe-register \
1360
               src/cloud/ec2/bin/econe-attach-volume \
1361
               src/cloud/ec2/bin/econe-detach-volume \
1362
               src/cloud/ec2/bin/econe-delete-volume \
1363
               src/cloud/ec2/bin/econe-delete-keypair \
1364
               src/cloud/ec2/bin/econe-create-volume \
1365
               src/cloud/ec2/bin/econe-create-keypair \
1366
               src/cloud/ec2/bin/econe-run-instances \
1367
               src/cloud/ec2/bin/econe-terminate-instances \
1368
               src/cloud/ec2/bin/econe-start-instances \
1369
               src/cloud/ec2/bin/econe-stop-instances \
1370
               src/cloud/ec2/bin/econe-reboot-instances \
1371
               src/cloud/ec2/bin/econe-describe-addresses \
1372
               src/cloud/ec2/bin/econe-allocate-address \
1373
               src/cloud/ec2/bin/econe-release-address \
1374
               src/cloud/ec2/bin/econe-associate-address \
1375
               src/cloud/ec2/bin/econe-disassociate-address \
1376
               src/cloud/ec2/bin/econe-upload"
1377

    
1378
ECO_BIN_CLIENT_FILES="src/cloud/ec2/bin/econe-describe-images \
1379
               src/cloud/ec2/bin/econe-describe-instances \
1380
               src/cloud/ec2/bin/econe-describe-volumes \
1381
               src/cloud/ec2/bin/econe-register \
1382
               src/cloud/ec2/bin/econe-attach-volume \
1383
               src/cloud/ec2/bin/econe-detach-volume \
1384
               src/cloud/ec2/bin/econe-delete-volume \
1385
               src/cloud/ec2/bin/econe-create-volume \
1386
               src/cloud/ec2/bin/econe-run-instances \
1387
               src/cloud/ec2/bin/econe-terminate-instances \
1388
               src/cloud/ec2/bin/econe-start-instances \
1389
               src/cloud/ec2/bin/econe-stop-instances \
1390
               src/cloud/ec2/bin/econe-reboot-instances \
1391
               src/cloud/ec2/bin/econe-describe-addresses \
1392
               src/cloud/ec2/bin/econe-allocate-address \
1393
               src/cloud/ec2/bin/econe-release-address \
1394
               src/cloud/ec2/bin/econe-associate-address \
1395
               src/cloud/ec2/bin/econe-disassociate-address \
1396
               src/cloud/ec2/bin/econe-upload"
1397

    
1398
ECO_ETC_FILES="src/cloud/ec2/etc/econe.conf"
1399

    
1400
ECO_ETC_TEMPLATE_FILES="src/cloud/ec2/etc/templates/m1.small.erb"
1401

    
1402
#-----------------------------------------------------------------------------
1403
# CLI files
1404
#-----------------------------------------------------------------------------
1405

    
1406
CLI_LIB_FILES="src/cli/cli_helper.rb \
1407
               src/cli/command_parser.rb \
1408
               src/cli/one_helper.rb"
1409

    
1410
ONE_CLI_LIB_FILES="src/cli/one_helper/onegroup_helper.rb \
1411
                   src/cli/one_helper/onehost_helper.rb \
1412
                   src/cli/one_helper/oneimage_helper.rb \
1413
                   src/cli/one_helper/onetemplate_helper.rb \
1414
                   src/cli/one_helper/onequota_helper.rb \
1415
                   src/cli/one_helper/oneuser_helper.rb \
1416
                   src/cli/one_helper/onevm_helper.rb \
1417
                   src/cli/one_helper/onevnet_helper.rb \
1418
                   src/cli/one_helper/oneacl_helper.rb \
1419
                   src/cli/one_helper/onedatastore_helper.rb \
1420
                   src/cli/one_helper/onecluster_helper.rb \
1421
                   src/cli/one_helper/onezone_helper.rb \
1422
                   src/cli/one_helper/onevdc_helper.rb \
1423
                   src/cli/one_helper/oneacct_helper.rb \
1424
                   src/cli/one_helper/onesecgroup_helper.rb \
1425
                   src/cli/one_helper/onevrouter_helper.rb \
1426
                   src/cli/one_helper/onemarketapp_helper.rb \
1427
                   src/cli/one_helper/onemarket_helper.rb"
1428

    
1429
CLI_BIN_FILES="src/cli/onevm \
1430
               src/cli/onehost \
1431
               src/cli/onevnet \
1432
               src/cli/oneuser \
1433
               src/cli/oneimage \
1434
               src/cli/onetemplate \
1435
               src/cli/onegroup \
1436
               src/cli/oneacl \
1437
               src/cli/onedatastore \
1438
               src/cli/onecluster \
1439
               src/cli/onezone \
1440
               src/cli/oneflow \
1441
               src/cli/oneflow-template \
1442
               src/cli/oneacct \
1443
               src/cli/onesecgroup \
1444
               src/cli/oneshowback \
1445
               src/cli/onevdc \
1446
               src/cli/onevrouter \
1447
               src/cli/onemarketapp \
1448
               src/cli/onemarket"
1449

    
1450
CLI_CONF_FILES="src/cli/etc/onegroup.yaml \
1451
                src/cli/etc/onehost.yaml \
1452
                src/cli/etc/oneimage.yaml \
1453
                src/cli/etc/onetemplate.yaml \
1454
                src/cli/etc/oneuser.yaml \
1455
                src/cli/etc/onevm.yaml \
1456
                src/cli/etc/onevnet.yaml \
1457
                src/cli/etc/oneacl.yaml \
1458
                src/cli/etc/onedatastore.yaml \
1459
                src/cli/etc/onecluster.yaml \
1460
                src/cli/etc/onezone.yaml \
1461
                src/cli/etc/oneacct.yaml \
1462
                src/cli/etc/onesecgroup.yaml \
1463
                src/cli/etc/oneshowback.yaml \
1464
                src/cli/etc/onevdc.yaml \
1465
                src/cli/etc/onevrouter.yaml \
1466
                src/cli/etc/onemarketapp.yaml \
1467
                src/cli/etc/onemarket.yaml"
1468

    
1469
#-----------------------------------------------------------------------------
1470
# Sunstone files
1471
#-----------------------------------------------------------------------------
1472

    
1473
SUNSTONE_FILES="src/sunstone/sunstone-server.rb \
1474
                src/sunstone/config.ru"
1475

    
1476
SUNSTONE_BIN_FILES="src/sunstone/bin/sunstone-server \
1477
                    src/sunstone/bin/novnc-server"
1478

    
1479
SUNSTONE_ETC_FILES="src/sunstone/etc/sunstone-server.conf \
1480
                    src/sunstone/etc/sunstone-views.yaml \
1481
                    src/sunstone/etc/sunstone-logos.yaml"
1482

    
1483
SUNSTONE_ETC_VIEW_FILES="src/sunstone/etc/sunstone-views/admin.yaml \
1484
                    src/sunstone/etc/sunstone-views/user.yaml \
1485
                    src/sunstone/etc/sunstone-views/cloud.yaml \
1486
                    src/sunstone/etc/sunstone-views/cloud_vcenter.yaml \
1487
                    src/sunstone/etc/sunstone-views/groupadmin.yaml \
1488
                    src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml \
1489
                    src/sunstone/etc/sunstone-views/admin_vcenter.yaml"
1490

    
1491
SUNSTONE_MODELS_FILES="src/sunstone/models/OpenNebulaJSON.rb \
1492
                       src/sunstone/models/SunstoneServer.rb \
1493
                       src/sunstone/models/SunstoneViews.rb"
1494

    
1495
SUNSTONE_MODELS_JSON_FILES="src/sunstone/models/OpenNebulaJSON/HostJSON.rb \
1496
                    src/sunstone/models/OpenNebulaJSON/ImageJSON.rb \
1497
                    src/sunstone/models/OpenNebulaJSON/GroupJSON.rb \
1498
                    src/sunstone/models/OpenNebulaJSON/JSONUtils.rb \
1499
                    src/sunstone/models/OpenNebulaJSON/PoolJSON.rb \
1500
                    src/sunstone/models/OpenNebulaJSON/UserJSON.rb \
1501
                    src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb \
1502
                    src/sunstone/models/OpenNebulaJSON/TemplateJSON.rb \
1503
                    src/sunstone/models/OpenNebulaJSON/AclJSON.rb \
1504
                    src/sunstone/models/OpenNebulaJSON/ClusterJSON.rb \
1505
                    src/sunstone/models/OpenNebulaJSON/DatastoreJSON.rb \
1506
                    src/sunstone/models/OpenNebulaJSON/VirtualNetworkJSON.rb \
1507
                    src/sunstone/models/OpenNebulaJSON/ZoneJSON.rb \
1508
                    src/sunstone/models/OpenNebulaJSON/SecurityGroupJSON.rb \
1509
                    src/sunstone/models/OpenNebulaJSON/VdcJSON.rb \
1510
                    src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb \
1511
                    src/sunstone/models/OpenNebulaJSON/MarketPlaceJSON.rb \
1512
                    src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb"
1513

    
1514
SUNSTONE_VIEWS_FILES="src/sunstone/views/index.erb \
1515
                      src/sunstone/views/login.erb \
1516
                      src/sunstone/views/vnc.erb \
1517
                      src/sunstone/views/spice.erb \
1518
                      src/sunstone/views/_login_standard.erb \
1519
                      src/sunstone/views/_login_x509.erb"
1520

    
1521
SUNSTONE_PUBLIC_JS_FILES="src/sunstone/public/dist/login.js \
1522
                        src/sunstone/public/dist/login.js.map \
1523
                        src/sunstone/public/dist/main.js \
1524
                        src/sunstone/public/dist/main.js.map"
1525

    
1526
SUNSTONE_PUBLIC_JS_CONSOLE_FILES="src/sunstone/public/dist/console/vnc.js \
1527
                        src/sunstone/public/dist/console/vnc.js.map \
1528
                        src/sunstone/public/dist/console/spice.js \
1529
                        src/sunstone/public/dist/console/spice.js.map"
1530

    
1531
SUNSTONE_PUBLIC_DEV_DIR="src/sunstone/public"
1532

    
1533
SUNSTONE_ROUTES_FILES="src/sunstone/routes/oneflow.rb \
1534
  src/sunstone/routes/vcenter.rb \
1535
  src/sunstone/routes/support.rb"
1536

    
1537

    
1538
SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/app.min.css \
1539
                src/sunstone/public/css/opensans/opensans.woff \
1540
                src/sunstone/public/css/novnc-custom.css \
1541
                src/sunstone/public/css/spice-custom.css \
1542
                src/sunstone/public/css/login.css"
1543

    
1544
SUNSTONE_PUBLIC_FONT_AWSOME="src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.eot \
1545
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff2 \
1546
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.woff \
1547
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.ttf \
1548
                src/sunstone/public/bower_components/fontawesome/fonts/fontawesome-webfont.svg"
1549

    
1550
SUNSTONE_PUBLIC_IMAGES_FILES="src/sunstone/public/images/ajax-loader.gif \
1551
                        src/sunstone/public/images/favicon.ico \
1552
                        src/sunstone/public/images/login_over.png \
1553
                        src/sunstone/public/images/login.png \
1554
                        src/sunstone/public/images/advanced_layout.png \
1555
                        src/sunstone/public/images/cloud_layout.png \
1556
                        src/sunstone/public/images/vcenter_layout.png \
1557
                        src/sunstone/public/images/opennebula-5.0.png \
1558
                        src/sunstone/public/images/opennebula-sunstone-v4.0.png \
1559
                        src/sunstone/public/images/opennebula-sunstone-v4.14-small.png \
1560
                        src/sunstone/public/images/one_small_logo.png \
1561
                        src/sunstone/public/images/panel.png \
1562
                        src/sunstone/public/images/panel_short.png \
1563
                        src/sunstone/public/images/pbar.gif \
1564
"
1565

    
1566
SUNSTONE_PUBLIC_LOGOS_FILES="src/sunstone/public/images/logos/arch.png \
1567
                        src/sunstone/public/images/logos/centos.png \
1568
                        src/sunstone/public/images/logos/debian.png \
1569
                        src/sunstone/public/images/logos/fedora.png \
1570
                        src/sunstone/public/images/logos/linux.png \
1571
                        src/sunstone/public/images/logos/redhat.png \
1572
                        src/sunstone/public/images/logos/ubuntu.png \
1573
                        src/sunstone/public/images/logos/windowsxp.png \
1574
                        src/sunstone/public/images/logos/windows8.png \
1575
"
1576

    
1577
SUNSTONE_PUBLIC_LOCALE_CA="\
1578
src/sunstone/public/locale/languages/ca.js \
1579
src/sunstone/public/locale/languages/ca_datatable.txt"
1580

    
1581
SUNSTONE_PUBLIC_LOCALE_CS_CZ="\
1582
src/sunstone/public/locale/languages/cs_CZ.js \
1583
src/sunstone/public/locale/languages/cs_datatable.txt"
1584

    
1585
SUNSTONE_PUBLIC_LOCALE_DE="\
1586
src/sunstone/public/locale/languages/de.js \
1587
src/sunstone/public/locale/languages/de_datatable.txt"
1588

    
1589
SUNSTONE_PUBLIC_LOCALE_DA="\
1590
src/sunstone/public/locale/languages/da.js \
1591
src/sunstone/public/locale/languages/da_datatable.txt"
1592

    
1593
SUNSTONE_PUBLIC_LOCALE_EL_GR="\
1594
src/sunstone/public/locale/languages/el_GR.js \
1595
src/sunstone/public/locale/languages/el_datatable.txt"
1596

    
1597
SUNSTONE_PUBLIC_LOCALE_EN_US="\
1598
src/sunstone/public/locale/languages/en_US.js \
1599
src/sunstone/public/locale/languages/en_datatable.txt"
1600

    
1601
SUNSTONE_PUBLIC_LOCALE_ES_ES="\
1602
src/sunstone/public/locale/languages/es_ES.js \
1603
src/sunstone/public/locale/languages/es_datatable.txt"
1604

    
1605
SUNSTONE_PUBLIC_LOCALE_FA_IR="\
1606
src/sunstone/public/locale/languages/fa_IR.js \
1607
src/sunstone/public/locale/languages/fa_datatable.txt"
1608

    
1609
SUNSTONE_PUBLIC_LOCALE_FR_FR="\
1610
src/sunstone/public/locale/languages/fr_FR.js \
1611
src/sunstone/public/locale/languages/fr_datatable.txt"
1612

    
1613
SUNSTONE_PUBLIC_LOCALE_IT_IT="\
1614
src/sunstone/public/locale/languages/it_IT.js \
1615
src/sunstone/public/locale/languages/it_datatable.txt"
1616

    
1617
SUNSTONE_PUBLIC_LOCALE_JA="\
1618
src/sunstone/public/locale/languages/ja.js \
1619
src/sunstone/public/locale/languages/ja_datatable.txt"
1620

    
1621
SUNSTONE_PUBLIC_LOCALE_LT_LT="\
1622
src/sunstone/public/locale/languages/lt_LT.js \
1623
src/sunstone/public/locale/languages/lt_datatable.txt"
1624

    
1625
SUNSTONE_PUBLIC_LOCALE_NL_NL="\
1626
src/sunstone/public/locale/languages/nl_NL.js \
1627
src/sunstone/public/locale/languages/nl_datatable.txt"
1628

    
1629
SUNSTONE_PUBLIC_LOCALE_PL="\
1630
src/sunstone/public/locale/languages/pl.js \
1631
src/sunstone/public/locale/languages/pl_datatable.txt"
1632

    
1633
SUNSTONE_PUBLIC_LOCALE_PT_PT="\
1634
src/sunstone/public/locale/languages/pt_PT.js \
1635
src/sunstone/public/locale/languages/pt_datatable.txt"
1636

    
1637
SUNSTONE_PUBLIC_LOCALE_PT_BR="\
1638
src/sunstone/public/locale/languages/pt_BR.js"
1639

    
1640
SUNSTONE_PUBLIC_LOCALE_RU_RU="\
1641
src/sunstone/public/locale/languages/ru_RU.js \
1642
src/sunstone/public/locale/languages/ru_datatable.txt"
1643

    
1644
SUNSTONE_PUBLIC_LOCALE_SK_SK="\
1645
src/sunstone/public/locale/languages/sk_SK.js \
1646
src/sunstone/public/locale/languages/sk_datatable.txt"
1647

    
1648
SUNSTONE_PUBLIC_LOCALE_ZH_CN="\
1649
src/sunstone/public/locale/languages/zh_CN.js \
1650
src/sunstone/public/locale/languages/zh_datatable.txt"
1651

    
1652
SUNSTONE_PUBLIC_LOCALE_ZH_TW="\
1653
src/sunstone/public/locale/languages/zh_TW.js"
1654

    
1655
#-----------------------------------------------------------------------------
1656
# OneGate files
1657
#-----------------------------------------------------------------------------
1658

    
1659
ONEGATE_FILES="src/onegate/onegate-server.rb \
1660
                src/onegate/config.ru"
1661

    
1662
ONEGATE_BIN_FILES="src/onegate/bin/onegate-server"
1663

    
1664
ONEGATE_ETC_FILES="src/onegate/etc/onegate-server.conf"
1665

    
1666
#-----------------------------------------------------------------------------
1667
# OneFlow files
1668
#-----------------------------------------------------------------------------
1669

    
1670

    
1671
ONEFLOW_FILES="src/flow/oneflow-server.rb \
1672
                src/flow/config.ru"
1673

    
1674
ONEFLOW_BIN_FILES="src/flow/bin/oneflow-server"
1675

    
1676
ONEFLOW_ETC_FILES="src/flow/etc/oneflow-server.conf"
1677

    
1678
ONEFLOW_LIB_FILES="src/flow/lib/grammar.rb \
1679
                    src/flow/lib/grammar.treetop \
1680
                    src/flow/lib/LifeCycleManager.rb \
1681
                    src/flow/lib/log.rb \
1682
                    src/flow/lib/models.rb \
1683
                    src/flow/lib/strategy.rb \
1684
                    src/flow/lib/validator.rb"
1685

    
1686
ONEFLOW_LIB_STRATEGY_FILES="src/flow/lib/strategy/straight.rb"
1687

    
1688
ONEFLOW_LIB_MODELS_FILES="src/flow/lib/models/role.rb \
1689
                          src/flow/lib/models/service_pool.rb \
1690
                          src/flow/lib/models/service.rb \
1691
                          src/flow/lib/models/service_template_pool.rb \
1692
                          src/flow/lib/models/service_template.rb"
1693

    
1694

    
1695
#-----------------------------------------------------------------------------
1696
# MAN files
1697
#-----------------------------------------------------------------------------
1698

    
1699
MAN_FILES="share/man/oneacct.1.gz \
1700
        share/man/oneshowback.1.gz \
1701
        share/man/oneacl.1.gz \
1702
        share/man/onehost.1.gz \
1703
        share/man/oneimage.1.gz \
1704
        share/man/oneuser.1.gz \
1705
        share/man/onevm.1.gz \
1706
        share/man/onevnet.1.gz \
1707
        share/man/onetemplate.1.gz \
1708
        share/man/onegroup.1.gz \
1709
        share/man/onedb.1.gz \
1710
        share/man/onedatastore.1.gz \
1711
        share/man/onecluster.1.gz \
1712
        share/man/onezone.1.gz \
1713
        share/man/onevcenter.1.gz \
1714
        share/man/oneflow.1.gz \
1715
        share/man/oneflow-template.1.gz \
1716
        share/man/onesecgroup.1.gz \
1717
        share/man/onevdc.1.gz \
1718
        share/man/onevrouter.1.gz \
1719
        share/man/onemarket.1.gz \
1720
        share/man/onemarketapp.1.gz \
1721
        share/man/econe-allocate-address.1.gz \
1722
        share/man/econe-associate-address.1.gz \
1723
        share/man/econe-attach-volume.1.gz \
1724
        share/man/econe-create-keypair.1.gz \
1725
        share/man/econe-create-volume.1.gz \
1726
        share/man/econe-delete-keypair.1.gz \
1727
        share/man/econe-delete-volume.1.gz \
1728
        share/man/econe-describe-addresses.1.gz \
1729
        share/man/econe-describe-images.1.gz \
1730
        share/man/econe-describe-instances.1.gz \
1731
        share/man/econe-describe-keypairs.1.gz \
1732
        share/man/econe-describe-volumes.1.gz \
1733
        share/man/econe-detach-volume.1.gz \
1734
        share/man/econe-disassociate-address.1.gz \
1735
        share/man/econe-reboot-instances.1.gz \
1736
        share/man/econe-register.1.gz \
1737
        share/man/econe-release-address.1.gz \
1738
        share/man/econe-run-instances.1.gz \
1739
        share/man/econe-start-instances.1.gz \
1740
        share/man/econe-stop-instances.1.gz \
1741
        share/man/econe-terminate-instances.1.gz \
1742
        share/man/econe-upload.1.gz"
1743

    
1744
#-----------------------------------------------------------------------------
1745
# Docs Files
1746
#-----------------------------------------------------------------------------
1747

    
1748
DOCS_FILES="LICENSE NOTICE README.md"
1749

    
1750
#-----------------------------------------------------------------------------
1751
# Ruby VENDOR files
1752
#-----------------------------------------------------------------------------
1753

    
1754
VENDOR_DIRS="share/vendor/ruby/gems/rbvmomi"
1755

    
1756
#-----------------------------------------------------------------------------
1757
#-----------------------------------------------------------------------------
1758
# INSTALL.SH SCRIPT
1759
#-----------------------------------------------------------------------------
1760
#-----------------------------------------------------------------------------
1761

    
1762
# --- Create OpenNebula directories ---
1763

    
1764
if [ "$UNINSTALL" = "no" ] ; then
1765
    for d in $MAKE_DIRS; do
1766
        mkdir -p $DESTDIR$d
1767
    done
1768
fi
1769

    
1770
# --- Install/Uninstall files ---
1771

    
1772
do_file() {
1773
    if [ "$UNINSTALL" = "yes" ]; then
1774
        rm $DESTDIR$2/`basename $1`
1775
    else
1776
        if [ "$LINK" = "yes" ]; then
1777
            ln -s $SRC_DIR/$1 $DESTDIR$2
1778
        else
1779
            cp -RL $SRC_DIR/$1 $DESTDIR$2
1780
        fi
1781
    fi
1782
}
1783

    
1784

    
1785
if [ "$CLIENT" = "yes" ]; then
1786
    INSTALL_SET=${INSTALL_CLIENT_FILES[@]}
1787
elif [ "$ONEGATE" = "yes" ]; then
1788
    INSTALL_SET="${INSTALL_ONEGATE_FILES[@]}"
1789
elif [ "$SUNSTONE" = "yes" ]; then
1790
  if [ "$SUNSTONE_DEV" = "no" ]; then
1791
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1792
                 ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}
1793
                 ${INSTALL_SUNSTONE_FILES[@]}"
1794
  else
1795
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} \
1796
                 ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}
1797
                 ${INSTALL_SUNSTONE_FILES[@]}"
1798
  fi
1799
elif [ "$ONEFLOW" = "yes" ]; then
1800
    INSTALL_SET="${INSTALL_ONEFLOW_FILES[@]}"
1801
elif [ "$SUNSTONE_DEV" = "no" ]; then
1802
    INSTALL_SET="${INSTALL_FILES[@]} \
1803
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES[@]}\
1804
                 ${INSTALL_ONEGATE_FILES[@]} \
1805
                 ${INSTALL_ONEFLOW_FILES[@]}"
1806
else
1807
    INSTALL_SET="${INSTALL_FILES[@]} \
1808
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SUNSTONE_PUBLIC_DEV_DIR[@]}\
1809
                 ${INSTALL_ONEGATE_FILES[@]} \
1810
                 ${INSTALL_ONEFLOW_FILES[@]}"
1811
fi
1812

    
1813
for i in ${INSTALL_SET[@]}; do
1814
    SRC=$`echo $i | cut -d: -f1`
1815
    DST=`echo $i | cut -d: -f2`
1816

    
1817
    eval SRC_FILES=$SRC
1818

    
1819
    for f in $SRC_FILES; do
1820
        do_file $f $DST
1821
    done
1822
done
1823

    
1824
if [ "$INSTALL_ETC" = "yes" ] ; then
1825
    if [ "$SUNSTONE" = "yes" ]; then
1826
        INSTALL_ETC_SET="${INSTALL_SUNSTONE_ETC_FILES[@]}"
1827
    elif [ "$ONEGATE" = "yes" ]; then
1828
        INSTALL_ETC_SET="${INSTALL_ONEGATE_ETC_FILES[@]}"
1829
    elif [ "$ONEFLOW" = "yes" ]; then
1830
        INSTALL_ETC_SET="${INSTALL_ONEFLOW_ETC_FILES[@]}"
1831
    else
1832
        INSTALL_ETC_SET="${INSTALL_ETC_FILES[@]} \
1833
                         ${INSTALL_SUNSTONE_ETC_FILES[@]} \
1834
                         ${INSTALL_ONEGATE_ETC_FILES[@]} \
1835
                         ${INSTALL_ONEFLOW_ETC_FILES[@]}"
1836
    fi
1837

    
1838
    for i in ${INSTALL_ETC_SET[@]}; do
1839
        SRC=$`echo $i | cut -d: -f1`
1840
        DST=`echo $i | cut -d: -f2`
1841

    
1842
        eval SRC_FILES=$SRC
1843

    
1844
        OLD_LINK=$LINK
1845
        LINK="no"
1846

    
1847
        for f in $SRC_FILES; do
1848
            do_file $f $DST
1849
        done
1850

    
1851
        LINK=$OLD_LINK
1852
   done
1853
fi
1854

    
1855
# --- Set ownership or remove OpenNebula directories ---
1856

    
1857
if [ "$UNINSTALL" = "no" ] ; then
1858
    for d in $CHOWN_DIRS; do
1859
        chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d
1860
    done
1861
else
1862
    for d in `echo $DELETE_DIRS | awk '{for (i=NF;i>=1;i--) printf $i" "}'`; do
1863
        rmdir $d
1864
    done
1865
fi