Fixing YAML formatting and adding Make target to lint files
Change-Id: I15104c2e39c4ae4e088a52758a26221b77f68dfb
diff --git a/.yamllint b/.yamllint
new file mode 100644
index 0000000..23c6722
--- /dev/null
+++ b/.yamllint
@@ -0,0 +1,11 @@
+---
+
+yaml-files:
+ - '*.yaml'
+ - '*.yml'
+ - '.yamllint'
+
+rules:
+ document-start: disable
+ line-length:
+ max: 160
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3eccc39
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+# SPDX-FileCopyrightText: 2022-present Intel Corporation
+#
+# SPDX-License-Identifier: Apache-2.0
+
+test: yaml-lint
+
+yaml-lint:
+ifeq (, $(shell which yamllint))
+ $(error "Please install yamllint to run linting")
+endif
+ yamllint -c .yamllint .
diff --git a/deployment-configs/onf-soak-pod-DT.yaml b/deployment-configs/onf-soak-pod-DT.yaml
index 310fa37..2c9ac27 100644
--- a/deployment-configs/onf-soak-pod-DT.yaml
+++ b/deployment-configs/onf-soak-pod-DT.yaml
@@ -90,7 +90,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f0
@@ -103,7 +103,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f0
diff --git a/deployment-configs/onf-soak-pod-openonugo.yaml b/deployment-configs/onf-soak-pod-openonugo.yaml
index 7a523df..d79164e 100644
--- a/deployment-configs/onf-soak-pod-openonugo.yaml
+++ b/deployment-configs/onf-soak-pod-openonugo.yaml
@@ -84,7 +84,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f1
@@ -97,7 +97,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f1
diff --git a/deployment-configs/onf-soak-pod.yaml b/deployment-configs/onf-soak-pod.yaml
index 7a523df..d79164e 100644
--- a/deployment-configs/onf-soak-pod.yaml
+++ b/deployment-configs/onf-soak-pod.yaml
@@ -84,7 +84,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f1
@@ -97,7 +97,7 @@
ip: null
user: null
pass: null
- noroot_ip:10.35.90.43
+ noroot_ip: 10.35.90.43
noroot_user: cord
noroot_pass: cord
dp_iface_name: ens1f1