From 03161921e2a0728d0a7e0a604b6744cbb621e337 Mon Sep 17 00:00:00 2001 From: Ruchira Agarwal Date: Tue, 24 Apr 2018 17:30:06 +0000 Subject: LCM Ansible Server Docker Add CM Ansible Server Docker Container Change-Id: I673cfd6dce5d2e96954fc6700a12a849f46dae5a Issue-ID: SDNC-288 Signed-off-by: Ruchira Agarwal Former-commit-id: c051fe64ed0ddd6aeb26f8b2af9adfe7011a4dc0 --- .../ansible-server/src/main/yml/Ansible_inventory | 27 ++++++++++++++ .../src/main/yml/ansible_postcheck@0.00.yml | 6 ++++ .../src/main/yml/ansible_precheck@0.00.yml | 6 ++++ .../src/main/yml/ansible_pyver@0.00.yml | 6 ++++ .../src/main/yml/ansible_sleep@0.00.yml | 42 ++++++++++++++++++++++ .../src/main/yml/ansible_upgradesw@0.00.yml | 17 +++++++++ 6 files changed, 104 insertions(+) create mode 100644 installation/ansible-server/src/main/yml/Ansible_inventory create mode 100644 installation/ansible-server/src/main/yml/ansible_postcheck@0.00.yml create mode 100644 installation/ansible-server/src/main/yml/ansible_precheck@0.00.yml create mode 100644 installation/ansible-server/src/main/yml/ansible_pyver@0.00.yml create mode 100644 installation/ansible-server/src/main/yml/ansible_sleep@0.00.yml create mode 100644 installation/ansible-server/src/main/yml/ansible_upgradesw@0.00.yml (limited to 'installation/ansible-server/src/main/yml') diff --git a/installation/ansible-server/src/main/yml/Ansible_inventory b/installation/ansible-server/src/main/yml/Ansible_inventory new file mode 100644 index 00000000..69df84ff --- /dev/null +++ b/installation/ansible-server/src/main/yml/Ansible_inventory @@ -0,0 +1,27 @@ +# /*- +# * ============LICENSE_START======================================================= +# * ONAP : APPC +# * ================================================================================ +# * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# * ================================================================================ +# * Copyright (C) 2017 Amdocs +# * ============================================================================= +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# * +# * ECOMP is a trademark and service mark of AT&T Intellectual Property. +# * ============LICENSE_END========================================================= +# */ + +[host] +localhost ansible_connection=local + diff --git a/installation/ansible-server/src/main/yml/ansible_postcheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_postcheck@0.00.yml new file mode 100644 index 00000000..199bc50c --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_postcheck@0.00.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + tasks: + - name: check the vpp version + shell: vppctl show version | grep v17.07.01-release + become: true diff --git a/installation/ansible-server/src/main/yml/ansible_precheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_precheck@0.00.yml new file mode 100644 index 00000000..e596aa29 --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_precheck@0.00.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + tasks: + - name: check the vpp version + shell: vppctl show version | grep v17.04.2-release + become: true diff --git a/installation/ansible-server/src/main/yml/ansible_pyver@0.00.yml b/installation/ansible-server/src/main/yml/ansible_pyver@0.00.yml new file mode 100644 index 00000000..ad90e54b --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_pyver@0.00.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + tasks: + - name: check the python version + shell: python --version 2>&1 | grep 2.7.12 + become: true diff --git a/installation/ansible-server/src/main/yml/ansible_sleep@0.00.yml b/installation/ansible-server/src/main/yml/ansible_sleep@0.00.yml new file mode 100644 index 00000000..aba2919e --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_sleep@0.00.yml @@ -0,0 +1,42 @@ +# /*- +# * ============LICENSE_START======================================================= +# * ONAP : APPC +# * ================================================================================ +# * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# * ================================================================================ +# * Copyright (C) 2017 Amdocs +# * ============================================================================= +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# * +# * ECOMP is a trademark and service mark of AT&T Intellectual Property. +# * ============LICENSE_END========================================================= +# */ + +- hosts: all + + # Mandatory: + vars: + sleep_time: "{{Sleep|default(10)}}" + + tasks: + + - debug: + msg: "Sleep time: {{ sleep_time }}" + + - name: sleep + shell: sleep {{ sleep_time }} + + + - debug: + msg: "Done" + diff --git a/installation/ansible-server/src/main/yml/ansible_upgradesw@0.00.yml b/installation/ansible-server/src/main/yml/ansible_upgradesw@0.00.yml new file mode 100644 index 00000000..886705db --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_upgradesw@0.00.yml @@ -0,0 +1,17 @@ +--- +- hosts: all + tasks: + - name: add fd.io repository + lineinfile: + path: /etc/apt/sources.list.d/99fd.io.list + state: present + create: yes + regexp: 'fd.io.stable.1707' + line: 'deb [trusted=yes] https://nexus.fd.io/content/repositories/fd.io.stable.1707.ubuntu.xenial.main/ ./' + become: true + - name: upgrade vpp software + apt: + name: vpp + state: latest + update_cache: yes + become: true -- cgit 1.2.3-korg