Bump ansible-lint
Sync the versions with kolla-ansible Depends-On: https://review.opendev.org/c/openstack/kayobe/+/883744 Change-Id: I744d64e1e69021f93497fcf127a6abd315f04669
This commit is contained in:
parent
f74dd4859c
commit
b4f1d3c993
@ -1,19 +1,17 @@
|
|||||||
---
|
---
|
||||||
use_default_rules: true
|
use_default_rules: true
|
||||||
skip_list:
|
skip_list:
|
||||||
# [E503] Tasks that run when changed should likely be handlers
|
# Experimental
|
||||||
# TODO(mnasiadka): Rework roles to do handlers instead of when: *.changed
|
- experimental
|
||||||
- no-handler
|
# Use FQCN
|
||||||
# [E208] permissions not mentioned
|
- fqcn[action]
|
||||||
# FIXME(mnasiadka): Rework file/template to include permissions
|
- fqcn[action-core]
|
||||||
- risky-file-permissions
|
# Galaxy changelog and runtime defined
|
||||||
# [unnamed-task] All tasks should be named
|
- galaxy[no-changelog]
|
||||||
# FIXME(mgoddard): Add names to all tasks
|
- galaxy[no-runtime]
|
||||||
- unnamed-task
|
# don't fail on when at the end of block
|
||||||
# [ignore-errors] Use failed_when and specify error conditions instead of using ignore_errors
|
- key-order[task]
|
||||||
# FIXME(mgoddard): Use failed_when instead of ignore_errors
|
# All tasks should be named
|
||||||
- ignore-errors
|
- name[missing]
|
||||||
# Package installs should not use latest
|
# Variables names from within roles should use role_name_ as a prefix
|
||||||
- package-latest
|
- var-naming[no-role-prefix]
|
||||||
# Commands should not change things if nothing needs doing
|
|
||||||
- no-changed-when
|
|
||||||
|
@ -3,7 +3,8 @@ namespace: openstack
|
|||||||
name: kolla
|
name: kolla
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors: OpenStack
|
authors:
|
||||||
|
- "OpenStack"
|
||||||
description: Ansible collection for the OpenStack Kolla project
|
description: Ansible collection for the OpenStack Kolla project
|
||||||
license:
|
license:
|
||||||
- GPL-3.0-or-later
|
- GPL-3.0-or-later
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: True
|
become: True
|
||||||
|
changed_when: true
|
||||||
when:
|
when:
|
||||||
- apparmor_libvirtd_profile.stat.exists
|
- apparmor_libvirtd_profile.stat.exists
|
||||||
- not apparmor_libvirtd_disable_profile.stat.exists
|
- not apparmor_libvirtd_disable_profile.stat.exists
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# TODO(inc0): Gates don't seem to have ufw executable, check for it instead of ignore errors
|
# TODO(inc0): Gates don't seem to have ufw executable, check for it instead of ignore errors
|
||||||
- block:
|
- block:
|
||||||
- name: Set firewall default policy
|
- name: Set firewall default policy
|
||||||
|
# noqa ignore-errors
|
||||||
become: True
|
become: True
|
||||||
ufw:
|
ufw:
|
||||||
state: disabled
|
state: disabled
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
- import_tasks: post-install.yml
|
- import_tasks: post-install.yml
|
||||||
|
|
||||||
- name: configure ceph for zun
|
- name: Configure ceph for zun
|
||||||
include_tasks: configure-ceph-for-zun.yml
|
include_tasks: configure-ceph-for-zun.yml
|
||||||
when:
|
when:
|
||||||
- zun_configure_for_cinder_ceph | bool
|
- zun_configure_for_cinder_ceph | bool
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
file:
|
file:
|
||||||
path: /etc/docker
|
path: /etc/docker
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: 0755
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
- name: Write docker config
|
- name: Write docker config
|
||||||
@ -75,6 +76,7 @@
|
|||||||
template:
|
template:
|
||||||
src: docker_systemd_service.j2
|
src: docker_systemd_service.j2
|
||||||
dest: /etc/systemd/system/docker.service.d/kolla.conf
|
dest: /etc/systemd/system/docker.service.d/kolla.conf
|
||||||
|
mode: 0644
|
||||||
when: >
|
when: >
|
||||||
(docker_configure_for_zun | bool and 'zun-compute' in group_names) or
|
(docker_configure_for_zun | bool and 'zun-compute' in group_names) or
|
||||||
docker_http_proxy | length > 0 or
|
docker_http_proxy | length > 0 or
|
||||||
|
@ -62,8 +62,10 @@
|
|||||||
delay: 10
|
delay: 10
|
||||||
|
|
||||||
- name: Ensure containers are running after Docker upgrade
|
- name: Ensure containers are running after Docker upgrade
|
||||||
|
# noqa no-changed-when
|
||||||
command: "docker start {{ running_containers.stdout }}"
|
command: "docker start {{ running_containers.stdout }}"
|
||||||
become: true
|
become: true
|
||||||
|
changed_when: true
|
||||||
when:
|
when:
|
||||||
- docker_install_result is changed
|
- docker_install_result is changed
|
||||||
- running_containers.rc == 0
|
- running_containers.rc == 0
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
Package: {{ docker_apt_package }}
|
Package: {{ docker_apt_package }}
|
||||||
Pin: version {{ docker_apt_package_pin }}
|
Pin: version {{ docker_apt_package_pin }}
|
||||||
Pin-Priority: 1000
|
Pin-Priority: 1000
|
||||||
|
mode: 0644
|
||||||
become: True
|
become: True
|
||||||
when: docker_apt_package_pin | length > 0
|
when: docker_apt_package_pin | length > 0
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ enable_nova_libvirt_container: false
|
|||||||
ubuntu_pkg_install:
|
ubuntu_pkg_install:
|
||||||
- git
|
- git
|
||||||
- iputils-ping
|
- iputils-ping
|
||||||
- "{% if enable_multipathd|bool %}sg3-utils-udev{% endif %}"
|
- "{% if enable_multipathd | bool %}sg3-utils-udev{% endif %}"
|
||||||
- tzdata
|
- tzdata
|
||||||
|
|
||||||
openeuler_pkg_install:
|
openeuler_pkg_install:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# linting
|
# linting
|
||||||
ansible-lint>=4.2.0,!=4.3.0,<6.0.0 # MIT
|
ansible-lint>=6.0.0,<6.17.0 # MIT
|
||||||
bandit>=1.1.0 # Apache-2.0
|
bandit>=1.1.0 # Apache-2.0
|
||||||
bashate>=0.5.1 # Apache-2.0
|
bashate>=0.5.1 # Apache-2.0
|
||||||
doc8>=0.6.0 # Apache-2.0
|
doc8>=0.6.0 # Apache-2.0
|
||||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||||
yamllint>=1.22.0 #GPL3
|
yamllint>=1.22.0 # GPL3
|
||||||
|
|
||||||
# coverage testing
|
# coverage testing
|
||||||
coverage>=4.0,!=4.4 # Apache-2.0
|
coverage>=4.0,!=4.4 # Apache-2.0
|
||||||
@ -16,4 +16,4 @@ stestr>=1.0.0 # Apache-2.0
|
|||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
|
|
||||||
# sanity testing
|
# sanity testing
|
||||||
ansible-core
|
ansible-core>=2.13.0,<2.15.0 # GPL3
|
||||||
|
1
tox.ini
1
tox.ini
@ -128,4 +128,5 @@ commands = bash {toxinidir}/tools/run-ansible-sanity.sh {toxinidir}
|
|||||||
[testenv:ansible-lint]
|
[testenv:ansible-lint]
|
||||||
deps = {[testenv:linters]deps}
|
deps = {[testenv:linters]deps}
|
||||||
commands =
|
commands =
|
||||||
|
ansible-galaxy collection install ansible.posix community.general
|
||||||
ansible-lint -p
|
ansible-lint -p
|
||||||
|
Loading…
Reference in New Issue
Block a user