a5b46bfc8c
* Run dns_late preinstall tasks on all k8s nodes Related issue: #4656 Change-Id: I63f8559ef1a497b7580ab084561e6603fe647834 * Fix ansible-lint Change-Id: Ia5b33fa63dbc36d8c3e9557ef3f2ea02af2325a5 * Fix recover_control_plane lint issues Change-Id: I16643a3193c11b6ba704e9698812cac7e4fd19a8
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
---
|
|
yamllint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
script:
|
|
- yamllint --strict .
|
|
except: ['triggers', 'master']
|
|
|
|
ansible-lint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
# lint every yml/yaml file that looks like it contains Ansible plays
|
|
script: |-
|
|
grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v
|
|
except: ['triggers', 'master']
|
|
|
|
syntax-check:
|
|
extends: .job
|
|
stage: unit-tests
|
|
variables:
|
|
ANSIBLE_INVENTORY: inventory/local-tests.cfg
|
|
ANSIBLE_REMOTE_USER: root
|
|
ANSIBLE_BECOME: "true"
|
|
ANSIBLE_BECOME_USER: root
|
|
ANSIBLE_VERBOSITY: "3"
|
|
script:
|
|
- ansible-playbook --syntax-check cluster.yml
|
|
- ansible-playbook --syntax-check upgrade-cluster.yml
|
|
- ansible-playbook --syntax-check reset.yml
|
|
- ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml
|
|
except: ['triggers', 'master']
|
|
|
|
tox-inventory-builder:
|
|
stage: unit-tests
|
|
extends: .job
|
|
script:
|
|
- pip install tox
|
|
- cd contrib/inventory_builder && tox
|
|
when: manual
|
|
except: ['triggers', 'master']
|