Fedora Infrastructure Ansible Repository
Find a file
Adam Williamson d9db9714d8 Handle systems where the main if is not eth0 a bit better
ifcfg.j2 has a pretty awkward assumption that the interface
connected to the infra network will be eth0 (or enc900) - it
only includes the GATEWAY, DOMAIN and DNS1/DNS2 lines if the
interface is one of those two. It seems we were trying quite
hard to make eth0 always be "the interface", but now that's
been broken in a few systems. enc900 was added as apparently
that's what the main interface is called on some s390 boxes;
on openqa-ppc64le-01 the if that's connected is eth2 (eth0 is
present, but not connected), and on the new qa01 and qa02, it's
em3 (according to smooge, we have to use 'predictable' interface
names on those boxes as the old names really *do* get assigned
to different interfaces on each boot).

So since we now have several different cases where the 'eth0'
assumption doesn't hold, let's build a slightly better system
for handling it. This replaces ifcfg.j2's hard-coded list with
a variable, and sets the default value of the variable to the
two names ifcfg.j2 handled before: [ 'eth0', 'enc900' ]. This
allows the systems where the main interface is *not* one of
these to set the variable accordingly, and hopefully that'll
give them correct ifcfg files.

This *should* solve the problem of openqa-ppc64le-01.qa and qa01
and qa02 constantly dropping out of network connectivity any
time they got rebooted or the network plays got run.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-15 11:09:49 -08:00
callback_plugins First round of porting callbacks to work with Ansible-2.4.0 2017-10-16 15:53:18 +00:00
files supress warning messages in prod as well for reg 2018-11-30 17:07:53 +00:00
filter_plugins Give staging fedmsg also prod policy since we have prod->stg message flow 2018-04-17 02:24:14 +02:00
handlers First cut at migrating openqa-stg to fedmsg-3 2018-11-26 10:53:16 -08:00
inventory Handle systems where the main if is not eth0 a bit better 2018-12-15 11:09:49 -08:00
library Look, our very own copy of nova_compute module. We cannot move to os_server because that requires python-shade, which is not packaged for RHEL7. When/if we move batcave01 to fedora we can drop this. 2017-11-07 18:32:12 +00:00
playbooks just comment this for now 2018-12-15 00:23:20 +00:00
roles Handle systems where the main if is not eth0 a bit better 2018-12-15 11:09:49 -08:00
scripts Try and make a public anitya dump with the right tables. 2018-10-08 17:41:07 +00:00
tasks Fix up logic a bit. 2018-11-24 19:57:14 +00:00
vars no f27 anymore 2018-12-01 23:48:17 +00:00
.gitignore Migrate a bunch of things to roles. Thanks to misc! 2013-08-19 20:12:26 +00:00
.mailmap Add a .mailmap to map all my commits to one author in git shortlog. This is purely for my sanity, but also demonstrates how someone else could do similarly if needed. 2018-08-27 22:56:55 +00:00
CONVENTIONS Fix typo in doc 2016-04-04 14:33:21 +00:00
master.yml add rabbitmq to master playboook 2018-11-23 19:31:57 +00:00
README Undo test 2016-11-01 09:42:09 +00:00
README.cloud remove some jenkins lines 2018-04-26 15:40:14 +00:00
README.md Add readme 2018-11-22 21:52:38 +01:00
TODO test 2018-05-09 02:55:42 +00:00

Fedora Infrastructure

Welcome! This is the Fedora Infrastructure Pagure project.

issues against this project are for issues in Fedora Infrastructure.

git repo of this project is misc scripts and tools for Fedora

If you are looking for the Fedora Infrastructure ansible repo, that is not here, look at:

https://infrastructure.fedoraproject.org/cgit/ansible.git/

If you would like to help out with Fedora Infrastructure, see:

https://fedoraproject.org/wiki/Infrastructure/GettingStarted and https://fedoraproject.org/wiki/Infrastructure_Apprentice