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:
Sam Doran 2018-09-07 15:01:36 -04:00
parent dd035d2c08
commit 2936284fed
9 changed files with 55 additions and 15 deletions

21
.gitignore vendored Normal file
View 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
View 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

View File

@ -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
View 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

View File

@ -5,5 +5,5 @@
tasks: tasks:
- name: Fetch logs from remote systems - name: Fetch logs from remote systems
import_role: import_role:
name: openstack-ops name: openstack-operations
tasks_from: fetch_logs.yml tasks_from: fetch_logs.yml

View File

@ -5,5 +5,5 @@
tasks: tasks:
- name: Restart services - name: Restart services
import_role: import_role:
name: openstack-ops name: openstack-operations
tasks_from: restart_service.yml tasks_from: restart_service.yml

View File

@ -2,7 +2,7 @@
name = tripleo-ansible name = tripleo-ansible
summary = TripleO Ansible - Ansible playbooks for the TripleO project. summary = TripleO Ansible - Ansible playbooks for the TripleO project.
description-file = description-file =
README.md README.rst
author = TripleO Team author = TripleO Team
author-email = jillr@redhat.com author-email = jillr@redhat.com
home-page = https://git.openstack.org/cgit/openstack/tripleo-ansible home-page = https://git.openstack.org/cgit/openstack/tripleo-ansible

View File

@ -34,6 +34,7 @@ commands =
[testenv:ansible-lint] [testenv:ansible-lint]
basepython=python2 basepython=python2
deps = -r {toxinidir}/ansible-requirements.txt
commands = commands =
bash ci-scripts/ansible-lint.sh bash ci-scripts/ansible-lint.sh

12
zuul.d/layout.yaml Normal file
View 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