Update the latest version of ansible script
[stor4nfv.git] / ci / ansible / group_vars / common.yml
index 11fdc80..dab13a7 100644 (file)
@@ -1,25 +1,92 @@
----\r
-# Variables here are applicable to all host groups NOT roles\r
-\r
-# This sample file generated by generate_group_vars_sample.sh\r
+# Copyright (c) 2018 Huawei Technologies Co., Ltd. All Rights Reserved.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#     http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
 \r
+---\r
 # Dummy variable to avoid error because ansible does not recognize the\r
 # file as a good configuration file when no variable in it.\r
 dummy:\r
 \r
-# You can override default vars defined in defaults/main.yml here,\r
-# but I would advice to use host or group vars instead\r
-\r
 \r
 ###########\r
 # GENERAL #\r
 ###########\r
 \r
-workplace: /home/krej # Change this field according to your username\r
+# This field indicates which way user prefers to install, currently support\r
+# 'repository', 'release' and 'container'\r
+install_from: release\r
 \r
-# These fields are NOT suggested to be modified\r
-remote_url: https://github.com/opensds/opensds.git\r
-opensds_root_dir: "{{ workplace }}/gopath/src/github.com/opensds/opensds"\r
-opensds_build_dir: "{{ opensds_root_dir }}/build"\r
+# This field indicates which os family the system will be running, currently\r
+# support 'Debian' and 'RedHat'\r
+ansible_os_family: Debian\r
+\r
+# These fields are NOT suggested to be modifie\r
+opensds_work_dir: /opt/opensds-hotpot-linux-amd64\r
+nbp_work_dir: /opt/opensds-sushi-linux-amd64\r
 opensds_config_dir: /etc/opensds\r
+opensds_driver_config_dir: "{{ opensds_config_dir }}/driver"\r
 opensds_log_dir: /var/log/opensds\r
+\r
+\r
+##############\r
+# REPOSITORY #\r
+##############\r
+\r
+# If user specifies intalling from repository, then he can choose the specific\r
+# repository branch\r
+opensds_repo_branch: stable/aruba\r
+nbp_repo_branch: stable/aruba\r
+\r
+# These fields are NOT suggested to be modified\r
+opensds_remote_url: https://github.com/opensds/opensds.git\r
+nbp_remote_url: https://github.com/opensds/nbp.git\r
+\r
+\r
+###########\r
+# RELEASE #\r
+###########\r
+\r
+# If user specifies intalling from release,then he can choose the specific version\r
+opensds_release: v0.2.1 # The version should be at least v0.2.1\r
+nbp_release: v0.2.1 # The version should be at least v0.2.1\r
+\r
+# These fields are NOT suggested to be modified\r
+opensds_download_url: https://github.com/opensds/opensds/releases/download/{{ opensds_release }}/opensds-hotpot-{{ opensds_release }}-linux-amd64.tar.gz\r
+opensds_tarball_dir: /tmp/opensds-hotpot-{{ opensds_release }}-linux-amd64\r
+nbp_download_url: https://github.com/opensds/nbp/releases/download/{{ nbp_release }}/opensds-sushi-{{ nbp_release }}-linux-amd64.tar.gz\r
+nbp_tarball_dir: /tmp/opensds-sushi-{{ nbp_release }}-linux-amd64\r
+\r
+\r
+#############\r
+# CONTAINER #\r
+#############\r
+\r
+opensds_image_tag: aruba\r
+\r
+# These fields are NOT suggested to be modified\r
+controller_docker_image: opensdsio/opensds-controller:{{ opensds_image_tag }}\r
+dock_docker_image: opensdsio/opensds-dock:{{ opensds_image_tag }}\r
+\r
+\r
+###########\r
+# PLUGIN  #\r
+###########\r
+\r
+# 'hotpot_only' is the default integration way, but you can change it to 'csi'\r
+# or 'flexvolume'\r
+nbp_plugin_type: hotpot_only\r
+# The IP (127.0.0.1) should be replaced with the opensds actual endpoint IP\r
+opensds_endpoint: http://127.0.0.1:50040\r
+\r
+# These fields are NOT suggested to be modified\r
+flexvolume_plugin_dir: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/opensds.io~opensds\r