Revision e5bb2ac389fc2d0d5730c265c95d4034ee13dcc1 authored by Faidon Liambotis on 29 May 2017, 21:24:04 UTC, committed by Faidon Liambotis on 08 June 2017, 23:23:04 UTC
Instead of hardcoding eth0 and eth1 in a bunch of places, use $monitor_iface (for eth0) and $data_iface (eth1) as parameters to role::labs::nfs::secondary and pass them to included classes as needed. We could use $facts['interface_primary'] for $monitor_iface (instead of eth0), but since we have to hardcode the value for $data_iface, that would be of limited value. Change-Id: I761da8f8d2e07e596c2d81a69d48543dc88ece2a
1 parent 96c5de1
tox.ini
[tox]
minversion = 1.6
skipsdist = True
envlist = py27, pep8
[flake8]
max-line-length = 100
ignore =
# Default non-PEP8 ignores
# See <https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes>
E121, E123, E126, E133, E226, E241, E242, E704, W503,
# E402: module level import not at top of file
E402
exclude =
# Do not lint the tox runtime directory
.tox,
# Ignore user dotfiles and scripts
modules/admin/files/home,
# Upstream files that don't pass flake8 but should not be locally modified
modules/jupyterhub/files/jupyterhub_config.py,
modules/jupyterhub/files/nchp_config.py,
modules/letsencrypt/files/acme_tiny.py,
modules/mailman/files/mm_cfg.py,
modules/postgresql/files/check_postgres_replication_lag.py,
modules/varnish/files/varnishapi.py
[testenv]
deps =
nose
-rmodules/admin/data/requirements.txt
commands = nosetests modules/admin/data modules/mediawiki/files/apache/sites/redirects
[testenv:pep8]
deps = flake8==3.3.0
commands = flake8
Computing file changes ...