Skip to content

Commit 815a0dc

Browse files
committed
add categories to salt-server-list
1 parent 81cebf9 commit 815a0dc

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

pillar/prod/roles.sls

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,63 +10,79 @@ roles:
1010
pattern: "backup*.sfo1.psf.io"
1111
purpose: "Automated backup of infrastructure"
1212
contact: "Infrastructure staff"
13+
category: "infra-infra"
1314
bugs:
1415
pattern: "bugs.*.psf.io"
1516
purpose: "Roundup hosting for CPython, Jython, and Roundup"
1617
contact: "Infrastructure staff"
18+
category: "python-core"
1719
buildbot:
1820
pattern: "buildbot*.nyc1.psf.io"
1921
purpose: "Hosting for CPython buildbot server"
2022
contact: "zware, haypo, pablogsa"
23+
category: "python-core"
2124
cdn-logs:
2225
pattern: "cdn-logs*.nyc1.psf.io"
2326
purpose: "Realtime log streaming from Fastly CDN for debug"
2427
contact: "Infrastructure Staff"
28+
category: "infra-infra"
2529
codespeed:
2630
pattern: "codespeed*.nyc1.psf.io"
2731
purpose: "Hosting for speed.python.org and speed.pypy.org"
2832
contact: ""
33+
category: "python-core"
2934
consul:
3035
pattern: "consul*.nyc1.psf.io"
3136
purpose: "Runs `Consul <https://www.consul.io/>`_ discovery service"
3237
contact: "Infrastructure Staff"
38+
category: "infra-infra"
3339
docs:
3440
pattern: "docs*.nyc1.psf.io"
3541
purpose: "Builds and serves CPython's documentation"
3642
contact: "mdk"
43+
category: "python-core"
3744
downloads:
3845
pattern: "downloads*.nyc1.psf.io"
3946
purpose: "Serves python.org downloads"
4047
contact: "CPython Release Managers"
48+
category: "python-core"
4149
gnumailman:
4250
pattern: "gnumailman.nyc1.psf.io"
4351
purpose: "GNU Mailman Project wiki and lists"
4452
contact: "Mark Sapiro"
53+
category: "mail"
4554
hg:
4655
pattern: "hg*.nyc1.psf.io"
4756
purpose: "Version Control Archives, serves hg.python.org and svn.python.org"
4857
contact: "Infrastructure Staff"
58+
category: "python-core"
4959
loadbalancer:
5060
pattern: "lb*.nyc1.psf.io"
5161
purpose: "Load balancer"
5262
contact: "Infrastructure Staff"
63+
category: "infra-infra"
5364
mail:
5465
pattern: "mail.ams1.psf.io"
5566
purpose: "Mail and mailman server"
5667
contact: "postmasters"
68+
category: "mail"
5769
planet:
5870
pattern: "planet*.nyc1.psf.io"
5971
purpose: "Planet Python"
6072
contact: "benjamin"
73+
category: "community"
6174
pythontest:
6275
pattern: "pythontest*.nyc3.psf.io"
6376
purpose: "Test resources for CPython's test suite."
6477
contact: "Infrastructure Staff"
78+
category: "python-core"
6579
salt-master:
6680
pattern: "salt*.nyc1.psf.io"
6781
purpose: "Salt server"
6882
contact: "Infrastructure Staff"
83+
category: "infra-infra"
6984
moin:
7085
pattern: "moin*.nyc1.psf.io"
7186
purpose: "Hosts moin sites for wiki.python.org, wiki.jython.org"
7287
contact: "lemburg"
88+
category: "community"

salt/base/config/salt-server-list.rst.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
{% endfor %}
88

99
.. csv-table::
10-
:header: "Name", "Purpose", "Contact", "Distro", "Datacener"
10+
:header: "Name", "Purpose", "Contact", "Distro", "Datacener", "Category"
1111

1212
{% for server in salt['minion.list']()['minions']|sort -%}
1313
{% set role = salt['match.filter_by'](role_mapping, minion_id=server) -%}
1414
{% set datacenter = salt['mine.get']("*", "psf_dc").get(server, "") -%}
1515
{% set distro = salt['mine.get']("*", "osfinger").get(server, "") -%}
1616
{% set roleconfig = salt["pillar.get"]("roles", {}).get(role, {}) %}
17-
"{{ server }}", "{{ roleconfig.get("purpose", "") }}", "{{ roleconfig.get("contact", "") }}", "{{ distro }}", "{{ datacenter }}"
17+
"{{ server }}", "{{ roleconfig.get("purpose", "") }}", "{{ roleconfig.get("contact", "") }}", "{{ distro }}", "{{ datacenter }}","{{ roleconfig.get("category", "") }}"
1818
{%- endfor %}
1919

2020
..

0 commit comments

Comments
 (0)