diff options
Diffstat (limited to 'plugins/odl_sfc/roles/setup-odl-sfc')
-rwxr-xr-x | plugins/odl_sfc/roles/setup-odl-sfc/files/odl_pkg.sh | 9 | ||||
-rw-r--r-- | plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml | 6 | ||||
-rwxr-xr-x | plugins/odl_sfc/roles/setup-odl-sfc/vars/main.yml | 6 |
3 files changed, 19 insertions, 2 deletions
diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/files/odl_pkg.sh b/plugins/odl_sfc/roles/setup-odl-sfc/files/odl_pkg.sh index d93da3fd..69f5cd63 100755 --- a/plugins/odl_sfc/roles/setup-odl-sfc/files/odl_pkg.sh +++ b/plugins/odl_sfc/roles/setup-odl-sfc/files/odl_pkg.sh @@ -1,3 +1,12 @@ +############################################################################## +# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + #!/bin/bash rm -rf /home/networking diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml index 8fd1109f..f63edeaa 100644 --- a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml +++ b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml @@ -5,3 +5,9 @@ name: networking-sfc virtualenv: /openstack/venvs/tacker-{{ os_ver }} when: odl_sfc == "Enable" + +- name: stop the other two tacker servers + service: + name: tacker-server + state: stopped + when: inventory_hostname != groups['tacker_all'][0] diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/vars/main.yml b/plugins/odl_sfc/roles/setup-odl-sfc/vars/main.yml index 014fc5b8..bc870277 100755 --- a/plugins/odl_sfc/roles/setup-odl-sfc/vars/main.yml +++ b/plugins/odl_sfc/roles/setup-odl-sfc/vars/main.yml @@ -9,8 +9,10 @@ --- openstack_passwd_file: /etc/openstack_deploy/user_secrets.yml -os_ver: 16.0.5 -os_name: pike +# yamllint disable rule:line-length +os_ver: "{{ lookup('yamlfile', '/opt/openstack-ansible/inventory/group_vars/all/all.yml key=openstack_release') }}" +# yamllint enable rule:line-length +os_name: queens odl_username: admin odl_password: admin |