Update stor4nfv install scripts according to opensds aruba release
[stor4nfv.git] / ci / ansible / group_vars / common.yml
index cbdaaf6..50749e6 100644 (file)
@@ -1,3 +1,17 @@
+# 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
@@ -8,32 +22,63 @@ dummy:
 # GENERAL #\r
 ###########\r
 \r
-opensds_release: v0.1.4 # The version should be at least v0.1.4.\r
-nbp_release: v0.1.0 # The version should be at least v0.1.0.\r
-\r
-# These fields are not suggested to be modified\r
-opensds_download_url: https://github.com/opensds/opensds/releases/download/{{ opensds_release }}/opensds-{{ opensds_release }}-linux-amd64.tar.gz\r
-opensds_tarball_url: /opt/opensds-{{ opensds_release }}-linux-amd64.tar.gz\r
-opensds_dir: /opt/opensds-{{ opensds_release }}-linux-amd64\r
-nbp_download_url: https://github.com/opensds/nbp/releases/download/{{ nbp_release }}/opensds-k8s-{{ nbp_release }}-linux-amd64.tar.gz\r
-nbp_tarball_url: /opt/opensds-k8s-{{ nbp_release }}-linux-amd64.tar.gz\r
-nbp_dir: /opt/opensds-k8s-{{ nbp_release }}-linux-amd64\r
+# This field indicates which way user prefers to install, currently support\r
+# 'repository', 'release' and 'container'\r
+install_from: repository\r
 \r
+# These fields are NOT suggested to be modifie\r
+opensds_work_dir: /opt/opensds-linux-amd64\r
+nbp_work_dir: /opt/opensds-k8s-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: master\r
+nbp_repo_branch: master\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
-# PLUGIN  #\r
+# RELEASE #\r
 ###########\r
 \r
-nbp_plugin_type: standalone # standalone is the default integration way, but you can change it to 'csi', 'flexvolume'\r
+# If user specifies intalling from release,then he can choose the specific version\r
+opensds_release: v0.2.0 # The version should be at least v0.2.0\r
+nbp_release: v0.2.0 # The version should be at least v0.2.0\r
 \r
-flexvolume_plugin_dir: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/opensds.io~opensds\r
+# These fields are NOT suggested to be modified\r
+opensds_download_url: https://github.com/opensds/opensds/releases/download/{{ opensds_release }}/opensds-{{ opensds_release }}-linux-amd64.tar.gz\r
+opensds_tarball_dir: /tmp/opensds-{{ opensds_release }}-linux-amd64\r
+nbp_download_url: https://github.com/opensds/nbp/releases/download/{{ nbp_release }}/opensds-k8s-{{ nbp_release }}-linux-amd64.tar.gz\r
+nbp_tarball_dir: /tmp/opensds-k8s-{{ nbp_release }}-linux-amd64\r
+\r
+\r
+#############\r
+# CONTAINER #\r
+#############\r
+\r
+container_enabled: false\r
 \r
 \r
 ###########\r
-#CONTAINER#\r
+# PLUGIN  #\r
 ###########\r
 \r
-container_enabled: false\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