diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2016-03-04 03:32:34 -0500 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2016-03-04 03:37:36 -0500 |
commit | 77d64aa555766419280019f0e66bcf6d6cd70a7a (patch) | |
tree | 347b1b16d9521bb9105238af11a7e93054d87ab6 /deploy/adapters/ansible/roles/odl_cluster_post | |
parent | b54d021a617657a52308d66b2a47e15c17e96f70 (diff) |
Support odl l2 on centos7
JIRA:COMPASS-331
- support odl l2 on centos7
Change-Id: Ibdf2840a7eb393ebf7f5d44aac80d6026a514588
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster_post')
-rwxr-xr-x | deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml b/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml index 8432186c..19e99e82 100755 --- a/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml +++ b/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml @@ -1,4 +1,26 @@ --- +- name: restart neutron-server + service: name=neutron-server state=restarted enabled=yes + when: inventory_hostname in groups['odl'] + +- name: add service daemon + shell: > + echo keepalived >> /opt/service ; + echo neutron-server >> /opt/service ; + when: inventory_hostname in groups['odl'] + +- name: restart neutron-l3-agent server + service: name=neutron-l3-agent state=restarted + when: inventory_hostname in groups['odl'] + +- name: restart neutron-dhcp-agent server + service: name=neutron-dhcp-agent state=restarted + when: inventory_hostname in groups['odl'] + +- name: restart neutron-metadata-agent server + service: name=neutron-metadata-agent state=restarted + when: inventory_hostname in groups['odl'] + - name: restart opendaylight shell: sleep 60; service opendaylight restart; sleep 300; when: inventory_hostname in groups['odl'] |