Verify YAML syntax in gates

Test yaml syntax is correct on new changes.
Fixes current warnings and errors

Change-Id: I5888f8e4a9d27a08506036df2c564b9f2081ccee
This commit is contained in:
Eduardo Gonzalez 2018-02-25 12:12:45 +01:00
parent d37036a6e2
commit 01a5388169
13 changed files with 28 additions and 12 deletions

9
.yamllint Normal file
View File

@ -0,0 +1,9 @@
extends: default
ignore: |
.tox/
rules:
line-length: disable
truthy: disable
braces:
max-spaces-inside: 1

View File

@ -53,4 +53,3 @@
- ^doc/.*
vars:
publisher: false

View File

@ -56,4 +56,3 @@
publisher: true
secrets:
- kolla_dockerhub_creds

View File

@ -1,5 +1,5 @@
---
features:
- Add ansible role for openstack congress project which provide
policy as a service across any collection of cloud services in
order to offer governance and compliance for dynamic infrastructures.
- Add ansible role for openstack congress project which provide
policy as a service across any collection of cloud services in
order to offer governance and compliance for dynamic infrastructures.

View File

@ -1,6 +1,6 @@
---
features:
- Introduce OpenStack Infrastructure Optimization
service, also known as Watcher. This project makes
use of Ceilometer data to rebalance the cloud to
meet declared goals and strategies.
features:
- Introduce OpenStack Infrastructure Optimization
service, also known as Watcher. This project makes
use of Ceilometer data to rebalance the cloud to
meet declared goals and strategies.

View File

@ -1,3 +1,4 @@
---
other:
- Congress doesn't work correctly out of the box and will
not deploy. See Bug #1634641.
not deploy. See Bug https://bugs.launchpad.net/kolla-ansible/+bug/1634641.

View File

@ -2,4 +2,3 @@
deprecations:
- The nova-network service was deprecated, we remove it from
the nova container.

View File

@ -1,3 +1,4 @@
---
collectd_packages:
RedHat:
- collectd

View File

@ -1,3 +1,4 @@
---
- name: restart collectd service
service:
name: collectd

View File

@ -1,3 +1,4 @@
---
- hosts: all
roles:
- collect-collectd

View File

@ -1,3 +1,4 @@
---
- hosts: all
become: true
roles:

View File

@ -1,3 +1,4 @@
---
- hosts: all
vars:
kolla_inventory_path: "{{ zuul.project.src_dir }}/inventory"

View File

@ -31,12 +31,16 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
coverage report --show-missing
[testenv:pep8]
deps =
{[testenv]deps}
yamllint
commands =
{toxinidir}/tools/run-bashate.sh
flake8 {posargs}
{toxinidir}/tools/validate-all-dockerfiles.sh
python {toxinidir}/tools/validate-all-file.py
bandit -r docker kolla tests tools
yamllint .
[testenv:bandit]
commands = bandit -r docker kolla tests tools