aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-26 14:22:02 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-26 14:22:02 +0100
commit6305603f8cb54c28e93a7e4bfad265723638299c (patch)
tree02290b9e1b3fb8d637c1eda71c541b3c768f3e5b
parentf11447d127d21dd56b302fe1014f4801d32511c5 (diff)
Fix spacing issues in YAML files in tutorials/
Fixes applied as reported by yamllint. Change-Id: I6f5ddce18c7a29bbbf3c973d1fd34ba308ec5616 Issue-ID: INT-1482 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r--tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml5
-rwxr-xr-xtutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml4
-rwxr-xr-xtutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml4
-rwxr-xr-xtutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml8
-rw-r--r--tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml5
-rw-r--r--tutorials/vFWDT/policies/types/affinityPolicy-v20181031.yml6
-rw-r--r--tutorials/vFWDT/policies/types/queryPolicy-v20181031.yml2
-rw-r--r--tutorials/vFWDT/policies/types/vnfPolicy-v20181031.yml6
8 files changed, 19 insertions, 21 deletions
diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml
index 04c80ea1..5eb72143 100644
--- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml
+++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml
@@ -22,7 +22,7 @@
register: fw_ppnet_iface
- name: Traffic check if trafficpresence is TRUE
- when: trafficpresence == true
+ when: trafficpresence == true
block:
- name: Traffic check if trafficpresence is TRUE
raw: |
@@ -59,7 +59,7 @@
when: traffic_check.rc == 0
- name: Traffic check if trafficpresence is FALSE
- when: trafficpresence == false
+ when: trafficpresence == false
block:
- name: Traffic check trafficpresence is FALSE
raw: |
@@ -92,4 +92,3 @@
msg: 'traffic present {{ traffic_check.stdout_lines }} '
when: traffic_check.rc == 1
failed_when: traffic_check.rc == 1
-
diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml
index 6d6d51b6..559420a8 100755
--- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml
+++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml
@@ -4,9 +4,9 @@
remote_user: ubuntu
tasks:
- debug: var="new_software_version"
- failed_when: new_software_version is not defined
+ failed_when: new_software_version is not defined
- debug: var="existing_software_version"
- failed_when: existing_software_version is not defined
+ failed_when: existing_software_version is not defined
- name: Read OLD Software Version
shell: cat /opt/config/version.txt
register: old_version
diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml
index 05da22a7..2ad56da7 100755
--- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml
+++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml
@@ -4,9 +4,9 @@
remote_user: ubuntu
tasks:
- debug: var="new_software_version"
- failed_when: new_software_version is not defined
+ failed_when: new_software_version is not defined
- debug: var="existing_software_version"
- failed_when: existing_software_version is not defined
+ failed_when: existing_software_version is not defined
- name: Read OLD Software Version
shell: cat /opt/config/version.txt
register: old_version
diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml
index 1a11f082..52ddd1bf 100755
--- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml
+++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml
@@ -4,9 +4,9 @@
remote_user: ubuntu
tasks:
- debug: var="new_software_version"
- failed_when: new_software_version is not defined
+ failed_when: new_software_version is not defined
- debug: var="existing_software_version"
- failed_when: existing_software_version is not defined
+ failed_when: existing_software_version is not defined
- name: Read OLD Software Version
shell: cat /opt/config/version.txt
register: old_version
@@ -16,8 +16,8 @@
- name: Update Software
shell: apt-get -y --force-yes -u update
args:
- warn: no
- - name: Upgrade Version
+ warn: no
+ - name: Upgrade Version
shell: echo {{new_software_version}} > /opt/config/version.txt
- debug:
msg: Software version has been upgraded to {{new_software_version}}
diff --git a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml
index c6845dce..665619ab 100644
--- a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml
+++ b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml
@@ -88,7 +88,7 @@
debug: msg='interface_name {{ interface_name.stdout }}'
- name: Traffic check if trafficpresence is TRUE
- when: trafficpresence == true
+ when: trafficpresence == true
block:
- name: Traffic check if trafficpresence is TRUE
raw: |
@@ -119,7 +119,7 @@
when: traffic_check.rc == 0
- name: Traffic check if trafficpresence is FALSE
- when: trafficpresence == false
+ when: trafficpresence == false
block:
- name: Traffic check trafficpresence is FALSE
raw: |
@@ -148,4 +148,3 @@
msg: 'traffic present {{ traffic_check.stdout_lines }} traffic_check.rc {{ traffic_check.rc }}'
when: traffic_check.rc == 0
failed_when: traffic_check.rc == 0
-
diff --git a/tutorials/vFWDT/policies/types/affinityPolicy-v20181031.yml b/tutorials/vFWDT/policies/types/affinityPolicy-v20181031.yml
index 89a3e9d5..e28ac313 100644
--- a/tutorials/vFWDT/policies/types/affinityPolicy-v20181031.yml
+++ b/tutorials/vFWDT/policies/types/affinityPolicy-v20181031.yml
@@ -18,7 +18,7 @@ node_types:
entry_schema:
type: string
consraints:
- - valid_values:
+ - valid_values:
- zone
identity:
type: string
@@ -29,7 +29,7 @@ node_types:
entry_schema:
type: string
constraints:
- - valid_values:
+ - valid_values:
- any
- all
affinityProperties:
@@ -50,7 +50,7 @@ data_types:
entry_schema:
type: string
constraints:
- - valid_values:
+ - valid_values:
- same
- different
category:
diff --git a/tutorials/vFWDT/policies/types/queryPolicy-v20181031.yml b/tutorials/vFWDT/policies/types/queryPolicy-v20181031.yml
index 09824db9..6fb6c8c2 100644
--- a/tutorials/vFWDT/policies/types/queryPolicy-v20181031.yml
+++ b/tutorials/vFWDT/policies/types/queryPolicy-v20181031.yml
@@ -18,7 +18,7 @@ node_types:
entry_schema:
type: string
consraints:
- - valid_values:
+ - valid_values:
- request_param_query
identity:
type: string
diff --git a/tutorials/vFWDT/policies/types/vnfPolicy-v20181031.yml b/tutorials/vFWDT/policies/types/vnfPolicy-v20181031.yml
index 4ce3b9fb..5a4dfd94 100644
--- a/tutorials/vFWDT/policies/types/vnfPolicy-v20181031.yml
+++ b/tutorials/vFWDT/policies/types/vnfPolicy-v20181031.yml
@@ -18,7 +18,7 @@ node_types:
entry_schema:
type: string
consraints:
- - valid_values:
+ - valid_values:
- vnfPolicy
identity:
type: string
@@ -34,7 +34,7 @@ node_types:
entry_schema:
type: string
constraints:
- - valid_values:
+ - valid_values:
- any
- all
vnfProperties:
@@ -58,7 +58,7 @@ data_types:
entry_schema:
type: string
constraints:
- - valid_values:
+ - valid_values:
- serviceInstanceId
- vnfName
- cloudRegionId