Resolve yamllint issues 89/81989/1
authorThanh Ha <zxiiro@gmail.com>
Sat, 11 May 2019 00:12:45 +0000 (20:12 -0400)
committerThanh Ha <zxiiro@gmail.com>
Sat, 11 May 2019 00:21:26 +0000 (20:21 -0400)
* Truthiness values should be true|false
* Document start should being with '---'
* Improper indentation
* Ignore line-length for packer as URL gets can be long

Change-Id: I8375f8bbf486a22677e354189148786d7d5126be
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
docs/conf.yaml
jjb/netconf/netconf-scale.yaml
jjb/releng-packer-jobs.yaml
packer/provision/examples/apache-e-w.yaml
packer/provision/examples/apache-n-s.yaml
packer/provision/examples/apache-pod.yaml
packer/provision/examples/busybox.yaml
packer/provision/examples/nginx-pod.yaml
packer/provision/mininet-ovs-2.8.yaml
packer/provision/robot.yaml
yamllint.conf

index 35bb427403be01eba8a55afe42c002b053453f8f..7498f18728e74cfaa55a0def75531e1c02a62728 100644 (file)
@@ -1,2 +1,3 @@
+---
 project_cfg: opendaylight
 project: releng/builder
index 8c27672cfc128c7b37de097050a5c903b9f11114..2204b211ba2e92c38afe98a84a49fe2dac026ba8 100644 (file)
     odl_system_flavor: odl-standard-4
 
 - project:
-      name: netconf-csit-scale-max-devices
-      jobs:
-          - inttest-csit-1node
-
-      # The project name
-      project: 'netconf'
-
-      # The functionality under test
-      functionality: 'scale-max-devices'
-
-      # Project branches
-      stream:
-          - sodium:
-                branch: 'master'
-          - neon:
-                branch: 'stable/neon'
-          - fluorine:
-                branch: 'stable/fluorine'
-
-      install:
-          - only:
-                scope: 'only'
-
-      # Features to install
-      install-features: >
-          odl-restconf,
-          odl-clustering-test-app,
-          odl-netconf-mdsal,
-          odl-netconf-topology,
-          odl-jolokia,
-          decanter-collector-jmx,
-          decanter-appender-elasticsearch
-
-      # Robot custom options
-      robot-options: '-v USE_NETCONF_CONNECTOR:False'
-
-      # ODL system configuration
-      odl_system_flavor: odl-standard-8
-
-      # Plot Info
-      01-plot-title: 'Max Devices'
-      01-plot-yaxis: 'Devices'
-      01-plot-group: 'Netconf Devices'
-      01-plot-data-file: 'devices.csv'
+    name: netconf-csit-scale-max-devices
+    jobs:
+      - inttest-csit-1node
+
+    # The project name
+    project: 'netconf'
+
+    # The functionality under test
+    functionality: 'scale-max-devices'
+
+    # Project branches
+    stream:
+      - sodium:
+          branch: 'master'
+      - neon:
+          branch: 'stable/neon'
+      - fluorine:
+          branch: 'stable/fluorine'
+
+    install:
+      - only:
+          scope: 'only'
+
+    # Features to install
+    install-features: >
+        odl-restconf,
+        odl-clustering-test-app,
+        odl-netconf-mdsal,
+        odl-netconf-topology,
+        odl-jolokia,
+        decanter-collector-jmx,
+        decanter-appender-elasticsearch
+
+    # Robot custom options
+    robot-options: '-v USE_NETCONF_CONNECTOR:False'
+
+    # ODL system configuration
+    odl_system_flavor: odl-standard-8
+
+    # Plot Info
+    01-plot-title: 'Max Devices'
+    01-plot-yaxis: 'Devices'
+    01-plot-group: 'Netconf Devices'
+    01-plot-data-file: 'devices.csv'
index e78f608c9f181f16fca6e5d269884bac82e952ca..8ee10a8d71f7e7e44ba828688a16dbf09cdd3e0a 100644 (file)
     templates: devstack-pre-pip-queens
 
 - project:
