diff options
author | wutianwei <wutianwei1@huawei.com> | 2018-02-28 14:36:27 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2018-02-28 14:36:27 +0800 |
commit | e3e36f955be4a2a48788fb32222f909f2f2bdbda (patch) | |
tree | 59ed448a72b136ad856dfcc8e6f46309bc3cc7cf /deploy | |
parent | 743ca540fa2c8688720d9e54142e7ae77970d842 (diff) |
Add judgement for k8s stor4nfv
Don't run storage roles when scenario isn't stor4nfv
Change-Id: Ia8e65c90b58533427e74bad225aaa962d2583934
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml b/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml index 1eae8a97..68dec5c2 100755 --- a/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml +++ b/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml @@ -47,7 +47,8 @@ remote_user: root max_fail_percentage: 0 roles: - - storage + - role: storage + when: stor4nfv is defined and stor4nfv == "Enable" - hosts: storage_master remote_user: root |