From b43e48e988a8eb28ac4ea43176a22413a19c0599 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Fri, 29 Jan 2016 17:01:14 +0800 Subject: add apache2 headers for shell scripts and ansible scripts Change-Id: I34b66d76f59f4300c7ce4e7bd9dc7c1eaddfb384 Signed-off-by: carey.xu --- deploy/adapters/ansible/roles/onos_cluster/handlers/main.yml | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/tasks/main.yml | 8 ++++++++ .../adapters/ansible/roles/onos_cluster/tasks/onos_controller.yml | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/templates/ml2_conf.sh | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/vars/Debian.yml | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/vars/RedHat.yml | 8 ++++++++ deploy/adapters/ansible/roles/onos_cluster/vars/main.yml | 8 ++++++++ 8 files changed, 64 insertions(+) (limited to 'deploy/adapters/ansible/roles/onos_cluster') diff --git a/deploy/adapters/ansible/roles/onos_cluster/handlers/main.yml b/deploy/adapters/ansible/roles/onos_cluster/handlers/main.yml index c8742dd5..e099fcf4 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/handlers/main.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/handlers/main.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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: restart onos service service: name=onos state=restarted enabled=yes diff --git a/deploy/adapters/ansible/roles/onos_cluster/tasks/main.yml b/deploy/adapters/ansible/roles/onos_cluster/tasks/main.yml index 77e06586..64fff472 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/tasks/main.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/tasks/main.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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 +############################################################################## --- - include_vars: "{{ ansible_os_family }}.yml" diff --git a/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_controller.yml b/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_controller.yml index c22ba7cc..6d62a2e9 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_controller.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_controller.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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: upload onos driver package unarchive: src=networking-onos.tar dest=/opt/ diff --git a/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml index 0e7c0eb6..9761af71 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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: remove neutron-plugin-openvswitch-agent auto start # shell: > diff --git a/deploy/adapters/ansible/roles/onos_cluster/templates/ml2_conf.sh b/deploy/adapters/ansible/roles/onos_cluster/templates/ml2_conf.sh index a9e61acb..8af03df4 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/templates/ml2_conf.sh +++ b/deploy/adapters/ansible/roles/onos_cluster/templates/ml2_conf.sh @@ -1,3 +1,11 @@ +############################################################################## +# 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 +############################################################################## cat <> /etc/neutron/plugins/ml2/ml2_conf.ini [onos] password = admin diff --git a/deploy/adapters/ansible/roles/onos_cluster/vars/Debian.yml b/deploy/adapters/ansible/roles/onos_cluster/vars/Debian.yml index 70ce4ef2..59a4dbd9 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/vars/Debian.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/vars/Debian.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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 +############################################################################## --- packages: - software-properties-common diff --git a/deploy/adapters/ansible/roles/onos_cluster/vars/RedHat.yml b/deploy/adapters/ansible/roles/onos_cluster/vars/RedHat.yml index 70ce4ef2..59a4dbd9 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/vars/RedHat.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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 +############################################################################## --- packages: - software-properties-common diff --git a/deploy/adapters/ansible/roles/onos_cluster/vars/main.yml b/deploy/adapters/ansible/roles/onos_cluster/vars/main.yml index f083a89c..1cbc070d 100755 --- a/deploy/adapters/ansible/roles/onos_cluster/vars/main.yml +++ b/deploy/adapters/ansible/roles/onos_cluster/vars/main.yml @@ -1,3 +1,11 @@ +############################################################################## +# 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 +############################################################################## onos_pkg_url: http://downloads.onosproject.org/release/onos-1.3.0.tar.gz onos_pkg_name: onos-1.3.0.tar.gz onos_home: /opt/onos/ -- cgit 1.2.3-korg