-        name: packer-devstack-pre-pip-rocky-jobs
-        jobs:
-            - gerrit-packer-merge
+    name: packer-devstack-pre-pip-rocky-jobs
+    jobs:
+      - gerrit-packer-merge
 
-        project: releng/builder
-        project-name: builder
-        branch: master
-        archive-artifacts: '**/*.log'
+    project: releng/builder
+    project-name: builder
+    branch: master
+    archive-artifacts: '**/*.log'
 
-        build-node: centos7-builder-2c-1g
-        build-timeout: 75
-        cron: '00 H 1 * *'
+    build-node: centos7-builder-2c-1g
+    build-timeout: 75
+    cron: '00 H 1 * *'
 
-        platforms: centos-7
-        templates: devstack-pre-pip-rocky
+    platforms: centos-7
+    templates: devstack-pre-pip-rocky
 
 - project:
     name: packer-docker-jobs
index bb84fa1b9de83b30483908c33357f55dea1b8386..66e3ba5201375be36d71cdd3dde8fa6f6d7c8a2c 100644 (file)
@@ -1,3 +1,4 @@
+---
 apiVersion: v1
 kind: Service
 metadata:
index 7b774e4041e4cd94b8a1968693da383aed52b73f..e99b52c3419d11a15307cab4c6887583eddce5e7 100644 (file)
@@ -1,3 +1,4 @@
+---
 apiVersion: v1
 kind: Service
 metadata:
index cb97d1359a77d90e200c857d1d64b0b2bd9d1ad5..a4a01a86bdf3d05ab6597e4cf109a407de099eb0 100644 (file)
@@ -1,3 +1,4 @@
+---
 apiVersion: v1
 kind: Pod
 metadata:
@@ -6,5 +7,5 @@ metadata:
     name: webserver
 spec:
   containers:
-  - name: apachetwin
-    image: fedora/apache
+    - name: apachetwin
+      image: fedora/apache
index babb7652f557b329aeab100b1210f8a232479c99..a0131574431cdafabc8bad3a240a52f4a7f21fa2 100644 (file)
@@ -1,3 +1,4 @@
+---
 apiVersion: v1
 kind: Pod
 metadata:
@@ -5,10 +6,10 @@ metadata:
   namespace: default
 spec:
   containers:
-  - image: busybox
-    command:
-      - sleep
-      - "3600"
-    imagePullPolicy: IfNotPresent
-    name: busybox
+    - image: busybox
+      command:
+        - sleep
+        - "3600"
+      imagePullPolicy: IfNotPresent
+      name: busybox
   restartPolicy: Always
index d72959ee7da73cd4ece7f4a3d37ca43635a1d1e9..779775abcecd2ce5fc476ed2f660965435903d47 100644 (file)
@@ -1,3 +1,4 @@
+---
 apiVersion: v1
 kind: Pod
 metadata:
@@ -6,5 +7,5 @@ metadata:
     name: webserver
 spec:
   containers:
-  - name: nginxtwin
-    image: nginx
+    - name: nginxtwin
+      image: nginx
index be38c19c27bba4768de2da3eeec77c50a41ea217..dbd77846599b87864d2ea72b9fbbbca854253a34 100644 (file)
             dest: /usr/local/bin/cbench
             mode: 0755
             owner: root
-            remote_src: yes
+            remote_src: true
           become: true
 
     - name: Install exabgp
index 600fca12f09f8de9f78ef5b2d99cc87717d7f369..eb76e7b2acedadb618f7bd5b5fea74ab33220985 100644 (file)
@@ -67,8 +67,8 @@
                 dest: /usr/local/bin/udpreplay
                 mode: 0755
                 owner: root
-                remote_src: yes
-              become: yes
+                remote_src: true
+              become: true
 
   post_tasks:
     - name: System Reseal
index 32d76ab6ea39853b71b2bffaf3208dbabd1326b7..fe0c97dcbc8087df98101209dd43688af70570c9 100644 (file)
@@ -1,3 +1,4 @@
+---
 extends: default
 
 rules:
@@ -5,4 +6,6 @@ rules:
     max-end: 1
   line-length:
     max: 120
+    ignore: |
+      packer