
This role adds required IPA services given the server metadata and registers the base host as an ipa client. To be used when novajoin is not available, that is: * in the standalone node (to be used in TLS Everywhere CI), * when using pre-provisioned nodes. This commit also ensure we don't attempt to register a server/host that's already enrolled. This code requires the ansible-freeipa package to be installed. Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: Ie7fa5e1e83a3b015fd1e86c4666ace575e99833e
49 lines
1.3 KiB
INI
49 lines
1.3 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
# add docs to the list of environments once we actually have docs to generate
|
|
envlist = py36,pep8,molecule,linters
|
|
skipdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
|
|
passenv = *
|
|
sitepackages = True
|
|
deps =
|
|
-r {toxinidir}/ansible-requirements.txt
|
|
-r {toxinidir}/test-requirements.txt
|
|
commands = stestr run {posargs}
|
|
whitelist_externals =
|
|
tox
|
|
|
|
[testenv:molecule]
|
|
setenv =
|
|
ANSIBLE_FILTER_PLUGINS={toxinidir}/tripleo_ipa/ansible_plugins/filter
|
|
ANSIBLE_ROLES_PATH={toxinidir}/tripleo_ipa/roles.galaxy:{toxinidir}/tripleo_ipa/roles
|
|
deps =
|
|
-r {toxinidir}/molecule-requirements.txt
|
|
changedir = {toxinidir}/tripleo_ipa
|
|
commands = molecule test --all
|
|
|
|
[testenv:ansible-lint]
|
|
deps = {[testenv:linters]deps}
|
|
commands =
|
|
ansible-lint {toxinidir}/tripleo_ipa
|
|
|
|
[testenv:yamllint]
|
|
deps = {[testenv:linters]deps}
|
|
commands =
|
|
yamllint -c {toxinidir}/tripleo_ipa/.yamllint {toxinidir}/tripleo_ipa
|
|
|
|
[testenv:linters]
|
|
deps =
|
|
-r {toxinidir}/test-requirements.txt
|
|
commands =
|
|
{[testenv:ansible-lint]commands}
|
|
{[testenv:yamllint]commands}
|
|
|
|
[testenv:pep8]
|
|
envdir = {toxworkdir}/linters
|
|
commands =
|
|
python -m pre_commit run flake8 -a
|