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:
- name: Fetch logs from remote systems
import_role:
name: openstack-ops
name: openstack-operations
tasks_from: fetch_logs.yml

View File

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

View File

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

View File

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