Use generic names for container platform
- Add Zuul config - Correct a few minor things in tox.ini - add ansible-requirements.txt - add .gitignore Change-Id: Iac67338a6cd9a088bc0fbf0b3e6baff448530878
This commit is contained in:
parent
dd035d2c08
commit
2936284fed
21
.gitignore
vendored
Normal file
21
.gitignore
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
*.py[cod]
|
||||
|
||||
# Testing cruft
|
||||
.tox
|
||||
.venv
|
||||
*.egg*
|
||||
egg
|
||||
.coverage
|
||||
cover
|
||||
.tox
|
||||
nosetests.xml
|
||||
.testrepository
|
||||
.venv
|
||||
|
||||
# Editors
|
||||
*~
|
||||
.*.swp
|
||||
.*sw?
|
||||
|
||||
# Playbook retry files
|
||||
*.retry
|
6
ansible-requirements.txt
Normal file
6
ansible-requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# These are required here because ansible can't be in global-requirements due
|
||||
# to licensing conflicts. But we sill need to be able to pull them in for
|
||||
# lint checks and want to document these as ansible specific things that may
|
||||
# be required for this repository.
|
||||
ansible
|
||||
ansible-lint
|
@ -1,9 +0,0 @@
|
||||
- name: Cleanup Docker
|
||||
hosts: "{{ target_hosts | default('all') }}"
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Cleanup unused Docker images, containers, and volumes
|
||||
import_role:
|
||||
name: openstack-ops
|
||||
tasks_from: cleanup_docker.yml
|
9
container-cleanup.yml
Normal file
9
container-cleanup.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- name: Cleanup container items
|
||||
hosts: "{{ target_hosts | default('all') }}"
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Cleanup unused images, containers, and volumes
|
||||
import_role:
|
||||
name: openstack-operations
|
||||
tasks_from: container_cleanup.yml
|
@ -5,5 +5,5 @@
|
||||
tasks:
|
||||
- name: Fetch logs from remote systems
|
||||
import_role:
|
||||
name: openstack-ops
|
||||
name: openstack-operations
|
||||
tasks_from: fetch_logs.yml
|
||||
|
@ -5,5 +5,5 @@
|
||||
tasks:
|
||||
- name: Restart services
|
||||
import_role:
|
||||
name: openstack-ops
|
||||
name: openstack-operations
|
||||
tasks_from: restart_service.yml
|
||||
|
@ -2,7 +2,7 @@
|
||||
name = tripleo-ansible
|
||||
summary = TripleO Ansible - Ansible playbooks for the TripleO project.
|
||||
description-file =
|
||||
README.md
|
||||
README.rst
|
||||
author = TripleO Team
|
||||
author-email = jillr@redhat.com
|
||||
home-page = https://git.openstack.org/cgit/openstack/tripleo-ansible
|
||||
|
7
tox.ini
7
tox.ini
@ -7,7 +7,7 @@ skipdist = True
|
||||
usedevelop = True
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
deps = -r {toxinidir}/test-requirements.txt
|
||||
whitelist_externals = bash
|
||||
|
||||
[testenv:bindep]
|
||||
@ -34,13 +34,14 @@ commands =
|
||||
|
||||
[testenv:ansible-lint]
|
||||
basepython=python2
|
||||
deps = -r {toxinidir}/ansible-requirements.txt
|
||||
commands =
|
||||
bash ci-scripts/ansible-lint.sh
|
||||
|
||||
[testenv:linters]
|
||||
deps =
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/ansible-requirements.txt
|
||||
-r {toxinidir}/test-requirements.txt
|
||||
-r {toxinidir}/ansible-requirements.txt
|
||||
commands =
|
||||
{[testenv:pep8]commands}
|
||||
{[testenv:ansible-lint]commands}
|
||||
|
12
zuul.d/layout.yaml
Normal file
12
zuul.d/layout.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
- project:
|
||||
templates:
|
||||
- release-openstack-server
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-linters
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-linters
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-python-branch-tarball
|
Loading…
Reference in New Issue
Block a user