aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-01-06 10:58:12 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-01-12 19:54:17 +0800
commit09ca28954c94fd9d9336b5fe2a688d2c2d27955b (patch)
tree4629b36323392678849ecfd51a115a79cf6feeae /deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml
parente45503dc52311ffa7ddb5fb7b25caac1f8743de5 (diff)
Upgrade OpenDaylight to Boron ( l2 scenario )
JIRA: COMPASS-512 1. Use package distribution-karaf-0.5.0-Boron.tar.gz 2. Use package networking-odl-3.2.0.tar.gz 3. Set both neutron and odl as ovs manager Change-Id: I126ba21346afaaccf1f71a17a500146968bdb4eb Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml')
-rw-r--r--deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml65
1 files changed, 0 insertions, 65 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml
deleted file mode 100644
index ec05f6ce..00000000
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/moon-odl.yml
+++ /dev/null
@@ -1,65 +0,0 @@
-##############################################################################
-# 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
-##############################################################################
----
-
-- name: delete data journal snapshots
- shell: rm -rf {{ odl_home }}/{{ item }}
- with_items:
- - journal
- - data
- - snapshots
-
-- name: remove aaa feature
- shell: rm -rf {{ odl_home }}/system/org/opendaylight/aaa/
-
-- name: download apache maven package file
- get_url:
- url: "http://{{ http_server.stdout_lines[0] }}/packages/moon/apache-maven-3.3.9-bin.tar.gz"
- dest: /opt/apache-maven-3.3.9-bin.tar.gz
-
-- name: create maven folder
- shell: mkdir -p /opt/apache-maven-3.3.9/
-
-- name: extract maven
- command: |
- su -s /bin/sh -c "tar zxf /opt/apache-maven-3.3.9-bin.tar.gz -C \
- /opt/apache-maven-3.3.9/ --strip-components 1 --no-overwrite-dir -k \
- --skip-old-files" root
-
-- name: install maven
- shell: ln -s /opt/apache-maven-3.3.9/bin/mvn /usr/local/bin/mvn;
-
-- name: create m2 directory
- file: path=/root/.m2/ state=directory mode=0755
-
-- name: copy settings.xml
- template: src=settings.xml dest=/root/.m2/settings.xml
-
-- name: download odl-aaa-moon package
- get_url:
- url: "http://{{ http_server.stdout_lines[0] }}/packages/moon/{{ odl_aaa_moon }}"
- dest: /home/
-
-- name: unarchive odl-aaa-moon package
- command: su -s /bin/sh -c "tar xvf /home/{{ odl_aaa_moon }} -C /home/"
-
-- name: install aaa
- shell: >
- export PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin:/opt/apache-maven-3.3.3/bin;
- export JAVA_HOME="/usr/lib/jvm/java-8-oracle";
- export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true";
- export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m";
- cd /home/odl-aaa-moon/aaa/;
- mvn clean install -DskipTests;
-
-- name: remove shiro ini
- shell: rm -f {{ odl_home }}/etc/shiro.ini
-
-- name: set moon env
- template: src=moon-environment dest=/opt/moon-environment