aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-09-24 13:18:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-24 13:18:08 +0000
commitb15fd5c475c001a76d66a75b1b788e53b6950797 (patch)
tree9239d8a6d6a444ed88238c6487a18b8e0aa92388 /installation
parent8dd85b45ef44aa2be93d2826337a09d4938c3c9b (diff)
parent6b92025e3a0a1a37b349bc5c0ed99ae753add4e3 (diff)
Merge "CCSDK-464"
Former-commit-id: f9d589c3b3cd9974edfeee2dbaebd256c7634db1
Diffstat (limited to 'installation')
-rw-r--r--installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml21
-rw-r--r--installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml21
-rw-r--r--installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml21
3 files changed, 63 insertions, 0 deletions
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml
new file mode 100644
index 00000000..975887d7
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml
@@ -0,0 +1,21 @@
+---
+- hosts: all
+ tasks:
+ - name: create a temporary file for additional data
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: touch
+ become: true
+
+ - name: prepare additional data
+ shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
+ become: true
+
+ - name: execute post-check operation
+ shell: ./swm/upgrade-post-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}
+
+ - name: remove the temporary file
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: absent
+ become: true
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml
new file mode 100644
index 00000000..651974f8
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml
@@ -0,0 +1,21 @@
+---
+- hosts: all
+ tasks:
+ - name: create a temporary file for additional data
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: touch
+ become: true
+
+ - name: prepare additional data
+ shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
+ become: true
+
+ - name: execute pre-check operation
+ shell: ./swm/upgrade-pre-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}
+
+ - name: remove the temporary file
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: absent
+ become: true
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml
new file mode 100644
index 00000000..ac2c4054
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml
@@ -0,0 +1,21 @@
+---
+- hosts: all
+ tasks:
+ - name: create a temporary file for additional data
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: touch
+ become: true
+
+ - name: prepare additional data
+ shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
+ become: true
+
+ - name: execute upgrade software operation
+ shell: ./swm/upgrade-software.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} /tmp/tmp-{{Id}}
+
+ - name: remove the temporary file
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: absent
+ become: true