mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
Compare commits
14 Commits
4d82d65a9b
...
6ceed5e1b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceed5e1b9 | ||
|
|
6789314251 | ||
|
|
5acda7f784 | ||
|
|
af685201f8 | ||
|
|
52dffb8df4 | ||
|
|
fe1015ab14 | ||
|
|
182104ec0f | ||
|
|
e1524d1fd0 | ||
|
|
e8bd81d11d | ||
|
|
e7c35d4d2b | ||
|
|
a3617c3707 | ||
|
|
16ce599474 | ||
|
|
a81f88f031 | ||
|
|
f694f17101 |
@@ -13,9 +13,9 @@ import sys
|
||||
|
||||
import argparse
|
||||
import fnmatch
|
||||
import locale
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
# Use utf8 prefixes in diff, these need to be a "normal" width 1 character
|
||||
@@ -425,7 +425,6 @@ def _pre_cmd__verbose(args):
|
||||
globals()['conf_short_duration'] = False
|
||||
globals()['conf_stat_4_hosts'] *= (args.verbose * 2)
|
||||
|
||||
|
||||
def _wild_eq(s1, s2):
|
||||
""" Compare two strings, but allow '?' to mean anything. """
|
||||
if s1 == '?' or s2 == '?':
|
||||
@@ -1058,8 +1057,53 @@ def _cmd_history_keep(args):
|
||||
fn = fname + '.' + b
|
||||
os.unlink(fn)
|
||||
|
||||
def inventory_hosts():
|
||||
# The "correct" way to do this is something like:
|
||||
# ansible-inventory --list | jq -r '._meta.hostvars | keys[]'
|
||||
# ...but that is _much_ slower, as it's loading a lot of data/facts which
|
||||
# we ignore.
|
||||
cmds = ["ansible", "all", "--list-host"]
|
||||
p = subprocess.Popen(cmds, text=True, stdout=subprocess.PIPE)
|
||||
header = p.stdout.readline()
|
||||
if not header.strip().startswith("hosts ("):
|
||||
return set()
|
||||
|
||||
ret = set()
|
||||
for line in p.stdout:
|
||||
ret.add(line.strip())
|
||||
return ret
|
||||
|
||||
def remove_old_hosts():
|
||||
if not os.path.exists(fname):
|
||||
return
|
||||
|
||||
inv = inventory_hosts()
|
||||
if not inv: # If we can't get inventory, don't delete everything.
|
||||
return
|
||||
|
||||
odata = fname2lines(fname)
|
||||
fo = open(fname + ".rm_old_hosts.tmp", "w")
|
||||
for line in odata:
|
||||
host = line.split()[0]
|
||||
if host not in inv:
|
||||
print("Removing host:", host)
|
||||
continue
|
||||
fo.write(line)
|
||||
fo.write("\n")
|
||||
fo.close()
|
||||
os.rename(fname + ".rm_old_hosts.tmp", fname)
|
||||
|
||||
def _cmd_remove_old_hosts(args):
|
||||
remove_old_hosts()
|
||||
|
||||
def _cmd_update(args):
|
||||
cmd = args.cmd
|
||||
# First remove machines that aren't in inventory anymore, as the playbook
|
||||
# only adds/updates them.
|
||||
if cmd != "update-daily-refresh": # Just wastes time if refresh.
|
||||
remove_old_hosts()
|
||||
|
||||
# Now update whatever is left.
|
||||
if cmd == "update":
|
||||
cmd = "update-flush"
|
||||
if not os.path.exists(fname):
|
||||
@@ -1811,6 +1855,33 @@ def _cmdline_arg_hist(oval):
|
||||
msg += "\n History:", ", ".join([] + names + backups)
|
||||
raise argparse.ArgumentTypeError(msg)
|
||||
|
||||
_cmds_als = {
|
||||
"created" : ["installed", "reinstalled"],
|
||||
"difference" : ("diff", "diff-u"),
|
||||
"history-keep" : [],
|
||||
"history" : ["hist"],
|
||||
"hosts" : ("host", "host-u", "hosts-u"),
|
||||
"information" : ["info"],
|
||||
"list" : [],
|
||||
"list-n" : [],
|
||||
"old-list" : ["olist"],
|
||||
"oslist" : [],
|
||||
"oslist-n" : [],
|
||||
"statistics" : ["stats"],
|
||||
"update" : [],
|
||||
"update-daily" : [],
|
||||
"update-daily-refresh" : [],
|
||||
"update-fast" : [],
|
||||
"update-host" : [],
|
||||
"uptime-min" : ["uptime"],
|
||||
"uptime-max" : ("rebooted", "started"),
|
||||
None : set(),
|
||||
}
|
||||
for c in _cmds_als:
|
||||
if c is None: continue
|
||||
_cmds_als[c] = set(_cmds_als[c])
|
||||
_cmds_als[None].update(_cmds_als[c])
|
||||
_cmds_als[None].add(c)
|
||||
|
||||
def _cmd_help(args):
|
||||
prog = "updates+uptime"
|
||||
@@ -1818,7 +1889,22 @@ def _cmd_help(args):
|
||||
prog = os.path.basename(sys.argv[0])
|
||||
if not args.hcmd:
|
||||
_usage()
|
||||
elif args.hcmd in ("created", "installed", "reinstalled"):
|
||||
if args.hcmd not in _cmds_als[None]:
|
||||
print(" Unknown command:", args.hcmd)
|
||||
_usage()
|
||||
|
||||
def _eq_cmd(x):
|
||||
return args.hcmd == x or args.hcmd in _cmds_als[x]
|
||||
def _hlp_als(x):
|
||||
if not _cmds_als[x]:
|
||||
return ''
|
||||
als = set()
|
||||
als.add(x)
|
||||
als.update(_cmds_als[x])
|
||||
als.remove(args.hcmd)
|
||||
return f"""Aliases: {", ".join(sorted(als))}\n"""
|
||||
|
||||
if _eq_cmd("created"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [duration] [host*]
|
||||
|
||||
@@ -1828,21 +1914,33 @@ forever.
|
||||
|
||||
Easy way to see new machines.
|
||||
|
||||
{_hlp_als("created")}
|
||||
Eg. {prog} {args.hcmd} 0 *-test*
|
||||
{prog} {args.hcmd} 5w vmhost* bvmhost* buildhw*
|
||||
""", end='')
|
||||
elif args.hcmd in ("diff", "diff-u"):
|
||||
|
||||
elif _eq_cmd("difference"):
|
||||
print(f"""\
|
||||
Usage: {prog} diff [backup1] [backup2]
|
||||
Usage: {prog} {args.hcmd} [backup1] [backup2]
|
||||
|
||||
See the difference between the current state and backups.
|
||||
The -u variant shows before/after instead of modified.
|
||||
|
||||
utf8: {conf_utf8}
|
||||
{_conf_utf8_boot_ed} = Rebooted
|
||||
{_conf_utf8_boot_up} = Rebooted and updated
|
||||
{_conf_utf8_more_up} = More updates
|
||||
{_conf_utf8_less_up} = Less updates
|
||||
{_conf_utf8_diff_os} = Different OS information, but machine id is the same
|
||||
{_conf_utf8_diff_hw} = Machine id is different
|
||||
|
||||
{_hlp_als("difference")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} yesterday
|
||||
{prog} {args.hcmd} 2025-08-16 main
|
||||
""", end='')
|
||||
elif args.hcmd in ("history", "hist"):
|
||||
""", end='')
|
||||
|
||||
elif _eq_cmd("history"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
@@ -1850,9 +1948,11 @@ forever.
|
||||
|
||||
Kind of like: git log --pretty=oneline --abbrev-commit --decorate
|
||||
|
||||
{_hlp_als("history")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
elif args.hcmd == "history-keep":
|
||||
|
||||
elif _eq_cmd("history-keep"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [days]
|
||||
|
||||
@@ -1861,11 +1961,13 @@ forever.
|
||||
if you pass "1".
|
||||
|
||||
Logrotate, for history.
|
||||
|
||||
|
||||
{_hlp_als("history-keep")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} 32
|
||||
""", end='')
|
||||
elif args.hcmd in ("host", "hosts", "host-u", "hosts-u"):
|
||||
|
||||
elif _eq_cmd("hosts"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
@@ -1875,11 +1977,21 @@ if you pass "1".
|
||||
Easiest way to see how hosts have changed over time, the more history the
|
||||
better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
utf8: {conf_utf8}
|
||||
{_conf_utf8_boot_ed} = Rebooted
|
||||
{_conf_utf8_boot_up} = Rebooted and updated
|
||||
{_conf_utf8_more_up} = More updates
|
||||
{_conf_utf8_less_up} = Less updates
|
||||
{_conf_utf8_diff_os} = Different OS information, but machine id is the same
|
||||
{_conf_utf8_diff_hw} = Machine id is different
|
||||
|
||||
{_hlp_als("host")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} 'batcave*'
|
||||
{prog} {args.hcmd} 'batcave*' 'noc*'
|
||||
""", end='')
|
||||
elif args.hcmd in ("information", "info"):
|
||||
|
||||
elif _eq_cmd("information"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [host*] [backup] [backup]...
|
||||
|
||||
@@ -1887,31 +1999,37 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
If you want to compare things by hand, use this.
|
||||
|
||||
{_hlp_als("information")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} 'batcave*'
|
||||
{prog} {args.hcmd} 'noc*' main yesterday
|
||||
""", end='')
|
||||
elif args.hcmd in ("list",):
|
||||
|
||||
elif _eq_cmd("list"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [host*] [backup] [host*]...
|
||||
|
||||
See the current state of the hosts, can be filtered by name.
|
||||
|
||||
{_hlp_als("list")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} 'batcave*'
|
||||
{prog} {args.hcmd} 'noc*' yesterday '*-test.*'
|
||||
""", end='')
|
||||
elif args.hcmd in ("list-n",):
|
||||
|
||||
elif _eq_cmd("list-n"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [host*] [host*]...
|
||||
|
||||
See the current state of the hosts, can be filtered by name.
|
||||
|
||||
{_hlp_als("list-n")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} 'batcave*'
|
||||
{prog} {args.hcmd} 'batcave*' 'noc*'
|
||||
""", end='')
|
||||
elif args.hcmd in ("old-list", ):
|
||||
|
||||
elif _eq_cmd("old-list"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} duration
|
||||
|
||||
@@ -1919,29 +2037,35 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
Easiest way to see what hosts we aren't getting data for.
|
||||
|
||||
{_hlp_als("old-list")}
|
||||
Eg. {prog} {args.hcmd} 2d
|
||||
""", end='')
|
||||
elif args.hcmd in ("oslist",):
|
||||
|
||||
elif _eq_cmd("oslist"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [os*] [backup] [os*]...
|
||||
|
||||
See the current state, can be filtered by OS.
|
||||
|
||||
{_hlp_als("oslist")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} RedHat
|
||||
{prog} {args.hcmd} 10 yesterday 41
|
||||
""", end='')
|
||||
elif args.hcmd in ("oslist-n",):
|
||||
|
||||
elif _eq_cmd("oslist-n"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [os*] [os*]...
|
||||
|
||||
See the current state, can be filtered by OS.
|
||||
|
||||
{_hlp_als("oslist-n")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} RedHat
|
||||
{prog} {args.hcmd} F 10
|
||||
""", end='')
|
||||
elif args.hcmd in ("statistics", "stats"):
|
||||
|
||||
elif _eq_cmd("statistics"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} [backup] [host*] [host*]...
|
||||
|
||||
@@ -1949,45 +2073,37 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
Easiest way to see the current state of the hosts.
|
||||
|
||||
{_hlp_als("statistics")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
{prog} {args.hcmd} yesterday
|
||||
{prog} {args.hcmd} newest '*.stg.*' '*-test.*'
|
||||
""", end='')
|
||||
elif args.hcmd in ("update",):
|
||||
|
||||
elif _eq_cmd("update"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
Run update-fast, or update-daily if no daily backup.
|
||||
|
||||
Easiest way to update, from cron or cmdline after you change things. DTRT.
|
||||
Hosts removed from inventory are automatically removed on {args.hcmd}.
|
||||
|
||||
{_hlp_als("update")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
elif args.hcmd in ("update-fast",):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
Update the data for the hosts, in the main file (creating it if needed).
|
||||
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
elif args.hcmd in ("update-host",):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} host*
|
||||
|
||||
Run update-fast, only for the specified host(s).
|
||||
|
||||
Eg. {prog} {args.hcmd} bat\\*
|
||||
""", end='')
|
||||
elif args.hcmd in ("update-daily",):
|
||||
|
||||
elif _eq_cmd("update-daily"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
Run update-fast and force do a backup for today.
|
||||
Hosts removed from inventory are automatically removed on {args.hcmd}.
|
||||
|
||||
{_hlp_als("update-daily")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
elif args.hcmd in ("update-daily-refresh",):
|
||||
|
||||
elif _eq_cmd("update-daily-refresh"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
@@ -1995,9 +2111,33 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
Easiest way to refresh the current history for today.
|
||||
|
||||
{_hlp_als("update-daily-refresh")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
elif args.hcmd in ("uptime", "uptime-min"):
|
||||
|
||||
elif _eq_cmd("update-fast"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd}
|
||||
|
||||
Update the data for the hosts, in the main file (creating it if needed).
|
||||
Hosts removed from inventory are automatically removed on {args.hcmd}.
|
||||
|
||||
{_hlp_als("update-fast")}
|
||||
Eg. {prog} {args.hcmd}
|
||||
""", end='')
|
||||
|
||||
elif _eq_cmd("update-host"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} host*
|
||||
|
||||
Run update-fast, only for the specified host(s).
|
||||
Hosts removed from inventory are automatically removed on {args.hcmd}.
|
||||
|
||||
{_hlp_als("update-host")}
|
||||
Eg. {prog} {args.hcmd} bat\\*
|
||||
""", end='')
|
||||
|
||||
elif _eq_cmd("uptime-min"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} duration [backup]
|
||||
|
||||
@@ -2005,10 +2145,12 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
Easy way to see what has been rebooted recently.
|
||||
|
||||
{_hlp_als("uptime-min")}
|
||||
Eg. {prog} {args.hcmd} 32h
|
||||
{prog} {args.hcmd} 1d yesterday
|
||||
""", end='')
|
||||
elif args.hcmd in ("uptime-max", "rebooted", "started"):
|
||||
|
||||
elif _eq_cmd("uptime-max"):
|
||||
print(f"""\
|
||||
Usage: {prog} {args.hcmd} duration [backup]
|
||||
|
||||
@@ -2016,12 +2158,11 @@ better for this. Kind of like git blame, but instead of lines it's events.
|
||||
|
||||
Easy way to see what hasn't been rebooted recently.
|
||||
|
||||
{_hlp_als("uptime-max")}
|
||||
Eg. {prog} {args.hcmd} 26w
|
||||
{prog} {args.hcmd} 4w4d yesterday
|
||||
""", end='')
|
||||
else:
|
||||
print(" Unknown command:", args.hcmd)
|
||||
_usage()
|
||||
|
||||
|
||||
def _main():
|
||||
global conf_ansi_terminal
|
||||
@@ -2076,7 +2217,7 @@ def _main():
|
||||
|
||||
# -- Start of the real commands...
|
||||
|
||||
als = ['installed', 'reinstalled']
|
||||
als = _cmds_als["created"]
|
||||
cmd = subparsers.add_parser("created", aliases=als, help="list hosts")
|
||||
cmd.add_argument("dur", nargs='?', default=conf_created_dur_def,
|
||||
type=_cmdline_arg_duration, help="created within duration")
|
||||
@@ -2084,19 +2225,21 @@ def _main():
|
||||
__defs(func=_cmd_created)
|
||||
|
||||
# diff/diff-u commands
|
||||
cmd = subparsers.add_parser("diff", aliases=['diff-u'], help="diff")
|
||||
als = _cmds_als["difference"]
|
||||
cmd = subparsers.add_parser("difference", aliases=als, help="diff")
|
||||
cmd.add_argument("hists", nargs='*', type=_cmdline_arg_hist, help="history file")
|
||||
__defs(func=_cmd_diff)
|
||||
|
||||
# hosts/hosts-u commands
|
||||
als = ['host', 'hosts-u', 'host-u']
|
||||
als = _cmds_als["hosts"]
|
||||
hlp = "show history data about specific hosts"
|
||||
cmd = subparsers.add_parser("hosts", aliases=als, help=hlp)
|
||||
cmd.add_argument("hosts", nargs='*', help="wildcard hostname(s)")
|
||||
__defs(func=_cmd_host)
|
||||
|
||||
# history command
|
||||
cmd = subparsers.add_parser("history", aliases=['hist'], help="show history")
|
||||
als = _cmds_als["history"]
|
||||
cmd = subparsers.add_parser("history", aliases=als, help="show history")
|
||||
__defs(func=_cmd_history)
|
||||
|
||||
# history-keep command
|
||||
@@ -2107,8 +2250,9 @@ def _main():
|
||||
__defs(func=_cmd_history_keep)
|
||||
|
||||
# info command
|
||||
als = _cmds_als["information"]
|
||||
hlp = "show host information"
|
||||
cmd = subparsers.add_parser("information", aliases=['info'], help=hlp)
|
||||
cmd = subparsers.add_parser("information", aliases=als, help=hlp)
|
||||
cmd.add_argument("host", nargs='?', help="wildcard hostname")
|
||||
cmd.add_argument("hists", nargs='*',
|
||||
type=_cmdline_arg_hist, help="history file")
|
||||
@@ -2126,7 +2270,8 @@ def _main():
|
||||
cmd.add_argument("hosts", nargs='*', help="wildcard hostname(s)")
|
||||
__defs(func=_cmd_list)
|
||||
|
||||
cmd = subparsers.add_parser("old-list", aliases=['olist'],help="list hosts")
|
||||
als = _cmds_als["old-list"]
|
||||
cmd = subparsers.add_parser("old-list", aliases=als, help="list hosts")
|
||||
cmd.add_argument("dateage", type=_cmdline_arg_duration,
|
||||
help="data age minimum duration")
|
||||
__defs(func=_cmd_list)
|
||||
@@ -2151,6 +2296,8 @@ def _main():
|
||||
__defs(func=_cmd_stats)
|
||||
|
||||
# update commands
|
||||
# We pretend these are sep. commands, like oslist vs. list, but don't C&P.
|
||||
# als = _cmds_als["update"]
|
||||
als = ['update-daily','update-daily-refresh', 'update-fast', 'update-flush']
|
||||
cmd = subparsers.add_parser("update", aliases=als, help="update DB")
|
||||
__defs(func=_cmd_update)
|
||||
@@ -2159,14 +2306,17 @@ def _main():
|
||||
cmd.add_argument("host", help="wildcard hostname")
|
||||
__defs(func=_cmd_update)
|
||||
|
||||
cmd = subparsers.add_parser("remove-old-hosts", help="update DB")
|
||||
__defs(func=_cmd_remove_old_hosts)
|
||||
|
||||
# uptime/uptime-min/uptime-max commands
|
||||
als = ['rebooted','started']
|
||||
als = _cmds_als["uptime-max"]
|
||||
cmd = subparsers.add_parser("uptime-max", aliases=als, help="list hosts")
|
||||
cmd.add_argument("dur", type=_cmdline_arg_duration,
|
||||
help="uptime maximum duration")
|
||||
__defs(func=_cmd_uptime)
|
||||
|
||||
als = ['uptime']
|
||||
als = _cmds_als["uptime-min"]
|
||||
cmd = subparsers.add_parser("uptime-min", help="list hosts", aliases=als)
|
||||
cmd.add_argument("dur", type=_cmdline_arg_duration,
|
||||
help="uptime minimum duration")
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
---
|
||||
datacenter: rdu3
|
||||
datacenter: rdu3-iso
|
||||
dns1: 10.16.163.33
|
||||
dns2: 10.16.163.34
|
||||
dns_search1: "rdu3.fedoraproject.org"
|
||||
dns_search2: "vpn.fedoraproject.org"
|
||||
dns_search3: "fedoraproject.org"
|
||||
dns_search1: "vpn.fedoraproject.org"
|
||||
dns_search2: "fedoraproject.org"
|
||||
eth0_ipv4_ip: 10.16.179.65
|
||||
eth0_ipv4_gw: 10.16.179.254
|
||||
eth0_ipv6_ip: 2620:52:6:1161::36
|
||||
@@ -32,7 +31,7 @@ network_connections:
|
||||
- "{{ dns_search2 }}"
|
||||
gateway4: "{{ eth0_ipv4_gw }}"
|
||||
gateway6: "{{ eth0_ipv6_gw }}"
|
||||
mac: "{{ mac0 }}"
|
||||
mac: "{{ ansible_default_ipv4.macaddress }}"
|
||||
name: eth0
|
||||
type: ethernet
|
||||
nrpe_procs_crit: 1400
|
||||
|
||||
@@ -4,6 +4,8 @@ dns_search1: vpn.fedoraproject.org
|
||||
dns_search2: fedoraproject.org
|
||||
eth0_ipv4_gw: 10.16.179.254
|
||||
eth0_ipv4_ip: 10.16.179.62
|
||||
eth0_ipv6_gw: 2620:52:6:1161::1
|
||||
eth0_ipv6_ip: 2620:52:6:1161::33
|
||||
eth0_nm: 255.255.255.0
|
||||
ks_repo: https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/43/Server/x86_64/os/
|
||||
ks_url: https://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-fedora
|
||||
|
||||
@@ -7,6 +7,8 @@ dns_search2: vpn.fedoraproject.org
|
||||
dns_search3: fedoraproject.org
|
||||
eth0_ipv4_gw: 10.16.179.254
|
||||
eth0_ipv4_ip: 10.16.179.63
|
||||
eth0_ipv6_gw: 2620:52:6:1161::1
|
||||
eth0_ipv6_ip: 2620:52:6:1161::34
|
||||
eth0_nm: 255.255.255.0
|
||||
ks_repo: https://infrastructure.fedoraproject.org/repo/rhel/RHEL9-x86_64/
|
||||
ks_url: https://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel
|
||||
|
||||
@@ -3,12 +3,13 @@ br0_dev: eth0
|
||||
br0_ipv4_ip: 10.16.179.42
|
||||
br0_ipv4_gw: 10.16.179.254
|
||||
br0_ipv4_nm: 24
|
||||
br0_port0_mac: '{{ mac0 }}'
|
||||
datacenter: rdu3
|
||||
dns_search1: vpn.fedoraproject.org
|
||||
dns_search2: fedoraproject.org
|
||||
mac0: c8:4b:d6:af:2f:ef
|
||||
mac2: c8:4b:d6:af:2f:f0
|
||||
mac1: c8:4b:d6:af:2f:f0
|
||||
mac2: 6c:fe:54:72:b8:24
|
||||
mac3: 6c:fe:54:72:b8:25
|
||||
network_connections:
|
||||
# Bridge profile
|
||||
- name: br0
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
br0_ipv4_ip: 10.16.179.43
|
||||
br0_ipv4_gw: 10.16.179.254
|
||||
br0_ipv4_nm: 24
|
||||
br0_port0_mac: '{{ mac0 }}'
|
||||
datacenter: rdu3
|
||||
dns_search1: fedoraproject.org
|
||||
mac0: 24:6e:96:d5:a4:0a
|
||||
mac1: 24:6e:96:d5:a3:ea
|
||||
mac2: 24:6e:96:d5:a4:0b
|
||||
mac3: 24:6e:96:d5:a3:ec
|
||||
network_connections:
|
||||
# Bridge profile
|
||||
- name: br0
|
||||
@@ -34,7 +36,7 @@ network_connections:
|
||||
mode: 802.3ad
|
||||
# Port profile for the 1st Ethernet device
|
||||
- name: bond0-port1
|
||||
mac: "{{ mac2 }}"
|
||||
mac: "{{ mac1 }}"
|
||||
type: ethernet
|
||||
controller: bond0
|
||||
state: up
|
||||
|
||||
@@ -582,7 +582,7 @@ openqa01.rdu3.fedoraproject.org
|
||||
[smtp_mm]
|
||||
smtp-mm-ib01.fedoraproject.org
|
||||
smtp-mm-osuosl01.fedoraproject.org
|
||||
smtp-mm-iso01.fedoraproject.org
|
||||
smtp-mm-iso01.rdu3.fedoraproject.org
|
||||
|
||||
[smtp_auth]
|
||||
smtp-auth-iso01.rdu3.fedoraproject.org
|
||||
@@ -731,6 +731,8 @@ vmhost-x86-04.stg.rdu3.fedoraproject.org
|
||||
vmhost-x86-05.stg.rdu3.fedoraproject.org
|
||||
qvmhost-x86-01.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso01.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso02.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso03.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso04.rdu3.fedoraproject.org
|
||||
|
||||
[virthost_rdu3]
|
||||
@@ -741,10 +743,14 @@ vmhost-x86-04.rdu3.fedoraproject.org
|
||||
vmhost-x86-05.rdu3.fedoraproject.org
|
||||
qvmhost-x86-01.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso01.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso02.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso03.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso04.rdu3.fedoraproject.org
|
||||
|
||||
[virthost_iso]
|
||||
vmhost-x86-iso01.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso02.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso03.rdu3.fedoraproject.org
|
||||
vmhost-x86-iso04.rdu3.fedoraproject.org
|
||||
|
||||
[virthost_stg_rdu3]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
openGraph:
|
||||
#openGraph:
|
||||
# Enables Open Graph passthrough
|
||||
enabled: true
|
||||
# enabled: true
|
||||
# Enables the use of the HTTP host in the cache key, this enables
|
||||
# caching metadata for multiple http hosts at once.
|
||||
considerHost: true
|
||||
# considerHost: true
|
||||
# How long cached OpenGraph metadata should last in memory
|
||||
ttl: 24h
|
||||
# ttl: 24h
|
||||
bots:
|
||||
# allow rss feeds in bodhi and badges:
|
||||
# https://badges.fedoraproject.org/explore/badges/rss/
|
||||
|
||||
7
roles/hosts/files/proxy03.rdu3.fedoraproject.org-hosts
Normal file
7
roles/hosts/files/proxy03.rdu3.fedoraproject.org-hosts
Normal file
@@ -0,0 +1,7 @@
|
||||
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
||||
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
||||
|
||||
# Map canonical names of IPA servers to their VPN IP addresses
|
||||
192.168.1.156 ipa01.rdu3.fedoraproject.org
|
||||
192.168.1.157 ipa02.rdu3.fedoraproject.org
|
||||
192.168.1.162 ipa03.rdu3.fedoraproject.org
|
||||
@@ -0,0 +1,7 @@
|
||||
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
||||
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
||||
|
||||
# Map canonical names of IPA servers to their VPN IP addresses
|
||||
192.168.1.156 ipa01.rdu3.fedoraproject.org
|
||||
192.168.1.157 ipa02.rdu3.fedoraproject.org
|
||||
192.168.1.162 ipa03.rdu3.fedoraproject.org
|
||||
Reference in New Issue
Block a user