diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 00000000..b2ca786f --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,14 @@ +[defaults] +gathering = smart +command_warnings = False +retry_files_enabled = False +callback_whitelist = profile_tasks + +# Attempt to load custom modules whether it's installed system-wide or from a virtual environment +test_plugins = test_plugings:$VIRTUAL_ENV/usr/local/share/tripleo-upgrade/playbooks/test_plugins:playbooks/test_plugins +library = library:$VIRTUAL_ENV/usr/local/share/tripleo-upgrade/playbooks/library:playbooks/library +roles_path = roles:$VIRTUAL_ENV/usr/local/share/ansible/roles/tripleo-upgrade:$VIRTUAL_ENV/usr/local/share/ + + +[ssh_connection] +control_path = %(directory)s/%C diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..885c2cb6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pbr>=1.6 +ansible diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..de3223f4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,38 @@ +[metadata] +name = tripleo-upgrade +summary = tripleo-upgrade - An ansible role for upgrade and update a TripleO deployment +description-file = + README.md +author = TripleO Team +author-email = mbultel@redhat.com, mcornea@redhat.com +home-page = https://github.com/redhat-openstack/tripleo-upgrade +classifier = + License :: OSI Approved :: Apache Software License + Development Status :: 4 - Beta + Intended Audience :: Developers + Intended Audience :: System Administrators + Intended Audience :: Information Technology + Topic :: Utilities + +[global] +setup-hooks = + pbr.hooks.setup_hook + +[files] +data_files = + usr/local/share/ansible/roles/tripleo-upgrade/defaults = defaults/* + usr/local/share/ansible/roles/tripleo-upgrade/handlers = handlers/* + usr/local/share/ansible/roles/tripleo-upgrade/meta = meta/* + usr/local/share/ansible/roles/tripleo-upgrade/tasks = tasks/* + usr/local/share/ansible/roles/tripleo-upgrade/templates = templates/* + usr/local/share/ansible/roles/tripleo-upgrade/tests = tests/* + usr/local/share/ansible/roles/tripleo-upgrade/vars = vars/* + playbooks = playbooks/* + +[wheel] +universal = 1 + +[pbr] +skip_authors = True +skip_changelog = True + diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..6a931a61 --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +# Copyright Red Hat, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +import setuptools + +setuptools.setup( + setup_requires=['pbr'], + pbr=True)