diff options
author | chigang <chigang@huawei.com> | 2017-07-04 13:21:12 +0800 |
---|---|---|
committer | chigang <chigang@huawei.com> | 2017-07-04 13:21:12 +0800 |
commit | f93fc4fc70694d21f136ae1599b13fd237018b74 (patch) | |
tree | 7cc8082d63c4dcd98123c34b1dc0da56de00bfa7 /deploy/adapters | |
parent | 95ecdb773c9fa90f9e4f1f792f5cc5dc8328fd6a (diff) |
Fix keepalived ping address
JIRA:-
Replace OSA default address with ntp_server address.
OSA will use it to check internet connection.
Rename some roles that make users confused.
Change-Id: I4dd7e242e427e5bc3a611450a3bc436e44a8fefe
Signed-off-by: chigang <chigang@huawei.com>
Diffstat (limited to 'deploy/adapters')
-rw-r--r-- | deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml | 8 | ||||
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/files/cinder.yml (renamed from deploy/adapters/ansible/roles/config-deployment/files/cinder.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/files/http.yml (renamed from deploy/adapters/ansible/roles/config-deployment/files/http.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/files/os-flavor/tasks/main.yml (renamed from deploy/adapters/ansible/roles/config-deployment/files/os-flavor/tasks/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/files/os-flavor/vars/main.yml (renamed from deploy/adapters/ansible/roles/config-deployment/files/os-flavor/vars/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/files/setup-ovs.yml (renamed from deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/tasks/main.yml (renamed from deploy/adapters/ansible/roles/config-deployment/tasks/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/ansible.cfg (renamed from deploy/adapters/ansible/roles/config-deployment/templates/ansible.cfg) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/create-flavor.yml.j2 (renamed from deploy/adapters/ansible/roles/config-deployment/templates/create-flavor.yml.j2) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/create-network.yml.j2 (renamed from deploy/adapters/ansible/roles/config-deployment/templates/create-network.yml.j2) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2 (renamed from deploy/adapters/ansible/roles/config-deployment/templates/openstack_user_config.yml.j2) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 (renamed from deploy/adapters/ansible/roles/config-deployment/templates/user_variables.yml.j2) | 1 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/post-openstack/tasks/main.yml (renamed from deploy/adapters/ansible/roles/openstack-post/tasks/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/post-openstack/vars/main.yml (renamed from deploy/adapters/ansible/roles/openstack-post/vars/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/files/centos_base.repo (renamed from deploy/adapters/ansible/roles/pre-prepare/files/centos_base.repo) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/files/modules (renamed from deploy/adapters/ansible/roles/pre-prepare/files/modules) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/tasks/RedHat.yml (renamed from deploy/adapters/ansible/roles/pre-prepare/tasks/RedHat.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/tasks/Ubuntu.yml (renamed from deploy/adapters/ansible/roles/pre-prepare/tasks/Ubuntu.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/tasks/main.yml (renamed from deploy/adapters/ansible/roles/pre-prepare/tasks/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/templates/hosts (renamed from deploy/adapters/ansible/roles/common/templates/hosts) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/templates/sources.list (renamed from deploy/adapters/ansible/roles/pre-prepare/templates/sources.list) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/vars/main.yml (renamed from deploy/adapters/ansible/roles/pre-prepare/vars/main.yml) | 0 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/setup-openvswitch/tasks/main.yml | 2 |
23 files changed, 6 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml index 663f02b8..417c0546 100644 --- a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml +++ b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml @@ -10,7 +10,7 @@ - hosts: all remote_user: root roles: - - pre-prepare + - pre-openstack - hosts: controller remote_user: root @@ -25,11 +25,9 @@ - hosts: localhost remote_user: root roles: - - role: config-deployment + - role: config-osa - role: setup-host - role: setup-infrastructure - role: setup-openstack - role: setup-openvswitch - when: NEUTRON_MECHANISM_DRIVERS[0] == "openvswitch" or - NEUTRON_MECHANISM_DRIVERS[0] == "opendaylight" - - role: openstack-post + - role: post-openstack diff --git a/deploy/adapters/ansible/roles/config-deployment/files/cinder.yml b/deploy/adapters/ansible/roles/config-osa/files/cinder.yml index 3a39935a..3a39935a 100755 --- a/deploy/adapters/ansible/roles/config-deployment/files/cinder.yml +++ b/deploy/adapters/ansible/roles/config-osa/files/cinder.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/files/http.yml b/deploy/adapters/ansible/roles/config-osa/files/http.yml index 248fc06d..248fc06d 100644 --- a/deploy/adapters/ansible/roles/config-deployment/files/http.yml +++ b/deploy/adapters/ansible/roles/config-osa/files/http.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/files/os-flavor/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/files/os-flavor/tasks/main.yml index 03b57120..03b57120 100644 --- a/deploy/adapters/ansible/roles/config-deployment/files/os-flavor/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/files/os-flavor/tasks/main.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/files/os-flavor/vars/main.yml b/deploy/adapters/ansible/roles/config-osa/files/os-flavor/vars/main.yml index d9c36d42..d9c36d42 100644 --- a/deploy/adapters/ansible/roles/config-deployment/files/os-flavor/vars/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/files/os-flavor/vars/main.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml b/deploy/adapters/ansible/roles/config-osa/files/setup-ovs.yml index 57bc5ef1..57bc5ef1 100644 --- a/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml +++ b/deploy/adapters/ansible/roles/config-osa/files/setup-ovs.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 8246d6e7..8246d6e7 100644 --- a/deploy/adapters/ansible/roles/config-deployment/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml diff --git a/deploy/adapters/ansible/roles/config-deployment/templates/ansible.cfg b/deploy/adapters/ansible/roles/config-osa/templates/ansible.cfg index 41502fbf..41502fbf 100644 --- a/deploy/adapters/ansible/roles/config-deployment/templates/ansible.cfg +++ b/deploy/adapters/ansible/roles/config-osa/templates/ansible.cfg diff --git a/deploy/adapters/ansible/roles/config-deployment/templates/create-flavor.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/create-flavor.yml.j2 index b33cd414..b33cd414 100644 --- a/deploy/adapters/ansible/roles/config-deployment/templates/create-flavor.yml.j2 +++ b/deploy/adapters/ansible/roles/config-osa/templates/create-flavor.yml.j2 diff --git a/deploy/adapters/ansible/roles/config-deployment/templates/create-network.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/create-network.yml.j2 index 419b9b18..419b9b18 100644 --- a/deploy/adapters/ansible/roles/config-deployment/templates/create-network.yml.j2 +++ b/deploy/adapters/ansible/roles/config-osa/templates/create-network.yml.j2 diff --git a/deploy/adapters/ansible/roles/config-deployment/templates/openstack_user_config.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2 index 2a24113b..2a24113b 100644 --- a/deploy/adapters/ansible/roles/config-deployment/templates/openstack_user_config.yml.j2 +++ b/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2 diff --git a/deploy/adapters/ansible/roles/config-deployment/templates/user_variables.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 index 443a3f5b..5157f758 100644 --- a/deploy/adapters/ansible/roles/config-deployment/templates/user_variables.yml.j2 +++ b/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 @@ -26,6 +26,7 @@ haproxy_keepalived_external_vip_cidr: "{{ public_vip.ip }}/32" haproxy_keepalived_internal_vip_cidr: "10.1.0.22/32" haproxy_keepalived_external_interface: br-vlan haproxy_keepalived_internal_interface: br-mgmt +keepalived_ping_address: "{{ ntp_server }}" {% if "openvswitch" == NEUTRON_MECHANISM_DRIVERS[0] or "opendaylight" == NEUTRON_MECHANISM_DRIVERS[0] diff --git a/deploy/adapters/ansible/roles/openstack-post/tasks/main.yml b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml index d5182c95..d5182c95 100644 --- a/deploy/adapters/ansible/roles/openstack-post/tasks/main.yml +++ b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml diff --git a/deploy/adapters/ansible/roles/openstack-post/vars/main.yml b/deploy/adapters/ansible/roles/post-openstack/vars/main.yml index d9c36d42..d9c36d42 100644 --- a/deploy/adapters/ansible/roles/openstack-post/vars/main.yml +++ b/deploy/adapters/ansible/roles/post-openstack/vars/main.yml diff --git a/deploy/adapters/ansible/roles/pre-prepare/files/centos_base.repo b/deploy/adapters/ansible/roles/pre-openstack/files/centos_base.repo index ba768e0a..ba768e0a 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/files/centos_base.repo +++ b/deploy/adapters/ansible/roles/pre-openstack/files/centos_base.repo diff --git a/deploy/adapters/ansible/roles/pre-prepare/files/modules b/deploy/adapters/ansible/roles/pre-openstack/files/modules index c73925e6..c73925e6 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/files/modules +++ b/deploy/adapters/ansible/roles/pre-openstack/files/modules diff --git a/deploy/adapters/ansible/roles/pre-prepare/tasks/RedHat.yml b/deploy/adapters/ansible/roles/pre-openstack/tasks/RedHat.yml index 5456c9fc..5456c9fc 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/tasks/RedHat.yml +++ b/deploy/adapters/ansible/roles/pre-openstack/tasks/RedHat.yml diff --git a/deploy/adapters/ansible/roles/pre-prepare/tasks/Ubuntu.yml b/deploy/adapters/ansible/roles/pre-openstack/tasks/Ubuntu.yml index a0f7d015..a0f7d015 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/tasks/Ubuntu.yml +++ b/deploy/adapters/ansible/roles/pre-openstack/tasks/Ubuntu.yml diff --git a/deploy/adapters/ansible/roles/pre-prepare/tasks/main.yml b/deploy/adapters/ansible/roles/pre-openstack/tasks/main.yml index 76203440..76203440 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/tasks/main.yml +++ b/deploy/adapters/ansible/roles/pre-openstack/tasks/main.yml diff --git a/deploy/adapters/ansible/roles/common/templates/hosts b/deploy/adapters/ansible/roles/pre-openstack/templates/hosts index bb770d5b..bb770d5b 100644 --- a/deploy/adapters/ansible/roles/common/templates/hosts +++ b/deploy/adapters/ansible/roles/pre-openstack/templates/hosts diff --git a/deploy/adapters/ansible/roles/pre-prepare/templates/sources.list b/deploy/adapters/ansible/roles/pre-openstack/templates/sources.list index 799e4b58..799e4b58 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/templates/sources.list +++ b/deploy/adapters/ansible/roles/pre-openstack/templates/sources.list diff --git a/deploy/adapters/ansible/roles/pre-prepare/vars/main.yml b/deploy/adapters/ansible/roles/pre-openstack/vars/main.yml index f44a9f9f..f44a9f9f 100644 --- a/deploy/adapters/ansible/roles/pre-prepare/vars/main.yml +++ b/deploy/adapters/ansible/roles/pre-openstack/vars/main.yml diff --git a/deploy/adapters/ansible/roles/setup-openvswitch/tasks/main.yml b/deploy/adapters/ansible/roles/setup-openvswitch/tasks/main.yml index efe8745b..f636ed10 100644 --- a/deploy/adapters/ansible/roles/setup-openvswitch/tasks/main.yml +++ b/deploy/adapters/ansible/roles/setup-openvswitch/tasks/main.yml @@ -12,3 +12,5 @@ cd /opt/openstack-ansible/playbooks; \ openstack-ansible setup-ovs.yml \ | tee -a /var/log/osa/ovs.log > /dev/null" + when: NEUTRON_MECHANISM_DRIVERS[0] == "openvswitch" or \ + NEUTRON_MECHANISM_DRIVERS[0] == "opendaylight" |