Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['myst_parser', "sphinx_copybutton"]
extensions = ['myst_parser', "sphinx_copybutton", 'sphinxcontrib.jquery', 'sphinx_datatables']

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down Expand Up @@ -185,3 +185,9 @@

# Output file base name for HTML help builder.
htmlhelp_basename = "PythonInfrastructuredoc"

# Enable MyST heading anchors
myst_heading_anchors = 2

# sphinx-datatables
datatables_options = {"paging": False}
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ furo
sphinx
myst-parser
sphinx-copybutton
sphinx-datatables
1 change: 1 addition & 0 deletions docs/salt-server-list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

.. csv-table::
:header: "Name", "Purpose", "Contact", "Distro", "Datacener"
:class: sphinx-datatable display compact


"backup.sfo1.psf.io", "Automated backup of infrastructure", "Infrastructure staff", "Ubuntu-24.04", "sfo1"
Expand Down
16 changes: 16 additions & 0 deletions pillar/prod/roles.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,79 @@ roles:
pattern: "backup*.sfo1.psf.io"
purpose: "Automated backup of infrastructure"
contact: "Infrastructure staff"
category: "infra-infra"
bugs:
pattern: "bugs.*.psf.io"
purpose: "Roundup hosting for CPython, Jython, and Roundup"
contact: "Infrastructure staff"
category: "python-core"
buildbot:
pattern: "buildbot*.nyc1.psf.io"
purpose: "Hosting for CPython buildbot server"
contact: "zware, haypo, pablogsa"
category: "python-core"
cdn-logs:
pattern: "cdn-logs*.nyc1.psf.io"
purpose: "Realtime log streaming from Fastly CDN for debug"
contact: "Infrastructure Staff"
category: "infra-infra"
codespeed:
pattern: "codespeed*.nyc1.psf.io"
purpose: "Hosting for speed.python.org and speed.pypy.org"
contact: ""
category: "python-core"
consul:
pattern: "consul*.nyc1.psf.io"
purpose: "Runs `Consul <https://www.consul.io/>`_ discovery service"
contact: "Infrastructure Staff"
category: "infra-infra"
docs:
pattern: "docs*.nyc1.psf.io"
purpose: "Builds and serves CPython's documentation"
contact: "mdk"
category: "python-core"
downloads:
pattern: "downloads*.nyc1.psf.io"
purpose: "Serves python.org downloads"
contact: "CPython Release Managers"
category: "python-core"
gnumailman:
pattern: "gnumailman.nyc1.psf.io"
purpose: "GNU Mailman Project wiki and lists"
contact: "Mark Sapiro"
category: "mail"
hg:
pattern: "hg*.nyc1.psf.io"
purpose: "Version Control Archives, serves hg.python.org and svn.python.org"
contact: "Infrastructure Staff"
category: "python-core"
loadbalancer:
pattern: "lb*.nyc1.psf.io"
purpose: "Load balancer"
contact: "Infrastructure Staff"
category: "infra-infra"
mail:
pattern: "mail.ams1.psf.io"
purpose: "Mail and mailman server"
contact: "postmasters"
category: "mail"
planet:
pattern: "planet*.nyc1.psf.io"
purpose: "Planet Python"
contact: "benjamin"
category: "community"
pythontest:
pattern: "pythontest*.nyc3.psf.io"
purpose: "Test resources for CPython's test suite."
contact: "Infrastructure Staff"
category: "python-core"
salt-master:
pattern: "salt*.nyc1.psf.io"
purpose: "Salt server"
contact: "Infrastructure Staff"
category: "infra-infra"
moin:
pattern: "moin*.nyc1.psf.io"
purpose: "Hosts moin sites for wiki.python.org, wiki.jython.org"
contact: "lemburg"
category: "community"
5 changes: 3 additions & 2 deletions salt/base/config/salt-server-list.rst.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
{% endfor %}

.. csv-table::
:header: "Name", "Purpose", "Contact", "Distro", "Datacener"
:header: "Name", "Purpose", "Contact", "Distro", "Datacenter", "Category"
:class: sphinx-datatable display compact

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

..
Expand Down