summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Evrard <jean-philippe@evrard.me>2017-07-20 11:19:33 +0100
committerManuel Buil <mbuil@suse.com>2017-07-20 15:41:58 +0200
commit27991691da5093fef5909ab2661a7263faa9da04 (patch)
tree2973622837c556e67dba06a34f1195db4a08dc08
parent066749cf6b951a69d14fa322b64fa9ca54fe540a (diff)
Bootstrap tacker role
- Make possible to use gerrit with tacker role - Introduced Vagrant file like the other roles - Introduced gating files - Introduced basic docs Change-Id: I632010fe7de9a91614bc8088fa7321847f3aa9c1
Notes
Notes (review): Code-Review+1: Manuel Buil <mbuil@suse.com> Code-Review+2: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Workflow+1: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 20 Jul 2017 15:57:48 +0000 Reviewed-on: https://review.openstack.org/485541 Project: openstack/openstack-ansible-os_tacker Branch: refs/heads/master
-rw-r--r--.gitreview4
-rw-r--r--Vagrantfile43
-rw-r--r--bindep.txt63
-rw-r--r--doc/Makefile195
-rw-r--r--doc/source/conf.py325
-rw-r--r--doc/source/index.rst32
-rw-r--r--releasenotes/notes/.placeholder0
-rw-r--r--releasenotes/source/_static/.placeholder0
-rw-r--r--releasenotes/source/_templates/.placeholder0
-rw-r--r--releasenotes/source/conf.py289
-rw-r--r--releasenotes/source/index.rst8
-rw-r--r--releasenotes/source/unreleased.rst5
-rwxr-xr-xrun_tests.sh69
-rw-r--r--setup.cfg24
-rw-r--r--setup.py29
-rw-r--r--tasks/main.yml1
-rw-r--r--tasks/tacker_db_setup.yml4
-rw-r--r--tasks/tacker_init_upstart.yml4
-rw-r--r--tasks/tacker_install.yml8
-rw-r--r--test-requirements.txt16
-rw-r--r--tests/ansible-role-requirements.yml44
-rw-r--r--tox.ini40
22 files changed, 1182 insertions, 21 deletions
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..8213b4e
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
1[gerrit]
2host=review.openstack.org
3port=29418
4project=openstack/openstack-ansible-os_tacker.git
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..46436cf
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,43 @@
1# Note:
2# This file is maintained in the openstack-ansible-tests repository.
3# https://git.openstack.org/cgit/openstack/openstack-ansible-tests/tree/Vagrantfile
4#
5# If you need to perform any change on it, you should modify the central file,
6# then, an OpenStack CI job will propagate your changes to every OSA repository
7# since every repo uses the same Vagrantfile
8
9# Verify whether required plugins are installed.
10required_plugins = [ "vagrant-disksize" ]
11required_plugins.each do |plugin|
12 if not Vagrant.has_plugin?(plugin)
13 raise "The vagrant plugin #{plugin} is required. Please run `vagrant plugin install #{plugin}`"
14 end
15end
16
17Vagrant.configure(2) do |config|
18 config.vm.provider "virtualbox" do |v|
19 v.memory = 4096
20 v.cpus = 2
21 end
22
23 config.vm.provision "shell",
24 privileged: false,
25 inline: <<-SHELL
26 cd /vagrant
27 ./run_tests.sh
28 SHELL
29
30 config.vm.define "ubuntu1604" do |xenial|
31 xenial.disksize.size = "40GB"
32 xenial.vm.box = "ubuntu/xenial64"
33 end
34
35 config.vm.define "opensuse422" do |leap422|
36 leap422.vm.box = "opensuse/openSUSE-42.2-x86_64"
37 end
38
39 config.vm.define "centos7" do |centos7|
40 centos7.vm.box = "centos/7"
41 end
42
43end
diff --git a/bindep.txt b/bindep.txt
new file mode 100644
index 0000000..f2924a2
--- /dev/null
+++ b/bindep.txt
@@ -0,0 +1,63 @@
1# This file facilitates OpenStack-CI package installation
2# before the execution of any tests.
3#
4# See the following for details:
5# - http://docs.openstack.org/infra/bindep/
6# - https://git.openstack.org/cgit/openstack-infra/bindep
7#
8# Even if the role does not make use of this facility, it
9# is better to have this file empty, otherwise OpenStack-CI
10# will fall back to installing its default packages which
11# will potentially be detrimental to the tests executed.
12#
13# Note:
14# This file is maintained in the openstack-ansible-tests repository.
15# https://git.openstack.org/cgit/openstack/openstack-ansible-tests/tree/bindep.txt
16# If you need to remove or add extra dependencies, you should modify
17# the central file instead and once your change is accepted then update
18# this file as well. The purpose of this file is to ensure that Python and
19# Ansible have all their necessary binary requirements on the test host before
20# tox executes. Any binary requirements needed by services/roles should be
21# installed by those roles in their applicable package install tasks, not through
22# using this file.
23#
24
25# Base requirements for Ubuntu
26build-essential [platform:dpkg]
27git-core [platform:dpkg]
28libssl-dev [platform:dpkg]
29libffi-dev [platform:dpkg]
30python2.7 [platform:dpkg]
31python-apt [platform:dpkg]
32python-dev [platform:dpkg]
33
34# Base requirements for RPM distros
35gcc [platform:rpm]
36gcc-c++ [platform:rpm]
37git [platform:rpm]
38libffi-devel [platform:rpm !platform:opensuseproject-42]
39libffi-devel-gcc5 [platform:opensuseproject-42]
40openssl-devel [platform:redhat]
41libopenssl-devel [platform:suse]
42python-devel [platform:rpm]
43python2-dnf [platform:fedora]
44
45# For SELinux
46libselinux-python [platform:redhat]
47libsemanage-python [platform:redhat]
48
49# For SSL SNI support
50python-pyasn1 [platform:dpkg platform:suse]
51python-openssl [platform:dpkg]
52python-ndg-httpsclient [platform:ubuntu !platform:ubuntu-14]
53python2-pyasn1 [platform:redhat]
54python2-pyOpenSSL [platform:redhat !platform:fedora]
55pyOpenSSL [platform:fedora]
56python-pyOpenSSL [platform:opensuseproject-42]
57python2-pyOpenSSL [platform:suse !platform:opensuseproject-42]
58python-ndg_httpsclient [platform:redhat !platform:fedora]
59python2-ndg_httpsclient [platform:fedora]
60python-ndg-httpsclient [platform:suse]
61
62# Required for compressing collected log files in CI
63gzip
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..66267ec
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,195 @@
1# Makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS =
6SPHINXBUILD = sphinx-build
7PAPER =
8BUILDDIR = build
9
10# User-friendly check for sphinx-build
11ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13endif
14
15# Internal variables.
16PAPEROPT_a4 = -D latex_paper_size=a4
17PAPEROPT_letter = -D latex_paper_size=letter
18ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
19# the i18n builder cannot share the environment and doctrees with the others
20I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
21
22.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
23
24help:
25 @echo "Please use \`make <target>' where <target> is one of"
26 @echo " html to make standalone HTML files"
27 @echo " dirhtml to make HTML files named index.html in directories"
28 @echo " singlehtml to make a single large HTML file"
29 @echo " pickle to make pickle files"
30 @echo " json to make JSON files"
31 @echo " htmlhelp to make HTML files and a HTML help project"
32 @echo " qthelp to make HTML files and a qthelp project"
33 @echo " applehelp to make an Apple Help Book"
34 @echo " devhelp to make HTML files and a Devhelp project"
35 @echo " epub to make an epub"
36 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
37 @echo " latexpdf to make LaTeX files and run them through pdflatex"
38 @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
39 @echo " text to make text files"
40 @echo " man to make manual pages"
41 @echo " texinfo to make Texinfo files"
42 @echo " info to make Texinfo files and run them through makeinfo"
43 @echo " gettext to make PO message catalogs"
44 @echo " changes to make an overview of all changed/added/deprecated items"
45 @echo " xml to make Docutils-native XML files"
46 @echo " pseudoxml to make pseudoxml-XML files for display purposes"
47 @echo " linkcheck to check all external links for integrity"
48 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
49 @echo " coverage to run coverage check of the documentation (if enabled)"
50
51clean:
52 rm -rf $(BUILDDIR)/*
53
54html:
55 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
56 @echo
57 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
58
59dirhtml:
60 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
61 @echo
62 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
63
64singlehtml:
65 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
66 @echo
67 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
68
69pickle:
70 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
71 @echo
72 @echo "Build finished; now you can process the pickle files."
73
74json:
75 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
76 @echo
77 @echo "Build finished; now you can process the JSON files."
78
79htmlhelp:
80 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
81 @echo
82 @echo "Build finished; now you can run HTML Help Workshop with the" \
83 ".hhp project file in $(BUILDDIR)/htmlhelp."
84
85qthelp:
86 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
87 @echo
88 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
89 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
90 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/openstack-ansible-lxc_hosts.qhcp"
91 @echo "To view the help file:"
92 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/openstack-ansible-lxc_hosts.qhc"
93
94applehelp:
95 $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
96 @echo
97 @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
98 @echo "N.B. You won't be able to view it unless you put it in" \
99 "~/Library/Documentation/Help or install it in your application" \
100 "bundle."
101
102devhelp:
103 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
104 @echo
105 @echo "Build finished."
106 @echo "To view the help file:"
107 @echo "# mkdir -p $$HOME/.local/share/devhelp/openstack-ansible-lxc_hosts"
108 @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/openstack-ansible-lxc_hosts"
109 @echo "# devhelp"
110
111epub:
112 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
113 @echo
114 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
115
116latex:
117 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
118 @echo
119 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
120 @echo "Run \`make' in that directory to run these through (pdf)latex" \
121 "(use \`make latexpdf' here to do that automatically)."
122
123latexpdf:
124 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
125 @echo "Running LaTeX files through pdflatex..."
126 $(MAKE) -C $(BUILDDIR)/latex all-pdf
127 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
128
129latexpdfja:
130 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
131 @echo "Running LaTeX files through platex and dvipdfmx..."
132 $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
133 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
134
135text:
136 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
137 @echo
138 @echo "Build finished. The text files are in $(BUILDDIR)/text."
139
140man:
141 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
142 @echo
143 @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
144
145texinfo:
146 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
147 @echo
148 @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
149 @echo "Run \`make' in that directory to run these through makeinfo" \
150 "(use \`make info' here to do that automatically)."
151
152info:
153 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
154 @echo "Running Texinfo files through makeinfo..."
155 make -C $(BUILDDIR)/texinfo info
156 @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
157
158gettext:
159 $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
160 @echo
161 @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
162
163changes:
164 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
165 @echo
166 @echo "The overview file is in $(BUILDDIR)/changes."
167
168linkcheck:
169 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
170 @echo
171 @echo "Link check complete; look for any errors in the above output " \
172 "or in $(BUILDDIR)/linkcheck/output.txt."
173
174doctest:
175 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
176 @echo "Testing of doctests in the sources finished, look at the " \
177 "results in $(BUILDDIR)/doctest/output.txt."
178
179coverage:
180 $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
181 @echo "Testing of coverage in the sources finished, look at the " \
182 "results in $(BUILDDIR)/coverage/python.txt."
183
184xml:
185 $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
186 @echo
187 @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
188
189pseudoxml:
190 $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
191 @echo
192 @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
193
194livehtml: html
195 sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
diff --git a/doc/source/conf.py b/doc/source/conf.py
new file mode 100644
index 0000000..eec498e
--- /dev/null
+++ b/doc/source/conf.py
@@ -0,0 +1,325 @@
1#!/usr/bin/env python3
2
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# This file is execfile()d with the current directory set to its
17# containing dir.
18#
19# Note that not all possible configuration values are present in this
20# autogenerated file.
21#
22# All configuration values have a default; values that are commented out
23# serve to show the default.
24
25import pbr.version
26import os
27
28# If extensions (or modules to document with autodoc) are in another directory,
29# add these directories to sys.path here. If the directory is relative to the
30# documentation root, use os.path.abspath to make it absolute, like shown here.
31# sys.path.insert(0, os.path.abspath('.'))
32
33# -- General configuration ------------------------------------------------
34
35# If your documentation needs a minimal Sphinx version, state it here.
36# needs_sphinx = '1.0'
37
38# Add any Sphinx extension module names here, as strings. They can be
39# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40# ones.
41extensions = [
42 'openstackdocstheme',
43 'sphinx.ext.autodoc',
44 'sphinxmark'
45]
46
47# Add any paths that contain templates here, relative to this directory.
48templates_path = ['_templates']
49
50# The suffix(es) of source filenames.
51# You can specify multiple suffix as a list of string:
52# source_suffix = ['.rst', '.md']
53source_suffix = '.rst'
54
55# The encoding of source files.
56# source_encoding = 'utf-8-sig'
57
58# The master toctree document.
59master_doc = 'index'
60
61# General information about the project.
62author = 'OpenStack-Ansible Contributors'
63category = 'Miscellaneous'
64copyright = '2014-2016, OpenStack-Ansible Contributors'
65description = 'OpenStack-Ansible deploys OpenStack environments using Ansible.'
66project = 'OpenStack-Ansible'
67role_name = 'os_tacker'
68target_name = 'openstack-ansible-' + role_name
69title = 'OpenStack-Ansible Documentation: ' + role_name + 'role'
70
71# The link to the browsable source code (for the left hand menu)
72oslosphinx_cgit_link = 'https://git.openstack.org/cgit/openstack/' + target_name
73
74# The version info for the project you're documenting, acts as replacement for
75# |version| and |release|, also used in various other places throughout the
76# built documents.
77#
78# The short X.Y version.
79version_info = pbr.version.VersionInfo(target_name)
80# The full version, including alpha/beta/rc tags.
81release = version_info.version_string_with_vcs()
82# The short X.Y version.
83version = version_info.canonical_version_string()
84
85# openstackdocstheme options
86repository_name = 'openstack/' + target_name
87bug_project = project.lower()
88bug_tag = ''
89
90# for a list of supported languages.
91#
92# This is also used if you do content translation via gettext catalogs.
93# Usually you set "language" from the command line for these cases.
94language = None
95
96# There are two options for replacing |today|: either, you set today to some
97# non-false value, then it is used:
98# today = ''
99# Else, today_fmt is used as the format for a strftime call.
100# today_fmt = '%B %d, %Y'
101
102# List of patterns, relative to source directory, that match files and
103# directories to ignore when looking for source files.
104exclude_patterns = []
105
106# The reST default role (used for this markup: `text`) to use for all
107# documents.
108# default_role = None
109
110# If true, '()' will be appended to :func: etc. cross-reference text.
111# add_function_parentheses = True
112
113# If true, the current module name will be prepended to all description
114# unit titles (such as .. function::).
115# add_module_names = True
116
117# If true, sectionauthor and moduleauthor directives will be shown in the
118# output. They are ignored by default.
119# show_authors = False
120
121# The name of the Pygments (syntax highlighting) style to use.
122pygments_style = 'sphinx'
123
124# A list of ignored prefixes for module index sorting.
125# modindex_common_prefix = []
126
127# If true, keep warnings as "system message" paragraphs in the built documents.
128# keep_warnings = False
129
130# If true, `todo` and `todoList` produce output, else they produce nothing.
131todo_include_todos = False
132
133
134# -- Options for HTML output ----------------------------------------------
135
136# The theme to use for HTML and HTML Help pages. See the documentation for
137# a list of builtin themes.
138html_theme = 'openstackdocs'
139
140# Theme options are theme-specific and customize the look and feel of a theme
141# further. For a list of options available for each theme, see the
142# documentation.
143# html_theme_options = {}
144
145# Add any paths that contain custom themes here, relative to this directory.
146# html_theme_path = []
147
148# The name for this set of Sphinx documents. If None, it defaults to
149# "<project> v<release> documentation".
150# html_title = None
151
152# A shorter title for the navigation bar. Default is the same as html_title.
153# html_short_title = None
154
155# The name of an image file (relative to this directory) to place at the top
156# of the sidebar.
157# html_logo = None
158
159# The name of an image file (within the static path) to use as favicon of the
160# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
161# pixels large.
162# html_favicon = None
163
164# Add any paths that contain custom static files (such as style sheets) here,
165# relative to this directory. They are copied after the builtin static files,
166# so a file named "default.css" will overwrite the builtin "default.css".
167html_static_path = ['_static']
168
169# Add any extra paths that contain custom files (such as robots.txt or
170# .htaccess) here, relative to this directory. These files are copied
171# directly to the root of the documentation.
172# html_extra_path = []
173
174# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
175# using the given strftime format.
176html_last_updated_fmt = '%Y-%m-%d %H:%M'
177
178# If true, SmartyPants will be used to convert quotes and dashes to
179# typographically correct entities.
180# html_use_smartypants = True
181
182# Custom sidebar templates, maps document names to template names.
183# html_sidebars = {}
184
185# Additional templates that should be rendered to pages, maps page names to
186# template names.
187# html_additional_pages = {}
188
189# If false, no module index is generated.
190# html_domain_indices = True
191
192# If false, no index is generated.
193# html_use_index = True
194
195# If true, the index is split into individual pages for each letter.
196# html_split_index = False
197
198# If true, links to the reST sources are added to the pages.
199# html_show_sourcelink = True
200
201# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
202# html_show_sphinx = True
203
204# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
205# html_show_copyright = True
206
207# If true, an OpenSearch description file will be output, and all pages will
208# contain a <link> tag referring to it. The value of this option must be the
209# base URL from which the finished HTML is served.
210# html_use_opensearch = ''
211
212# This is the file name suffix for HTML files (e.g. ".xhtml").
213# html_file_suffix = None
214
215# Language to be used for generating the HTML full-text search index.
216# Sphinx supports the following languages:
217# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
218# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
219# html_search_language = 'en'
220
221# A dictionary with options for the search language support, empty by default.
222# Now only 'ja' uses this config value
223# html_search_options = {'type': 'default'}
224
225# The name of a javascript file (relative to the configuration directory) that
226# implements a search results scorer. If empty, the default will be used.
227# html_search_scorer = 'scorer.js'
228
229# Output file base name for HTML help builder.
230htmlhelp_basename = target_name + '-docs'
231
232# -- Options for LaTeX output ---------------------------------------------
233
234latex_elements = {
235 # The paper size ('letterpaper' or 'a4paper').
236 # 'papersize': 'letterpaper',
237
238 # The font size ('10pt', '11pt' or '12pt').
239 # 'pointsize': '10pt',
240
241 # Additional stuff for the LaTeX preamble.
242 # 'preamble': '',
243
244 # Latex figure (float) alignment
245 # 'figure_align': 'htbp',
246}
247
248# Grouping the document tree into LaTeX files. List of tuples
249# (source start file, target name, title,
250# author, documentclass [howto, manual, or own class]).
251latex_documents = [
252 (master_doc, target_name + '.tex',
253 title, author, 'manual'),
254]
255
256# The name of an image file (relative to this directory) to place at the top of
257# the title page.
258# latex_logo = None
259
260# For "manual" documents, if this is true, then toplevel headings are parts,
261# not chapters.
262# latex_use_parts = False
263
264# If true, show page references after internal links.
265# latex_show_pagerefs = False
266
267# If true, show URL addresses after external links.
268# latex_show_urls = False
269
270# Documents to append as an appendix to all manuals.
271# latex_appendices = []
272
273# If false, no module index is generated.
274# latex_domain_indices = True
275
276
277# -- Options for manual page output ---------------------------------------
278
279# One entry per manual page. List of tuples
280# (source start file, name, description, authors, manual section).
281man_pages = [
282 (master_doc, target_name,
283 title, [author], 1)
284]
285
286# If true, show URL addresses after external links.
287# man_show_urls = False
288
289
290# -- Options for Texinfo output -------------------------------------------
291
292# Grouping the document tree into Texinfo files. List of tuples
293# (source start file, target name, title, author,
294# dir menu entry, description, category)
295texinfo_documents = [
296 (master_doc, target_name,
297 title, author, project,
298 description, category),
299]
300
301# Documents to append as an appendix to all manuals.
302# texinfo_appendices = []
303
304# If false, no module index is generated.
305# texinfo_domain_indices = True
306
307# How to display URL addresses: 'footnote', 'no', or 'inline'.
308# texinfo_show_urls = 'footnote'
309
310# If true, do not generate a @detailmenu in the "Top" node's menu.
311# texinfo_no_detailmenu = False
312
313
314watermark = os.popen("git branch --contains $(git rev-parse HEAD)\
315| awk -F/ '/stable/ {print $2}'").read().strip(' \n\t').capitalize()
316if watermark == "":
317 watermark = "Pre-release"
318
319# -- Options for sphinxmark -----------------------------------------------
320sphinxmark_enable = True
321sphinxmark_div = 'docs-body'
322sphinxmark_image = 'text'
323sphinxmark_text = watermark
324sphinxmark_text_color = (128, 128, 128)
325sphinxmark_text_size = 70
diff --git a/doc/source/index.rst b/doc/source/index.rst
new file mode 100644
index 0000000..a81a5fe
--- /dev/null
+++ b/doc/source/index.rst
@@ -0,0 +1,32 @@
1==================================
2Tacker role for OpenStack-Ansible
3==================================
4
5:tags: openstack, tacker, cloud, ansible
6:category: \*nix
7
8To clone or view the source code for this repository, visit the role repository
9for `os_tacker <https://github.com/openstack/openstack-ansible-os_tacker>`_.
10
11Default variables
12~~~~~~~~~~~~~~~~~
13
14.. literalinclude:: ../../defaults/main.yml
15 :language: yaml
16 :start-after: under the License.
17
18Required variables
19~~~~~~~~~~~~~~~~~~
20
21<TODO>
22
23Example playbook
24~~~~~~~~~~~~~~~~
25
26.. literalinclude:: ../../examples/playbook.yml
27 :language: yaml
28
29Tags
30~~~~
31
32<TODO>
diff --git a/releasenotes/notes/.placeholder b/releasenotes/notes/.placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/releasenotes/notes/.placeholder
diff --git a/releasenotes/source/_static/.placeholder b/releasenotes/source/_static/.placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/releasenotes/source/_static/.placeholder
diff --git a/releasenotes/source/_templates/.placeholder b/releasenotes/source/_templates/.placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/releasenotes/source/_templates/.placeholder
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
new file mode 100644
index 0000000..41f4f66
--- /dev/null
+++ b/releasenotes/source/conf.py
@@ -0,0 +1,289 @@
1#!/usr/bin/env python3
2
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# This file is execfile()d with the current directory set to its
17# containing dir.
18#
19# Note that not all possible configuration values are present in this
20# autogenerated file.
21#
22# All configuration values have a default; values that are commented out
23# serve to show the default.
24
25import pbr.version
26
27# If extensions (or modules to document with autodoc) are in another directory,
28# add these directories to sys.path here. If the directory is relative to the
29# documentation root, use os.path.abspath to make it absolute, like shown here.
30# sys.path.insert(0, os.path.abspath('.'))
31
32# -- General configuration ------------------------------------------------
33
34# If your documentation needs a minimal Sphinx version, state it here.
35# needs_sphinx = '1.0'
36
37# Add any Sphinx extension module names here, as strings. They can be
38# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
39# ones.
40extensions = [
41 'openstackdocstheme',
42 'reno.sphinxext',
43]
44
45# Add any paths that contain templates here, relative to this directory.
46templates_path = ['_templates']
47
48# The suffix of source filenames.
49source_suffix = '.rst'
50
51# The encoding of source files.
52# source_encoding = 'utf-8-sig'
53
54# The master toctree document.
55master_doc = 'index'
56
57# General information about the project.
58author = 'OpenStack-Ansible Contributors'
59category = 'Miscellaneous'
60copyright = '2014-2017, OpenStack-Ansible Contributors'
61description = 'OpenStack-Ansible deploys OpenStack environments using Ansible.'
62project = 'OpenStack-Ansible'
63role_name = 'os_tacker'
64target_name = 'openstack-ansible-' + role_name
65title = 'OpenStack-Ansible Release Notes: ' + role_name + 'role'
66
67# The link to the browsable source code (for the left hand menu)
68oslosphinx_cgit_link = 'https://git.openstack.org/cgit/openstack/' + target_name
69
70# The version info for the project you're documenting, acts as replacement for
71# |version| and |release|, also used in various other places throughout the
72# built documents.
73#
74# The short X.Y version.
75version_info = pbr.version.VersionInfo(target_name)
76# The full version, including alpha/beta/rc tags.
77release = version_info.version_string_with_vcs()
78# The short X.Y version.
79version = version_info.canonical_version_string()
80
81# openstackdocstheme options
82repository_name = 'openstack/' + target_name
83bug_project = project.lower()
84bug_tag = ''
85
86# The language for content autogenerated by Sphinx. Refer to documentation
87# for a list of supported languages.
88# language = None
89
90# There are two options for replacing |today|: either, you set today to some
91# non-false value, then it is used:
92# today = ''
93# Else, today_fmt is used as the format for a strftime call.
94# today_fmt = '%B %d, %Y'
95
96# List of patterns, relative to source directory, that match files and
97# directories to ignore when looking for source files.
98exclude_patterns = []
99
100# The reST default role (used for this markup: `text`) to use for all
101# documents.
102# default_role = None
103
104# If true, '()' will be appended to :func: etc. cross-reference text.
105# add_function_parentheses = True
106
107# If true, the current module name will be prepended to all description
108# unit titles (such as .. function::).
109# add_module_names = True
110
111# If true, sectionauthor and moduleauthor directives will be shown in the
112# output. They are ignored by default.
113# show_authors = False
114
115# The name of the Pygments (syntax highlighting) style to use.
116pygments_style = 'sphinx'
117
118# A list of ignored prefixes for module index sorting.
119# modindex_common_prefix = []
120
121# If true, keep warnings as "system message" paragraphs in the built documents.
122# keep_warnings = False
123
124
125# -- Options for HTML output ----------------------------------------------
126
127# The theme to use for HTML and HTML Help pages. See the documentation for
128# a list of builtin themes.
129html_theme = 'openstackdocs'
130
131# Theme options are theme-specific and customize the look and feel of a theme
132# further. For a list of options available for each theme, see the
133# documentation.
134# html_theme_options = {}
135
136# Add any paths that contain custom themes here, relative to this directory.
137# html_theme_path = []
138
139# The name for this set of Sphinx documents. If None, it defaults to
140# "<project> v<release> documentation".
141# html_title = None
142
143# A shorter title for the navigation bar. Default is the same as html_title.
144# html_short_title = None
145
146# The name of an image file (relative to this directory) to place at the top
147# of the sidebar.
148# html_logo = None
149
150# The name of an image file (within the static path) to use as favicon of the
151# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
152# pixels large.
153# html_favicon = None
154
155# Add any paths that contain custom static files (such as style sheets) here,
156# relative to this directory. They are copied after the builtin static files,
157# so a file named "default.css" will overwrite the builtin "default.css".
158html_static_path = ['_static']
159
160# Add any extra paths that contain custom files (such as robots.txt or
161# .htaccess) here, relative to this directory. These files are copied
162# directly to the root of the documentation.
163# html_extra_path = []
164
165# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
166# using the given strftime format.
167html_last_updated_fmt = '%Y-%m-%d %H:%M'
168
169# If true, SmartyPants will be used to convert quotes and dashes to
170# typographically correct entities.
171# html_use_smartypants = True
172
173# Custom sidebar templates, maps document names to template names.
174# html_sidebars = {}
175
176# Additional templates that should be rendered to pages, maps page names to
177# template names.
178# html_additional_pages = {}
179
180# If false, no module index is generated.
181# html_domain_indices = True
182
183# If false, no index is generated.
184# html_use_index = True
185
186# If true, the index is split into individual pages for each letter.
187# html_split_index = False
188
189# If true, links to the reST sources are added to the pages.
190# html_show_sourcelink = True
191
192# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
193# html_show_sphinx = True
194
195# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
196# html_show_copyright = True
197
198# If true, an OpenSearch description file will be output, and all pages will
199# contain a <link> tag referring to it. The value of this option must be the
200# base URL from which the finished HTML is served.
201# html_use_opensearch = ''
202
203# This is the file name suffix for HTML files (e.g. ".xhtml").
204# html_file_suffix = None
205
206# Output file base name for HTML help builder.
207htmlhelp_basename = target_name + '-docs'
208
209
210# -- Options for LaTeX output ---------------------------------------------
211
212latex_elements = {
213 # The paper size ('letterpaper' or 'a4paper').
214 # 'papersize': 'letterpaper',
215
216 # The font size ('10pt', '11pt' or '12pt').
217 # 'pointsize': '10pt',
218
219 # Additional stuff for the LaTeX preamble.
220 # 'preamble': '',
221}
222
223# Grouping the document tree into LaTeX files. List of tuples
224# (source start file, target name, title,
225# author, documentclass [howto, manual, or own class]).
226latex_documents = [
227 (master_doc, target_name + '.tex',
228 title, author, 'manual'),
229]
230
231# The name of an image file (relative to this directory) to place at the top of
232# the title page.
233# latex_logo = None
234
235# For "manual" documents, if this is true, then toplevel headings are parts,
236# not chapters.
237# latex_use_parts = False
238
239# If true, show page references after internal links.
240# latex_show_pagerefs = False
241
242# If true, show URL addresses after external links.
243# latex_show_urls = False
244
245# Documents to append as an appendix to all manuals.
246# latex_appendices = []
247
248# If false, no module index is generated.
249# latex_domain_indices = True
250
251
252# -- Options for manual page output ---------------------------------------
253
254# One entry per manual page. List of tuples
255# (source start file, name, description, authors, manual section).
256man_pages = [
257 (master_doc, target_name,
258 title, [author], 1)
259]
260
261# If true, show URL addresses after external links.
262# man_show_urls = False
263
264
265# -- Options for Texinfo output -------------------------------------------
266
267# Grouping the document tree into Texinfo files. List of tuples
268# (source start file, target name, title, author,
269# dir menu entry, description, category)
270texinfo_documents = [
271 (master_doc, target_name,
272 title, author, project,
273 description, category),
274]
275
276# Documents to append as an appendix to all manuals.
277# texinfo_appendices = []
278
279# If false, no module index is generated.
280# texinfo_domain_indices = True
281
282# How to display URL addresses: 'footnote', 'no', or 'inline'.
283# texinfo_show_urls = 'footnote'
284
285# If true, do not generate a @detailmenu in the "Top" node's menu.
286# texinfo_no_detailmenu = False
287
288# -- Options for Internationalization output ------------------------------
289locale_dirs = ['locale/']
diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst
new file mode 100644
index 0000000..b5a697c
--- /dev/null
+++ b/releasenotes/source/index.rst
@@ -0,0 +1,8 @@
1================================
2 OpenStack-Ansible Release Notes
3================================
4
5.. toctree::
6 :maxdepth: 1
7
8 unreleased
diff --git a/releasenotes/source/unreleased.rst b/releasenotes/source/unreleased.rst
new file mode 100644
index 0000000..cd22aab
--- /dev/null
+++ b/releasenotes/source/unreleased.rst
@@ -0,0 +1,5 @@
1==============================
2 Current Series Release Notes
3==============================
4
5.. release-notes::
diff --git a/run_tests.sh b/run_tests.sh
new file mode 100755
index 0000000..969e3db
--- /dev/null
+++ b/run_tests.sh
@@ -0,0 +1,69 @@
1#!/usr/bin/env bash
2# Copyright 2015, Rackspace US, Inc.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# Note:
17# This file is maintained in the openstack-ansible-tests repository.
18# https://git.openstack.org/cgit/openstack/openstack-ansible-tests/tree/run_tests.sh
19# If you need to modify this file, update the one in the openstack-ansible-tests
20# repository and then update this file as well. The purpose of this file is to
21# prepare the host and then execute all the tox tests.
22#
23
24## Shell Opts ----------------------------------------------------------------
25set -xeu
26
27## Vars ----------------------------------------------------------------------
28
29export WORKING_DIR=${WORKING_DIR:-$(pwd)}
30
31## Main ----------------------------------------------------------------------
32
33source /etc/os-release || source /usr/lib/os-release
34
35install_pkg_deps() {
36 pkg_deps="git"
37
38 case ${ID,,} in
39 *suse*) pkg_mgr_cmd="zypper -n in" ;;
40 centos|rhel) pkg_mgr_cmd="yum install -y" ;;
41 fedora) pkg_mgr_cmd="dnf -y install" ;;
42 ubuntu|debian) pkg_mgr_cmd="apt-get install -y" ;;
43 *) echo "unsupported distribution: ${ID,,}"; exit 1 ;;
44 esac
45
46 eval sudo $pkg_mgr_cmd $pkg_deps
47}
48
49git_clone_repo() {
50 if [[ ! -d tests/common ]]; then
51 # The tests repo doesn't need a clone, we can just
52 # symlink it.
53 if [[ "$(basename ${WORKING_DIR})" == "openstack-ansible-tests" ]]; then
54 ln -s ${WORKING_DIR} ${WORKING_DIR}/tests/common
55 else
56 git clone \
57 https://git.openstack.org/openstack/openstack-ansible-tests \
58 tests/common
59 fi
60 fi
61}
62
63install_pkg_deps
64
65git_clone_repo
66
67# start executing the main test script
68source tests/common/run_tests_common.sh
69
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..3f38f3d
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,24 @@
1[metadata]
2name = openstack-ansible-os_tacker
3summary = os_tacker role for OpenStack-Ansible
4description-file =
5 README.rst
6author = OpenStack
7author-email = openstack-dev@lists.openstack.org
8home-page = https://docs.openstack.org/openstack-ansible-os_neutron/latest/
9classifier =
10 Intended Audience :: Developers
11 Intended Audience :: System Administrators
12 License :: OSI Approved :: Apache Software License
13 Operating System :: POSIX :: Linux
14
15[build_sphinx]
16all_files = 1
17build-dir = doc/build
18source-dir = doc/source
19
20[pbr]
21warnerrors = True
22
23[wheel]
24universal = 1
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..566d844
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
1# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
17import setuptools
18
19# In python < 2.7.4, a lazy loading of package `pbr` will break
20# setuptools if some other modules registered functions in `atexit`.
21# solution from: http://bugs.python.org/issue15881#msg170215
22try:
23 import multiprocessing # noqa
24except ImportError:
25 pass
26
27setuptools.setup(
28 setup_requires=['pbr>=2.0.0'],
29 pbr=True)
diff --git a/tasks/main.yml b/tasks/main.yml
index 95e4db5..9bc9970 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -30,6 +30,7 @@
30- name: Check init system 30- name: Check init system
31 command: cat /proc/1/comm 31 command: cat /proc/1/comm
32 register: _pid1_name 32 register: _pid1_name
33 changed_when: false
33 tags: 34 tags:
34 - always 35 - always
35 36
diff --git a/tasks/tacker_db_setup.yml b/tasks/tacker_db_setup.yml
index 3aa35d1..3e12649 100644
--- a/tasks/tacker_db_setup.yml
+++ b/tasks/tacker_db_setup.yml
@@ -13,8 +13,9 @@
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. 14# limitations under the License.
15 15
16# TODO(mbuil): Fix the ansible lint
16- name: Perform a tacker DB sync 17- name: Perform a tacker DB sync
17 command: "{{ tacker_bin }}/tacker-db-manage 18 command: "{{ tacker_bin }}/tacker-db-manage
18 --config-file {{ tacker_etc_dir }}/tacker.conf upgrade head" 19 --config-file {{ tacker_etc_dir }}/tacker.conf upgrade head"
19 become: yes 20 become: yes
20 become_user: "{{ tacker_system_user_name }}" 21 become_user: "{{ tacker_system_user_name }}"
@@ -22,3 +23,4 @@
22 - tacker-db-sync 23 - tacker-db-sync
23 - tacker-setup 24 - tacker-setup
24 - tacker-command-bin 25 - tacker-command-bin
26 - skip_ansible_lint
diff --git a/tasks/tacker_init_upstart.yml b/tasks/tacker_init_upstart.yml
index 6738e9d..7d6f6de 100644
--- a/tasks/tacker_init_upstart.yml
+++ b/tasks/tacker_init_upstart.yml
@@ -26,10 +26,14 @@
26 notify: 26 notify:
27 - Restart tacker services 27 - Restart tacker services
28 28
29# TODO(mbuil): Fix the ansible lint
30# probably replace shell by command
29- name: Reload init scripts 31- name: Reload init scripts
30 shell: | 32 shell: |
31 initctl reload-configuration 33 initctl reload-configuration
32 when: upstart_init | changed 34 when: upstart_init | changed
33 notify: 35 notify:
34 - Restart tacker services 36 - Restart tacker services
37 tags:
38 - skip_ansible_lint
35 39
diff --git a/tasks/tacker_install.yml b/tasks/tacker_install.yml
index 988c268..807bfde 100644
--- a/tasks/tacker_install.yml
+++ b/tasks/tacker_install.yml
@@ -51,6 +51,8 @@
51 when: 51 when:
52 - not tacker_developer_mode | bool 52 - not tacker_developer_mode | bool
53 53
54# TODO(mbuil): Fix the ansible lint
55# Hint: latest should be a var.
54- name: Install requires pip packages 56- name: Install requires pip packages
55 pip: 57 pip:
56 name: "{{ tacker_requires_pip_packages | join(' ') }}" 58 name: "{{ tacker_requires_pip_packages | join(' ') }}"
@@ -60,6 +62,8 @@
60 until: install_packages|success 62 until: install_packages|success
61 retries: 5 63 retries: 5
62 delay: 2 64 delay: 2
65 tags:
66 - skip_ansible_lint
63 67
64- name: Get local venv checksum 68- name: Get local venv checksum
65 stat: 69 stat:
@@ -111,6 +115,8 @@
111 notify: 115 notify:
112 - Restart tacker services 116 - Restart tacker services
113 117
118# TODO(mbuil): Fix the ansible lint
119# hint: latest should be a var.
114- name: Install pip packages 120- name: Install pip packages
115 pip: 121 pip:
116 name: "{{ tacker_pip_packages | join(' ') }}" 122 name: "{{ tacker_pip_packages | join(' ') }}"
@@ -126,6 +132,8 @@
126 - tacker_get_venv | failed or tacker_developer_mode | bool 132 - tacker_get_venv | failed or tacker_developer_mode | bool
127 notify: 133 notify:
128 - Restart tacker services 134 - Restart tacker services
135 tags:
136 - skip_ansible_lint
129 137
130- name: Update virtualenv path 138- name: Update virtualenv path
131 command: > 139 command: >
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 0000000..a4923af
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,16 @@
1# The order of packages is significant, because pip processes them in the order
2# of appearance. Changing the order has an impact on the overall integration
3# process, which may cause wedges in the gate later.
4bashate>=0.2 # Apache-2.0
5flake8<2.6.0,>=2.5.4 # MIT
6pyasn1!=0.2.3 # BSD
7pyOpenSSL>=0.14 # Apache-2.0
8requests>=2.14.2 # Apache-2.0
9ndg-httpsclient>=0.4.2;python_version<'3.0' # BSD
10
11# this is required for the docs build jobs
12sphinx>=1.6.2 # BSD
13openstackdocstheme>=1.11.0 # Apache-2.0
14doc8 # Apache-2.0
15reno!=2.3.1,>=1.8.0 # Apache-2.0
16sphinxmark>=0.1.14 # Apache-2.0
diff --git a/tests/ansible-role-requirements.yml b/tests/ansible-role-requirements.yml
new file mode 100644
index 0000000..ba9188a
--- /dev/null
+++ b/tests/ansible-role-requirements.yml
@@ -0,0 +1,44 @@
1- name: apt_package_pinning
2 src: https://git.openstack.org/openstack/openstack-ansible-apt_package_pinning
3 scm: git
4 version: master
5- name: pip_install
6 src: https://git.openstack.org/openstack/openstack-ansible-pip_install
7 scm: git
8 version: master
9- name: memcached_server
10 src: https://git.openstack.org/openstack/openstack-ansible-memcached_server
11 scm: git
12 version: master
13- name: openstack_hosts
14 src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
15 scm: git
16 version: master
17- name: lxc_hosts
18 src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
19 scm: git
20 version: master
21- name: lxc_container_create
22 src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create
23 scm: git
24 version: master
25- name: galera_client
26 src: https://git.openstack.org/openstack/openstack-ansible-galera_client
27 scm: git
28 version: master
29- name: galera_server
30 src: https://git.openstack.org/openstack/openstack-ansible-galera_server
31 scm: git
32 version: master
33- name: rabbitmq_server
34 src: https://git.openstack.org/openstack/openstack-ansible-rabbitmq_server
35 scm: git
36 version: master
37- name: os_keystone
38 src: https://git.openstack.org/openstack/openstack-ansible-os_keystone
39 scm: git
40 version: master
41- name: openstack_openrc
42 src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
43 scm: git
44 version: master
diff --git a/tox.ini b/tox.ini
index 04ede37..b3d4ada 100644
--- a/tox.ini
+++ b/tox.ini
@@ -119,26 +119,26 @@ install_command =
119commands = 119commands =
120 bash -c "{toxinidir}/tests/common/test-log-collect.sh" 120 bash -c "{toxinidir}/tests/common/test-log-collect.sh"
121 121
122 122# TODO(mbuil): Add functional testing
123[testenv:functional] 123#[testenv:functional]
124# Ignore_errors is set to true so that the logs are collected at the 124## Ignore_errors is set to true so that the logs are collected at the
125# end of the run. This will not produce a false positive. Any 125## end of the run. This will not produce a false positive. Any
126# exception will be mark the run as failed and exit 1 after all of 126## exception will be mark the run as failed and exit 1 after all of
127# the commands have been iterated through. 127## the commands have been iterated through.
128ignore_errors = True 128#ignore_errors = True
129# NOTE(odyssey4me): this target does not use constraints because 129## NOTE(odyssey4me): this target does not use constraints because
130# it doesn't work in OpenStack-CI yet. Once that's fixed, we can 130## it doesn't work in OpenStack-CI yet. Once that's fixed, we can
131# drop the install_command. 131## drop the install_command.
132install_command = 132#install_command =
133 {[testenv:func_base]install_command} 133# {[testenv:func_base]install_command}
134deps = 134#deps =
135 {[testenv:ansible]deps} 135# {[testenv:ansible]deps}
136commands = 136#commands =
137 {[testenv:ansible]commands} 137# {[testenv:ansible]commands}
138 ansible-playbook -i {toxinidir}/tests/inventory \ 138# ansible-playbook -i {toxinidir}/tests/inventory \
139 -e "install_test_packages=True" \ 139# -e "install_test_packages=True" \
140 {toxinidir}/tests/test.yml -vvvv 140# {toxinidir}/tests/test.yml -vvvv
141 {[testenv:func_logs]commands} 141# {[testenv:func_logs]commands}
142 142
143 143
144[testenv:linters] 144[testenv:linters]