summaryrefslogtreecommitdiffstats
path: root/opt/infra/roles
diff options
context:
space:
mode:
Diffstat (limited to 'opt/infra/roles')
-rw-r--r--opt/infra/roles/docker/handlers/main.yml8
-rw-r--r--opt/infra/roles/docker/tasks/main.yml8
-rw-r--r--opt/infra/roles/elk/tasks/main.yml8
-rw-r--r--opt/infra/roles/mongo/tasks/main.yml8
-rw-r--r--opt/infra/roles/nginx/defaults/main.yml8
-rw-r--r--opt/infra/roles/nginx/handlers/main.yml8
-rw-r--r--opt/infra/roles/nginx/tasks/main.yml8
-rw-r--r--opt/infra/roles/qtip/tasks/main.yml8
-rw-r--r--opt/infra/roles/testapi/tasks/main.yml8
-rw-r--r--opt/infra/roles/user/defaults/main.yml8
-rw-r--r--opt/infra/roles/user/tasks/main.yml8
11 files changed, 88 insertions, 0 deletions
diff --git a/opt/infra/roles/docker/handlers/main.yml b/opt/infra/roles/docker/handlers/main.yml
index 985f8d41..dddbdc6b 100644
--- a/opt/infra/roles/docker/handlers/main.yml
+++ b/opt/infra/roles/docker/handlers/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: starting docker service
become: true
diff --git a/opt/infra/roles/docker/tasks/main.yml b/opt/infra/roles/docker/tasks/main.yml
index 1cf3bea0..6cf0a6b5 100644
--- a/opt/infra/roles/docker/tasks/main.yml
+++ b/opt/infra/roles/docker/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: adding keys
become: true
apt_key: keyserver=hkp://p80.pool.sks-keyservers.net id=0X58118E89F3A912897C070ADBF76221572C52609D
diff --git a/opt/infra/roles/elk/tasks/main.yml b/opt/infra/roles/elk/tasks/main.yml
index ed987f1a..12bc7bf6 100644
--- a/opt/infra/roles/elk/tasks/main.yml
+++ b/opt/infra/roles/elk/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: pulling elasticsearch and kibana
become: true
diff --git a/opt/infra/roles/mongo/tasks/main.yml b/opt/infra/roles/mongo/tasks/main.yml
index 81fb49b5..daa2b519 100644
--- a/opt/infra/roles/mongo/tasks/main.yml
+++ b/opt/infra/roles/mongo/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: pulling mongo
become: true
diff --git a/opt/infra/roles/nginx/defaults/main.yml b/opt/infra/roles/nginx/defaults/main.yml
index cdd1d773..9cd8a7b5 100644
--- a/opt/infra/roles/nginx/defaults/main.yml
+++ b/opt/infra/roles/nginx/defaults/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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
+##############################################################################
---
services:
- { name: kibana, upstream: 'http://127.0.0.1:5601' }
diff --git a/opt/infra/roles/nginx/handlers/main.yml b/opt/infra/roles/nginx/handlers/main.yml
index 35585363..8bbd88c9 100644
--- a/opt/infra/roles/nginx/handlers/main.yml
+++ b/opt/infra/roles/nginx/handlers/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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 nginx
become: true
diff --git a/opt/infra/roles/nginx/tasks/main.yml b/opt/infra/roles/nginx/tasks/main.yml
index 5c78166c..99e5678e 100644
--- a/opt/infra/roles/nginx/tasks/main.yml
+++ b/opt/infra/roles/nginx/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: nginx is installed
become: true
diff --git a/opt/infra/roles/qtip/tasks/main.yml b/opt/infra/roles/qtip/tasks/main.yml
index b8292791..cbbde6cb 100644
--- a/opt/infra/roles/qtip/tasks/main.yml
+++ b/opt/infra/roles/qtip/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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
+##############################################################################
---
# TODO:change the script to docker_container.
- name: setting up qtip
diff --git a/opt/infra/roles/testapi/tasks/main.yml b/opt/infra/roles/testapi/tasks/main.yml
index 8ca91396..5ff176b6 100644
--- a/opt/infra/roles/testapi/tasks/main.yml
+++ b/opt/infra/roles/testapi/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: setting up testapi
become: true
diff --git a/opt/infra/roles/user/defaults/main.yml b/opt/infra/roles/user/defaults/main.yml
index ef496dd4..90e56b0b 100644
--- a/opt/infra/roles/user/defaults/main.yml
+++ b/opt/infra/roles/user/defaults/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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
+##############################################################################
---
users:
- { name: yujunz, comment: "Yujun Zhang <zhang.yujunz@zte.com.cn>" }
diff --git a/opt/infra/roles/user/tasks/main.yml b/opt/infra/roles/user/tasks/main.yml
index b1b5be9b..bb4ca141 100644
--- a/opt/infra/roles/user/tasks/main.yml
+++ b/opt/infra/roles/user/tasks/main.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation 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: add group qtip
become: true
group: name=qtip state=present